From 03cdb516c7d34434a8d7cb2028960da54ad12cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 31 Dec 2020 11:29:40 +0100 Subject: [PATCH] fix issue with gateway type id not being passed --- app/Services/Invoice/AddGatewayFee.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Invoice/AddGatewayFee.php b/app/Services/Invoice/AddGatewayFee.php index 66981f8fdd14..4f5657f65178 100644 --- a/app/Services/Invoice/AddGatewayFee.php +++ b/app/Services/Invoice/AddGatewayFee.php @@ -41,7 +41,7 @@ class AddGatewayFee extends AbstractService public function run() { - $gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount, $this->gateway_type_id), $this->invoice->client->currency()->precision); + $gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount, false, $this->gateway_type_id), $this->invoice->client->currency()->precision); if ((int)$gateway_fee == 0) { return $this->invoice;