projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 79737 - Added ability to us a cc surcharge of a flat fee.
[freeside.git]
/
httemplate
/
elements
/
tr-amount_fee.html
diff --git
a/httemplate/elements/tr-amount_fee.html
b/httemplate/elements/tr-amount_fee.html
index
426957a
..
9e6d9e9
100644
(file)
--- a/
httemplate/elements/tr-amount_fee.html
+++ b/
httemplate/elements/tr-amount_fee.html
@@
-1,4
+1,4
@@
- <TR ID="payment_amount_row"
STYLE="display:none;"
>
+ <TR ID="payment_amount_row"
<% $opt{'row_style'} %>
>
<TH ALIGN="right"><% mt('Payment amount') |h %></TH>
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
<TH ALIGN="right"><% mt('Payment amount') |h %></TH>
<TD COLSPAN=7>
<TABLE><TR><TD BGCOLOR="#ffffff">
@@
-94,6
+94,9
@@
if ( $amount > 0 ) {
$amount += $amount * $opt{'surcharge_percentage'}/100
if $opt{'surcharge_percentage'} > 0;
$amount += $amount * $opt{'surcharge_percentage'}/100
if $opt{'surcharge_percentage'} > 0;
+ $amount += $opt{'surcharge_flatfee'}
+ if $opt{'surcharge_flatfee'} > 0;
+
$amount = sprintf("%.2f", $amount);
}
$amount = sprintf("%.2f", $amount);
}