projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d064021
)
fix display of waived setup fee, #14092
author
Mark Wells
<mark@freeside.biz>
Tue, 27 Oct 2015 23:37:31 +0000
(16:37 -0700)
committer
Mark Wells
<mark@freeside.biz>
Tue, 27 Oct 2015 23:37:47 +0000
(16:37 -0700)
httemplate/view/cust_main/packages/status.html
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_main/packages/status.html
b/httemplate/view/cust_main/packages/status.html
index
13bd202
..
62e9be5
100644
(file)
--- a/
httemplate/view/cust_main/packages/status.html
+++ b/
httemplate/view/cust_main/packages/status.html
@@
-526,6
+526,13
@@
sub pkg_status_row_discount {
my $html;
my $html;
+ if ( $cust_pkg->waive_setup ) {
+ my $label = '<SPAN STYLE="font-size: small;font-weight: bold">' .
+ emt('Setup fee waived') .
+ '</SPAN>';
+ $html .= pkg_status_row_colspan( $cust_pkg, $label, '', %opt );
+ }
+
foreach my $cust_pkg_discount (@{ $cust_pkg->{_cust_pkg_discount_active} }) {
my $discount = $cust_pkg_discount->discount;
foreach my $cust_pkg_discount (@{ $cust_pkg->{_cust_pkg_discount_active} }) {
my $discount = $cust_pkg_discount->discount;
@@
-537,7
+544,6
@@
sub pkg_status_row_discount {
$label .= emt('Recurring Discount');
}
$label .= '</B>: '. $discount->description;
$label .= emt('Recurring Discount');
}
$label .= '</B>: '. $discount->description;
- warn Dumper $cust_pkg_discount;
if ( $discount->months > 0 and $cust_pkg_discount->months_used > 0 ) {
my $remaining = $discount->months - $cust_pkg_discount->months_used;
$remaining = sprintf('%.2f', $remaining) if $remaining =~ /\./;
if ( $discount->months > 0 and $cust_pkg_discount->months_used > 0 ) {
my $remaining = $discount->months - $cust_pkg_discount->months_used;
$remaining = sprintf('%.2f', $remaining) if $remaining =~ /\./;