mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for gateway fees
This commit is contained in:
parent
9c8afcd434
commit
3c226a524c
@ -412,6 +412,10 @@ class BaseDriver extends AbstractPaymentDriver
|
|||||||
|
|
||||||
nlog("apparently no fee, so injecting here!");
|
nlog("apparently no fee, so injecting here!");
|
||||||
|
|
||||||
|
if($invoice->tax_rate1 > 0){
|
||||||
|
$fee_total = round($fee_total / (1+($invoice->tax_rate1/100)),2);
|
||||||
|
}
|
||||||
|
|
||||||
$balance = $invoice->balance;
|
$balance = $invoice->balance;
|
||||||
|
|
||||||
App::forgetInstance('translator');
|
App::forgetInstance('translator');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user