selfservice priority sort order, #14029
[freeside.git] / httemplate / misc / delay_susp_pkg.html
index 5d6a2bd..e5f1d8c 100755 (executable)
@@ -42,7 +42,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 +68,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;
 
 </%init>