issue solved for no column

This commit is contained in:
dhanabalan
2025-11-07 23:57:50 +05:30
parent 26a84c64e6
commit aaf8f52228

View File

@@ -210,7 +210,7 @@ class SendInvoiceDataReport extends Command
}
$tableData[] = [
'no' => $no++,
//'no' => $no++,
'plant' => $plant->name,
// 'distribution_type' => $selectedDistribution,
// 'customer_code' => $inv->customer_code,
@@ -227,6 +227,10 @@ class SendInvoiceDataReport extends Command
$tableData = collect($tableData)
->sortBy('document_date')
->values()
->map(function ($item, $index) {
$item['no'] = $index + 1;
return $item;
})
->toArray();
$mail = new InvoiceDataMail($scheduleType, $tableData);