diff --git a/app/Services/Invoice/AddGatewayFee.php b/app/Services/Invoice/AddGatewayFee.php index 4f5657f65178..d98a206fd0a5 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, false, $this->gateway_type_id), $this->invoice->client->currency()->precision); + $gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount, $this->invoice->uses_inclusive_taxes, $this->gateway_type_id), $this->invoice->client->currency()->precision); if ((int)$gateway_fee == 0) { return $this->invoice;