X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-amount_fee.html;h=9e6d9e96d9257e2d3dd99044edc4fae545851d67;hp=a1a9e343305cc985092b7c64ac6dedfbf430b128;hb=01c9143a54bf5e1513537547fd362822f58d1e2a;hpb=26004f55ce70242d07fc8de51e24439e783e9e49 diff --git a/httemplate/elements/tr-amount_fee.html b/httemplate/elements/tr-amount_fee.html index a1a9e3433..9e6d9e96d 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,12 @@ 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 += $opt{'surcharge_flatfee'} + if $opt{'surcharge_flatfee'} > 0; $amount = sprintf("%.2f", $amount); }