1
0
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:
Hillel Coren 2018-06-10 13:11:38 +03:00
parent 22d3c69bf3
commit 1001aee5df

View File

@ -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 .= '&nbsp;&nbsp; <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="' . trans('texts.fee_help') . '"></i>';