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 BillHistories extends Import
return [];
}
$row['bill_number'] = (string) $row['bill_number'];
$row = parent::map($row);
$row['document_id'] = (int) Document::bill()->number($row['bill_number'])->pluck('id')->first();

View File

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

View File

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

View File

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

View File

@@ -19,6 +19,8 @@ class BillTransactions extends Import
return [];
}
$row['bill_number'] = (string) $row['bill_number'];
$row = parent::map($row);
$row['type'] = 'expense';

View File

@@ -20,6 +20,8 @@ class Bills extends Import
return [];
}
$row['bill_number'] = (string) $row['bill_number'];
$row = parent::map($row);
$country = array_search($row['contact_country'], trans('countries'));