mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for gateway payment items total amount
This commit is contained in:
parent
8f3952a938
commit
3c90f9ccbd
@ -1003,6 +1003,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
'tax_name2',
|
'tax_name2',
|
||||||
'tax_rate2',
|
'tax_rate2',
|
||||||
'invoice_item_type_id',
|
'invoice_item_type_id',
|
||||||
|
'discount',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -375,8 +375,7 @@ class BasePaymentDriver
|
|||||||
|
|
||||||
$items[] = $item;
|
$items[] = $item;
|
||||||
|
|
||||||
$invoiceItem->setRelation('invoice', $invoice);
|
$total += $invoiceItem->cost * $invoiceItem->qty;
|
||||||
$total += $invoiceItem->amount();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($total != $invoice->getRequestedAmount()) {
|
if ($total != $invoice->getRequestedAmount()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user