This commit is contained in:
David Bomba 2020-08-27 23:10:04 +10:00
parent 1a7d0d3cbd
commit 23a8acccc2

View File

@ -293,7 +293,12 @@ class CompanyGateway extends BaseModel
return $fee;
}
/**
* we need to average out the gateway fees across all the invoices
* so lets iterate.
*
* we MAY need to adjust the final fee to ensure our rounding makes sense!
*/
public function calcGatewayFeeObject($amount, $invoice_count)
{
$total_gateway_fee = $this->calcGatewayFee($amount);