diff --git a/app/Console/Commands/SendInvoiceDataReport.php b/app/Console/Commands/SendInvoiceDataReport.php index e823476..44bc741 100644 --- a/app/Console/Commands/SendInvoiceDataReport.php +++ b/app/Console/Commands/SendInvoiceDataReport.php @@ -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'] ?? ''); diff --git a/resources/views/mail/invoice_data_report.blade.php b/resources/views/mail/invoice_data_report.blade.php index 746659b..d79f3aa 100644 --- a/resources/views/mail/invoice_data_report.blade.php +++ b/resources/views/mail/invoice_data_report.blade.php @@ -79,12 +79,13 @@
* Pending - Long Days Pending, Pending - One Day Pending
--}} +
+ * Pending
+
+ - Long Days Pending
+
+ - One Day Pending
+
{!! $wishes !!}