summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-08-03 13:09:05 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-03 13:09:05 -0700
commit45346fd655ba53b82c80b920da945cc0b87ece01 (patch)
tree25453139d733720bb9c2b92817d35adffd63c776 /httemplate/elements
parent8b4b2a97a84d17087c3fac19b8f768ca146cf897 (diff)
selfservice payment fees, RT#18345
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tr-amount_fee.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/tr-amount_fee.html b/httemplate/elements/tr-amount_fee.html
index a1a9e3433..12488521a 100644
--- a/httemplate/elements/tr-amount_fee.html
+++ b/httemplate/elements/tr-amount_fee.html
@@ -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);
}