Fix for gateway payment items total amount
This commit is contained in:
parent
8f3952a938
commit
3c90f9ccbd
2 changed files with 2 additions and 2 deletions
|
|
@ -1003,6 +1003,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||
'tax_name2',
|
||||
'tax_rate2',
|
||||
'invoice_item_type_id',
|
||||
'discount',
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -375,8 +375,7 @@ class BasePaymentDriver
|
|||
|
||||
$items[] = $item;
|
||||
|
||||
$invoiceItem->setRelation('invoice', $invoice);
|
||||
$total += $invoiceItem->amount();
|
||||
$total += $invoiceItem->cost * $invoiceItem->qty;
|
||||
}
|
||||
|
||||
if ($total != $invoice->getRequestedAmount()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue