@@ -20,6 +20,8 @@ class InvoiceHistories 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();
|
||||
|
||||
@@ -22,6 +22,8 @@ class InvoiceItemTaxes 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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -20,6 +20,8 @@ class InvoiceTotals 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();
|
||||
|
||||
@@ -19,6 +19,8 @@ class InvoiceTransactions extends Import
|
||||
return [];
|
||||
}
|
||||
|
||||
$row['invoice_number'] = (string) $row['invoice_number'];
|
||||
|
||||
$row = parent::map($row);
|
||||
|
||||
$row['type'] = 'income';
|
||||
|
||||
@@ -20,6 +20,8 @@ class Invoices extends Import
|
||||
return [];
|
||||
}
|
||||
|
||||
$row['invoice_number'] = (string) $row['invoice_number'];
|
||||
|
||||
$row = parent::map($row);
|
||||
|
||||
$country = array_search($row['contact_country'], trans('countries'));
|
||||
|
||||
Reference in New Issue
Block a user