[freeside-commits] freeside/httemplate/search cust_pkg.cgi, 1.42.2.2, 1.42.2.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Dec 4 10:35:28 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv23466
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.42.2.2
retrieving revision 1.42.2.3
diff -u -d -r1.42.2.2 -r1.42.2.3
--- cust_pkg.cgi 26 Jun 2007 15:36:54 -0000 1.42.2.2
+++ cust_pkg.cgi 4 Dec 2007 18:35:26 -0000 1.42.2.3
@@ -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