mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-31 15:42:03 -04:00
Merge pull request #4600 from beganovich/v5-fix-issue-with-payment-type-id
(v5) Fix issue with gateway type id not being passed when using taxes
This commit is contained in:
commit
1e36b5af1d
@ -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, $this->invoice->uses_inclusive_taxes, $this->gateway_type_id), $this->invoice->client->currency()->precision);
|
||||
|
||||
if ((int)$gateway_fee == 0) {
|
||||
return $this->invoice;
|
||||
|
Loading…
x
Reference in New Issue
Block a user