[freeside-commits] freeside/httemplate/browse part_pkg.cgi, 1.57, 1.58
Ivan,,,
ivan at wavetail.420.am
Fri Oct 22 01:54:34 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv11756
Modified Files:
part_pkg.cgi
Log Message:
fix package def report totals to break down not yet billed vs. active package counts, RT#10317
Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_pkg.cgi,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -w -d -r1.57 -r1.58
--- part_pkg.cgi 22 Sep 2010 19:16:19 -0000 1.57
+++ part_pkg.cgi 22 Oct 2010 08:54:32 -0000 1.58
@@ -96,6 +96,13 @@
*,
( $count_cust_pkg
+ AND ( setup IS NULL OR setup = 0 )
+ AND ( cancel IS NULL OR cancel = 0 )
+ AND ( susp IS NULL OR susp = 0 )
+ ) AS num_not_yet_billed,
+
+ ( $count_cust_pkg
+ AND setup IS NOT NULL AND setup != 0
AND ( cancel IS NULL OR cancel = 0 )
AND ( susp IS NULL OR susp = 0 )
) AS num_active,
@@ -309,6 +316,7 @@
#if ( $cgi->param('active') ) {
push @header, 'Customer<BR>packages';
my %col = (
+ 'not yet billed' => '009999', #teal? cyan?
'active' => '00CC00',
'suspended' => 'FF9900',
'cancelled' => 'FF0000',
@@ -326,6 +334,7 @@
#$label = 'one-time charge',
$label = 'charge',
}
+ $label= 'not yet billed' if $magic eq 'not_yet_billed';
[
{
@@ -350,7 +359,7 @@
),
},
],
- } (qw( active suspended cancelled ))
+ } (qw( not_yet_billed active suspended cancelled ))
]; };
$align .= 'r';
#}
More information about the freeside-commits
mailing list