summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2009-11-14 00:08:21 +0000
committerivan <ivan>2009-11-14 00:08:21 +0000
commit2339b763230e33505b8a5302acd32269fbfd9f7e (patch)
treeeb860abb0fe0e7d975d0a6a7c93b2ab635aa0afc /FS
parent9741a06874c2cb664ca37265d2c1914c0e2e1673 (diff)
add invoice terms to advanced customer report. dogfood.
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index d9b052859..2baf3ac16 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -8279,6 +8279,22 @@ sub search_sql {
;
}
+ ###
+ # 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
##