[freeside-commits] freeside/FS/FS cust_main.pm,1.474,1.475

Ivan,,, ivan at wavetail.420.am
Fri Nov 13 16:08:15 PST 2009


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv23160/FS/FS

Modified Files:
	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.474
retrieving revision 1.475
diff -u -d -r1.474 -r1.475
--- cust_main.pm	6 Nov 2009 22:07:11 -0000	1.474
+++ cust_main.pm	14 Nov 2009 00:08:12 -0000	1.475
@@ -8405,6 +8405,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