[freeside-commits] freeside/httemplate/search cust_pkg.cgi, 1.45, 1.46

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Dec 4 10:35:57 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv23519

Modified Files:
	cust_pkg.cgi 
Log Message:
add suspend/cancel reason to advanced package report (#2779)

Index: cust_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_pkg.cgi,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- cust_pkg.cgi	29 Oct 2007 12:04:52 -0000	1.45
+++ cust_pkg.cgi	4 Dec 2007 18:35:55 -0000	1.46
@@ -16,6 +16,7 @@
                                      'Susp.',
                                      'Expire',
                                      'Cancel',
+                                     'Reason',
                                      FS::UI::Web::cust_header(
                                        $cgi->param('cust_fields')
                                      ),
@@ -46,6 +47,17 @@
                     ( map { time_or_blank($_) }
                           qw( setup last_bill bill adjourn susp expire cancel ) ),
 
+                    sub { my $self = shift;
+                          my $return = '';
+                          if ($self->getfield('cancel') ||
+                            $self->getfield('suspend')) {
+                              my $reason = $self->last_reason;# too inefficient?
+                              $return = $reason->reason if $reason;
+
+                          }
+                          $return;
+                        },
+
                     \&FS::UI::Web::cust_fields,
                     #sub { '<table border=0 cellspacing=0 cellpadding=0 STYLE="border:none">'.
                     #      join('', map { '<tr><td align="right" style="border:none">'. $_->[0].



More information about the freeside-commits mailing list