mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Improve gateway fee label
This commit is contained in:
parent
22d3c69bf3
commit
1001aee5df
@ -319,19 +319,19 @@ class InvoicePresenter extends EntityPresenter
|
||||
}
|
||||
|
||||
if ($invoice->getGatewayFeeItem()) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$fee = $invoice->calcGatewayFee($gatewayTypeId, true);
|
||||
$fee = $account->formatMoney($fee, $invoice->client);
|
||||
|
||||
if (floatval($settings->fee_amount) < 0 || floatval($settings->fee_percent) < 0) {
|
||||
$label = trans('texts.discount');
|
||||
$label = ' + ' . trans('texts.fee');
|
||||
} else {
|
||||
$label = trans('texts.fee');
|
||||
}
|
||||
$fee = $invoice->calcGatewayFee($gatewayTypeId, true);
|
||||
$fee = $account->formatMoney($fee, $invoice->client);
|
||||
|
||||
$label = ' - ' . $fee . ' ' . $label;
|
||||
if (floatval($settings->fee_amount) < 0 || floatval($settings->fee_percent) < 0) {
|
||||
$label = trans('texts.discount');
|
||||
} else {
|
||||
$label = trans('texts.fee');
|
||||
}
|
||||
|
||||
$label = ' - ' . $fee . ' ' . $label;
|
||||
}
|
||||
|
||||
$label .= ' <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="' . trans('texts.fee_help') . '"></i>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user