Fixed issue of importing invoice and bill

refs #2710
This commit is contained in:
EnesSacid-Buker
2023-02-20 13:00:59 +03:00
parent dc2ca953dd
commit a96d326f09
15 changed files with 25 additions and 0 deletions

View File

@ -20,6 +20,8 @@ class InvoiceItems extends Import
return [];
}
$row['invoice_number'] = (string) $row['invoice_number'];
$row = parent::map($row);
$row['document_id'] = (int) Document::invoice()->number($row['invoice_number'])->pluck('id')->first();