Added no in table report
This commit is contained in:
@@ -108,11 +108,12 @@ class SendInvoiceDataReport extends Command
|
||||
|
||||
//..
|
||||
|
||||
$no = 1;
|
||||
|
||||
foreach ($plants as $plant)
|
||||
{
|
||||
|
||||
$tableData = [];
|
||||
$no = 1;
|
||||
|
||||
$distributions = ['Direct Sale', 'Branch Sale', 'Internal Transfer', 'WOS', ''];
|
||||
|
||||
foreach ($distributions as $selectedDistribution)
|
||||
@@ -183,6 +184,7 @@ class SendInvoiceDataReport extends Command
|
||||
// $pendingInvoices = $invoices->filter(function ($inv) use ($wentOutInvoices) {
|
||||
// return !in_array(strtoupper(trim($inv->document_number)), $wentOutInvoices);
|
||||
// });
|
||||
|
||||
$pendingInvoices = $invoices->filter(function ($inv) use ($wentOutInvoices) {
|
||||
$doc = preg_replace('/\s+/', '', strtoupper((string) $inv->document_number));
|
||||
return !in_array($doc, $wentOutInvoices, true);
|
||||
|
||||
Reference in New Issue
Block a user