From 87a59b1bdf236765177c27ab18390ef1317cc34c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 9 Jan 2014 15:29:50 -0800 Subject: time/data/etc. unit pricing add-ons, RT#24392 --- httemplate/view/cust_main/packages/package.html | 2 +- httemplate/view/cust_main/packages/status.html | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html index 7a1e9a5..06eb50d 100644 --- a/httemplate/view/cust_main/packages/package.html +++ b/httemplate/view/cust_main/packages/package.html @@ -11,7 +11,7 @@ <% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><% $part_pkg->pkg |h %> -% my $custom_comment = $part_pkg->custom_comment(); +% my $custom_comment = $part_pkg->custom_comment('cust_pkg'=>$cust_pkg); <% $custom_comment ? ' - ' : '' %> <% $custom_comment |h %> diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index 70b623c..3ebdf22 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -416,14 +416,16 @@ sub pkg_status_row_changed { my $old = $cust_pkg->old_cust_pkg; if ( $old ) { 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(nopartpkg => 1) ), - '', - 'size' => '-1', - 'align' => 'right', - ); + $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) + ), + '', + 'size' => '-1', + 'align' => 'right', + ); } $html; -- cgit v1.1