X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-amount_fee.html;h=1c78d7ec1c49a97d592ac9c5d9bb490f9dcb8cae;hp=12488521ad458419fd7dbe0ab67dc634557dae29;hb=86448cce000b5c1db8e33b7884b6acd6ea7906c6;hpb=0af38652da3b3be7da2d35b048285ef6f2194e1a diff --git a/httemplate/elements/tr-amount_fee.html b/httemplate/elements/tr-amount_fee.html index 12488521a..1c78d7ec1 100644 --- a/httemplate/elements/tr-amount_fee.html +++ b/httemplate/elements/tr-amount_fee.html @@ -1,4 +1,4 @@ - + > <% mt('Payment amount') |h %>
@@ -8,14 +8,14 @@ VALUE = "<% $amount %>" SIZE = 8 STYLE = "text-align:right;" -% if ( $fee ) { +% if ( $fee || $surcharge ) { onChange = "amount_changed(this)" onKeyDown = "amount_changed(this)" onKeyUp = "amount_changed(this)" onKeyPress = "amount_changed(this)" % } > - + % if ( $fee ) { @@ -28,17 +28,23 @@ <% length($amount) ? $money_char. sprintf('%.2f', ($fee_display eq 'add') ? $amount + $fee : $amount - $fee ) : '' %> <% $fee_display eq 'add' ? 'TOTAL' : 'AVAILABLE' %> % } +% if ( $surcharge ) { + + + + A credit card surcharge of <% $money_char. sprintf('%.2f', $surcharge) %> is included in this payment +% }
-% if ( $fee ) { +% if ($fee || $surcharge) {