X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fstatus.html;h=62e9be5c30d45ef7827af0c131bcc01d06318565;hb=83800bc3c540ad6a6327af49cf75734d28c82c59;hp=7e125f72e03947c89d7c018befc10d5660fd0673;hpb=98f6d91ec7eaa907204afbfeb90ede1e3bff656d;p=freeside.git diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index 7e125f72e..62e9be5c3 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -461,10 +461,11 @@ sub pkg_status_row_changed { my $part_pkg = $old->part_pkg; $html .= pkg_status_row_colspan( $cust_pkg, - emt("Changed from [_1]: [_2]", - $cust_pkg->change_pkgnum, - $part_pkg->pkg_comment(cust_pkg=>$old, nopartpkg=>1) - ), +# emt("Changed from [_1]: [_2]", +# $cust_pkg->change_pkgnum, +# $part_pkg->pkg_comment(cust_pkg=>$old, nopartpkg=>1) +# ), + '', '', 'size' => '-1', 'align' => 'right', @@ -525,21 +526,35 @@ sub pkg_status_row_discount { my $html; + if ( $cust_pkg->waive_setup ) { + my $label = '' . + emt('Setup fee waived') . + ''; + $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; - my $label = ''.emt('Discount').': '. $discount->description; - if ( $discount->months ) { + my $label = ''; + if ( $cust_pkg_discount->setuprecur eq 'setup' ) { + $label .= emt('Setup Discount'); + } else { + $label .= emt('Recurring Discount'); + } + $label .= ': '. $discount->description; + 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 =~ /\./; - $label .= emt("([_1] months remaining)",$remaining); + $label .=
. emt("([_1] months remaining)",$remaining); } + $label .= '
'; - $label .= ' ('. - ''.emt('remove discount').')'; + #$label .= ' ('. + # ''.emt('remove discount').')'; $html .= pkg_status_row_colspan( $cust_pkg, $label, '', %opt );