diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-09 15:29:50 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-09 15:29:50 -0800 |
commit | 87a59b1bdf236765177c27ab18390ef1317cc34c (patch) | |
tree | 00ea14723ad672b5aedeb2a9f11a1f840ef3f619 /httemplate | |
parent | 8a7eec7b683294a15aab0b2bf1710e10fa80b4c5 (diff) |
time/data/etc. unit pricing add-ons, RT#24392
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/misc/cancel_pkg.html | 2 | ||||
-rwxr-xr-x | httemplate/misc/delay_susp_pkg.html | 4 | ||||
-rwxr-xr-x | httemplate/search/cust_main.cgi | 2 | ||||
-rw-r--r-- | httemplate/view/cust_main/packages/package.html | 2 | ||||
-rw-r--r-- | httemplate/view/cust_main/packages/status.html | 18 |
5 files changed, 16 insertions, 12 deletions
diff --git a/httemplate/misc/cancel_pkg.html b/httemplate/misc/cancel_pkg.html index f9a46a8..2003207 100755 --- a/httemplate/misc/cancel_pkg.html +++ b/httemplate/misc/cancel_pkg.html @@ -7,7 +7,7 @@ <INPUT TYPE="hidden" NAME="method" VALUE="<% $method %>"> <BR><BR> -<% emt(ucfirst($method)." [_1]", $part_pkg->pkg_comment) %> +<% emt(ucfirst($method)." [_1]", $part_pkg->pkg_comment(cust_pkg=>$cust_pkg) %> <% ntable("#cccccc", 2) %> % my $date_init = 0; diff --git a/httemplate/misc/delay_susp_pkg.html b/httemplate/misc/delay_susp_pkg.html index e5f1d8c..02f8824 100755 --- a/httemplate/misc/delay_susp_pkg.html +++ b/httemplate/misc/delay_susp_pkg.html @@ -12,7 +12,9 @@ <INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>"> <BR><BR> -<% "Delay automatic suspension of " .$part_pkg->pkg_comment %> +<% "Delay automatic suspension of ". + $part_pkg->pkg_comment( cust_pkg=>$cust_pkg ) +%> <% ntable("#cccccc", 2) %> <TR> diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index 69f04f5..ee1dd85 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -233,7 +233,7 @@ % my $pkgnum = $_->pkgnum; % my $part_pkg = $_->part_pkg; % -% my $pkg_comment = $part_pkg->pkg_comment(nopkgpart => 1); +% my $pkg_comment = $part_pkg->pkg_comment( cust_pkg=>$_, nopkgpart=>1 ); % my $show = $curuser->default_customer_view =~ /^(jumbo|packages)$/ % ? '' % : ';show=packages'; 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 @@ <A NAME="cust_pkg<% $cust_pkg->pkgnum %>" ID ="cust_pkg<% $cust_pkg->pkgnum %>" ><% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B></A> -% my $custom_comment = $part_pkg->custom_comment(); +% my $custom_comment = $part_pkg->custom_comment('cust_pkg'=>$cust_pkg); <% $custom_comment ? ' - ' : '' %> <% $custom_comment |h %> </TD> 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; |