X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fdelay_susp_pkg.html;h=02f8824b46a4a1b7c275190bcc245795e808b4d4;hp=5d6a2bd09f33ef5ce445d376013598c3a625c784;hb=7d80f005462758e0271215240cdf99a9336f03dd;hpb=06a85a88bfdb0d3fc79ee055eb8327658dfe63ab diff --git a/httemplate/misc/delay_susp_pkg.html b/httemplate/misc/delay_susp_pkg.html index 5d6a2bd09..02f8824b4 100755 --- a/httemplate/misc/delay_susp_pkg.html +++ b/httemplate/misc/delay_susp_pkg.html @@ -12,7 +12,9 @@

-<% "Delay automatic suspension of " .$part_pkg->pkg_comment %> +<% "Delay automatic suspension of ". + $part_pkg->pkg_comment( cust_pkg=>$cust_pkg ) +%> <% ntable("#cccccc", 2) %> @@ -42,7 +44,7 @@ <%init> -my %conf = new FS::Conf; +my $conf = new FS::Conf; my $date_format = $conf->config('date_format') || '%m/%d/%Y'; my $date = time2str($date_format, time); @@ -68,6 +70,10 @@ my $title = 'Delay Suspension of Package'; my $cust_pkg = qsearchs('cust_pkg', {'pkgnum' => $pkgnum}) or die "Unknown pkgnum: $pkgnum"; +$date = time2str($date_format, $cust_pkg->dundate) + if $cust_pkg->dundate + && ! $cgi->param('error'); + my $part_pkg = $cust_pkg->part_pkg;