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:
parent
c985bdf1aa
commit
f8c1a0c031
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user