summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-11-02 12:33:25 -0800
committerIvan Kohler <ivan@freeside.biz>2014-11-02 12:33:25 -0800
commit34add44f0e88aac782264a2febc59b8f48d7ca52 (patch)
tree41b47af9609dda1ce83ec094bff4fe1e85d943a8 /FS/FS
parent8dfa2f14821acce6f5c89d447ba49b47339a3d36 (diff)
search for tax-exempt customers, RT#31481
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/cust_main/Search.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm
index 02f3b642f..e0dfc3c2f 100644
--- a/FS/FS/cust_main/Search.pm
+++ b/FS/FS/cust_main/Search.pm
@@ -831,6 +831,18 @@ sub search {
if $params->{'no_POST'};
##
+ # "tax exempt" checkbox
+ ##
+ push @where, "cust_main.tax = 'Y'"
+ if $params->{'tax'};
+
+ ##
+ # "not tax exempt" checkbox
+ ##
+ push @where, "(cust_main.tax = '' OR cust_main.tax IS NULL )"
+ if $params->{'no_tax'};
+
+ ##
# dates
##