Added location column in invoice data report

This commit is contained in:
dhanabalan
2025-11-15 10:09:09 +05:30
parent 6160570a7d
commit 41f9ec2990
2 changed files with 4 additions and 1 deletions

View File

@@ -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,