diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-08-03 13:09:06 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-08-03 13:09:06 -0700 |
| commit | 97e93c533f0de76980bdc00abd12daed69983ed2 (patch) | |
| tree | 3b4b6da46cc1d2008d188d522972faf961e799a2 /httemplate/elements | |
| parent | 1c3744c90bda86f8dc37666651c455e33ede9cab (diff) | |
selfservice payment fees, RT#18345
Diffstat (limited to 'httemplate/elements')
| -rw-r--r-- | httemplate/elements/tr-amount_fee.html | 4 |
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); } |
