Added location column in invoice data report
This commit is contained in:
@@ -105,7 +105,7 @@ class SendInvoiceDataReport extends Command
|
||||
->where('distribution_channel_desc', $selectedDistribution)
|
||||
->whereBetween('document_date', [$startDate, $endDate])
|
||||
->orderBy('document_date', 'asc')
|
||||
->select('customer_code', 'document_number', 'document_date', 'customer_trade_name', 'customer_location')
|
||||
->select('customer_code', 'document_number', 'document_date', 'customer_trade_name', 'customer_location', 'location')
|
||||
->get()
|
||||
->unique('document_number')
|
||||
->values();
|
||||
@@ -190,6 +190,7 @@ class SendInvoiceDataReport extends Command
|
||||
'document_date' => $inv->document_date,
|
||||
'customer_trade_name' => $inv->customer_trade_name,
|
||||
'customer_location' => $inv->customer_location,
|
||||
'location' => $inv->location,
|
||||
'no_of_days_pending' => abs((int)now()->diffInDays($documentDate)),
|
||||
'status' => 'Pending',
|
||||
'status_class' => $statusColor,
|
||||
|
||||
Reference in New Issue
Block a user