1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fix $this->fees_and_limits

This commit is contained in:
Benjamin Beganović 2020-08-24 07:47:16 +02:00
parent c985bdf1aa
commit f8c1a0c031

View File

@ -237,10 +237,15 @@ class CompanyGateway extends BaseModel
public function calcGatewayFee($amount)
{
if (is_null($this->fees_and_limits)) {
return 0;
}
$fees_and_limits = new \stdClass;
foreach($this->fees_and_limits as $key => $value)
foreach($this->fees_and_limits as $key => $value) {
$fees_and_limits = $this->fees_and_limits->{$key};
}
$fee = 0;