Added customer code column and no of days pending and indication colour messages
This commit is contained in:
@@ -181,11 +181,12 @@ class SendInvoiceDataReport extends Command
|
||||
//'no' => $no++,
|
||||
'plant' => $plant->name,
|
||||
// 'distribution_type' => $selectedDistribution,
|
||||
// 'customer_code' => $inv->customer_code,
|
||||
'customer_code' => $inv->customer_code,
|
||||
'document_number' => $inv->document_number,
|
||||
'document_date' => $inv->document_date,
|
||||
'customer_trade_name' => $inv->customer_trade_name,
|
||||
'customer_location' => $inv->customer_location,
|
||||
'no_of_days_pending' => abs((int)now()->diffInDays($documentDate)),
|
||||
'status' => 'Pending',
|
||||
'status_class' => $statusColor,
|
||||
];
|
||||
@@ -208,7 +209,7 @@ class SendInvoiceDataReport extends Command
|
||||
|
||||
$this->info($contentVars['greeting'] ?? 'Invoice Data Report');
|
||||
$this->table(
|
||||
['No', 'Plant', 'Document Number', 'Document Date', 'Trade Name', 'Location', 'Status'],//'Distribution Type', 'Customer Code',
|
||||
['No', 'Plant', 'Customer Code', 'Document Number', 'Document Date', 'Trade Name', 'Location', 'Pending Days', 'Status'],//'Distribution Type'
|
||||
$tableData
|
||||
);
|
||||
$this->info($contentVars['wishes'] ?? '');
|
||||
|
||||
Reference in New Issue
Block a user