mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Taxes with add back gateway fees
This commit is contained in:
parent
3c226a524c
commit
1c855b42d5
@ -412,8 +412,8 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
|
||||
nlog("apparently no fee, so injecting here!");
|
||||
|
||||
if($invoice->tax_rate1 > 0){
|
||||
$fee_total = round($fee_total / (1+($invoice->tax_rate1/100)),2);
|
||||
if($invoice->tax_rate1 > 0 && !$invoice->uses_inclusive_taxes){ //must account for taxes! ? line item taxes also
|
||||
$fee_total = round($fee_total/(1 + (($invoice->tax_rate1+$invoice->tax_rate2+$invoice->tax_rate3)/100)),2);
|
||||
}
|
||||
|
||||
$balance = $invoice->balance;
|
||||
|
Loading…
x
Reference in New Issue
Block a user