[freeside-commits] freeside/httemplate/search cust_pkg.cgi, 1.65, 1.66
Mark Wells
mark at wavetail.420.am
Fri May 28 00:51:03 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv20948
Modified Files:
cust_pkg.cgi
Log Message:
RT#8465: add service label to downloadable package reports
Index: cust_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_pkg.cgi,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -w -d -r1.65 -r1.66
--- cust_pkg.cgi 8 Apr 2010 01:15:26 -0000 1.65
+++ cust_pkg.cgi 28 May 2010 07:51:01 -0000 1.66
@@ -80,6 +80,18 @@
# '</table>';
# },
sub {
+ my $cust_pkg = shift;
+ my $type = $cgi->param('_type') || '';
+ if ($type =~ /xls|csv/) {
+ my $cust_svc = $cust_pkg->primary_cust_svc;
+ if($cust_svc) {
+ return join ": ",($cust_svc->label)[0,1];
+ }
+ else {
+ return '';
+ }
+ }
+ else {
[ map {
[
{ 'data' => $_->[0]. ':',
@@ -91,9 +103,10 @@
$_->[2]. '.cgi?'. $_->[3],
},
];
- } shift->labels
+ } $cust_pkg->labels
];
- },
+ }
+ }
],
'color' => [
'',
More information about the freeside-commits
mailing list