X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_pkg.cgi;h=5f0e6bffcae219be157465dc6b88257769224169;hb=aa1cb9bddae4756d832b953e8cfbe184ef77a16f;hp=09a2a7a8bebefd0b7eaaee99e23ebbbfd3cfd40a;hpb=86bf1d97a86661716d2d0276b28985c24180153b;p=freeside.git
diff --git a/httemplate/view/cust_pkg.cgi b/httemplate/view/cust_pkg.cgi
index 09a2a7a8b..5f0e6bffc 100755
--- a/httemplate/view/cust_pkg.cgi
+++ b/httemplate/view/cust_pkg.cgi
@@ -68,10 +68,16 @@ print &ntable("#cccccc"), '
', &ntable("#cccccc",2),
' |
Comment | ',
$comment, ' |
',
'Setup date | ',
- ( $setup ? time2str("%D",$setup) : "(Not setup)" ), ' |
',
- 'Next bill date | ',
- ( $bill ? time2str("%D",$bill) : " " ), ' |
',
-;
+ ( $setup ? time2str("%D",$setup) : "(Not setup)" ), '';
+
+print 'Last bill date | ',
+ ( $cust_pkg->get('last_bill') ? time2str("%D",$cust_pkg->get('last_bill')) : " " ),
+ ' |
'
+ if $cust_pkg->dbdef_table->column('last_bill');
+
+print 'Next bill date | ',
+ ( $bill ? time2str("%D",$bill) : " " ), ' |
';
+
print 'Suspension date | ',
time2str("%D",$susp), ' |
' if $susp;
print 'Expiration date | ',
@@ -80,15 +86,16 @@ print ' |
Cancellation date | ',
time2str("%D",$cancel), ' |
' if $cancel;
print 'Order taker | ',
$otaker, ' |
',
- ''
-;
-
-# print <
-#
-#Expire (date):
-#
-#END
+ '';
+
+unless ($expire) {
+ print <
+
+Expire (date):
+
+END
+}
unless ($cancel) {