issue solved for no column
This commit is contained in:
@@ -210,7 +210,7 @@ class SendInvoiceDataReport extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
$tableData[] = [
|
$tableData[] = [
|
||||||
'no' => $no++,
|
//'no' => $no++,
|
||||||
'plant' => $plant->name,
|
'plant' => $plant->name,
|
||||||
// 'distribution_type' => $selectedDistribution,
|
// 'distribution_type' => $selectedDistribution,
|
||||||
// 'customer_code' => $inv->customer_code,
|
// 'customer_code' => $inv->customer_code,
|
||||||
@@ -227,6 +227,10 @@ class SendInvoiceDataReport extends Command
|
|||||||
$tableData = collect($tableData)
|
$tableData = collect($tableData)
|
||||||
->sortBy('document_date')
|
->sortBy('document_date')
|
||||||
->values()
|
->values()
|
||||||
|
->map(function ($item, $index) {
|
||||||
|
$item['no'] = $index + 1;
|
||||||
|
return $item;
|
||||||
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
$mail = new InvoiceDataMail($scheduleType, $tableData);
|
$mail = new InvoiceDataMail($scheduleType, $tableData);
|
||||||
|
|||||||
Reference in New Issue
Block a user