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,9 +319,8 @@ class InvoicePresenter extends EntityPresenter
}
if ($invoice->getGatewayFeeItem()) {
return '';
}
$label = ' + ' . trans('texts.fee');
} else {
$fee = $invoice->calcGatewayFee($gatewayTypeId, true);
$fee = $account->formatMoney($fee, $invoice->client);
@ -332,6 +331,7 @@ class InvoicePresenter extends EntityPresenter
}
$label = ' - ' . $fee . ' ' . $label;
}
$label .= '&nbsp;&nbsp; <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="' . trans('texts.fee_help') . '"></i>';