From 41f9ec2990727174062f3dad1c54c7c1db44c70e Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 15 Nov 2025 10:09:09 +0530 Subject: [PATCH] Added location column in invoice data report --- app/Console/Commands/SendInvoiceDataReport.php | 3 ++- resources/views/mail/invoice_data_report.blade.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/SendInvoiceDataReport.php b/app/Console/Commands/SendInvoiceDataReport.php index c633dc1..bf0e931 100644 --- a/app/Console/Commands/SendInvoiceDataReport.php +++ b/app/Console/Commands/SendInvoiceDataReport.php @@ -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, diff --git a/resources/views/mail/invoice_data_report.blade.php b/resources/views/mail/invoice_data_report.blade.php index d79f3aa..092e28e 100644 --- a/resources/views/mail/invoice_data_report.blade.php +++ b/resources/views/mail/invoice_data_report.blade.php @@ -85,6 +85,7 @@ Document Date Customer TradeName Customer Location + Location Pending Days Status @@ -108,6 +109,7 @@ {{-- {{ $row['customer_trade_name'] }} --}} {{ $row['customer_trade_name'] }} {{ $row['customer_location'] }} + {{ $row['location'] }} {{-- {{ $row['status'] }} --}}