issue solved for no column
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user