[freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.4, 1.464.2.5
Ivan,,,
ivan at wavetail.420.am
Fri Nov 13 16:08:23 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv23167/FS/FS
Modified Files:
Tag: FREESIDE_1_9_BRANCH
cust_main.pm
Log Message:
add invoice terms to advanced customer report. dogfood.
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.464.2.4
retrieving revision 1.464.2.5
diff -u -d -r1.464.2.4 -r1.464.2.5
--- cust_main.pm 6 Nov 2009 22:07:19 -0000 1.464.2.4
+++ cust_main.pm 14 Nov 2009 00:08:20 -0000 1.464.2.5
@@ -8279,6 +8279,22 @@
;
}
+ ###
+ # invoice terms
+ ###
+
+ if ( $params->{'invoice_terms'} =~ /^([\w ]+)$/ ) {
+ my $terms = $1;
+ if ( $1 eq 'NULL' ) {
+ push @where,
+ "( cust_main.invoice_terms IS NULL OR cust_main.invoice_terms = '' )";
+ } else {
+ push @where,
+ "cust_main.invoice_terms IS NOT NULL",
+ "cust_main.invoice_terms = '$1'";
+ }
+ }
+
##
# amounts
##
More information about the freeside-commits
mailing list