X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-amount_fee.html;h=a84fef6ec824ea57d7ab122818fe591042fe7dcb;hb=a3c654c1ae9ea07726aba9899a9b2e1d4dbd12c6;hp=3ad2cdf066dd9e7d1cef425318495f8bc5d3c8c8;hpb=88371c24e0b727646f0b01288f01439a06967fe7;p=freeside.git diff --git a/httemplate/elements/tr-amount_fee.html b/httemplate/elements/tr-amount_fee.html index 3ad2cdf06..a84fef6ec 100644 --- a/httemplate/elements/tr-amount_fee.html +++ b/httemplate/elements/tr-amount_fee.html @@ -1,6 +1,6 @@ - > + <% mt('Payment amount') |h %> - +
<% $money_char %><% length($amount) ? $money_char. sprintf('%.2f', ($fee_display eq 'add') ? $amount + $fee : $amount - $fee ) : '' %> <% $fee_display eq 'add' ? 'TOTAL' : 'AVAILABLE' %> % } -% if ( $surcharge ) { +% if ( $surcharge_percentage || $surcharge_flatfee ) { - A credit card surcharge of <% $money_char. sprintf('%.2f', ($amount * $surcharge_percentage) + $surcharge_flatfee) %> is included in this payment + A credit card surcharge of <% $money_char. sprintf('%.2f', $surcharge) %> is included in this payment % }
-% if ($fee || $surcharge) { +% if ($fee || $surcharge_percentage || $surcharge_flatfee ) {