X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-amount_fee.html;h=9c13f595269e530610e74612d2e4cb75b57b9cda;hb=49ff577b9fbb4b017f0652cdfe567b023d7ea4de;hp=a1a9e343305cc985092b7c64ac6dedfbf430b128;hpb=26004f55ce70242d07fc8de51e24439e783e9e49;p=freeside.git diff --git a/httemplate/elements/tr-amount_fee.html b/httemplate/elements/tr-amount_fee.html index a1a9e3433..9c13f5952 100644 --- a/httemplate/elements/tr-amount_fee.html +++ b/httemplate/elements/tr-amount_fee.html @@ -1,4 +1,4 @@ - + > <% mt('Payment amount') |h %>
@@ -15,7 +15,7 @@ onKeyPress = "amount_changed(this)" % } > - + % if ( $fee ) { @@ -90,7 +90,9 @@ if ( $amount > 0 ) { $amount += $fee if $fee && $fee_display eq 'subtract'; - &{ $opt{post_fee_callback} }( \$amount ) if $opt{post_fee_callback}; + #&{ $opt{post_fee_callback} }( \$amount ) if $opt{post_fee_callback}; + $amount += $amount * $opt{'surcharge_percentage'}/100 + if $opt{'surcharge_percentage'} > 0; $amount = sprintf("%.2f", $amount); }