1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for calculating the correct gateway fee depending on the payment method

This commit is contained in:
David Bomba 2021-03-26 19:18:25 +11:00
parent fd24449f95
commit 98e314b6c0

View File

@ -186,7 +186,7 @@ class PaymentMethod
foreach ($child_array as $gateway_id => $gateway_type_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){