mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Remove % fee if not set
This commit is contained in:
parent
49edd830c7
commit
57bc2f555a
@ -398,11 +398,11 @@ class CompanyGateway extends BaseModel
|
||||
if ($fee > 0) {
|
||||
$fees_and_limits = $this->fees_and_limits->{$gateway_type_id};
|
||||
|
||||
if (strlen($fees_and_limits->fee_percent) >= 1) {
|
||||
if (isset($fees_and_limits->fee_percent) && $fees_and_limits->fee_percent > 0) {
|
||||
$label .= $fees_and_limits->fee_percent . '%';
|
||||
}
|
||||
|
||||
if (strlen($fees_and_limits->fee_amount) >= 1 && $fees_and_limits->fee_amount > 0) {
|
||||
if (isset($fees_and_limits->fee_amount) && $fees_and_limits->fee_amount > 0) {
|
||||
if (strlen($label) > 1) {
|
||||
$label .= ' + ' . Number::formatMoney($fees_and_limits->fee_amount, $client);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user