Invoice create and update function finished.
This commit is contained in:
@ -61,7 +61,7 @@ class CreateInvoice
|
||||
|
||||
// Set taxes
|
||||
foreach ($invoice_item->item_taxes as $item_tax) {
|
||||
if (isset($taxes) && in_array($item['tax_id'], $taxes)) {
|
||||
if (isset($taxes) && array_key_exists($item_tax['tax_id'], $taxes)) {
|
||||
$taxes[$item_tax['tax_id']]['amount'] += $item_tax['amount'];
|
||||
} else {
|
||||
$taxes[$item_tax['tax_id']] = [
|
||||
|
Reference in New Issue
Block a user