mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for calculating the correct gateway fee depending on the payment method
This commit is contained in:
parent
fd24449f95
commit
98e314b6c0
@ -186,7 +186,7 @@ class PaymentMethod
|
|||||||
foreach ($child_array as $gateway_id => $gateway_type_id) {
|
foreach ($child_array as $gateway_id => $gateway_type_id) {
|
||||||
$gateway = CompanyGateway::find($gateway_id);
|
$gateway = CompanyGateway::find($gateway_id);
|
||||||
|
|
||||||
$fee_label = $gateway->calcGatewayFeeLabel($this->amount, $this->client);
|
$fee_label = $gateway->calcGatewayFeeLabel($this->amount, $this->client, $gateway_type_id);
|
||||||
|
|
||||||
if(!$gateway_type_id){
|
if(!$gateway_type_id){
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user