diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-03-25 23:45:45 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-03-25 23:45:45 -0700 |
| commit | eaf1b3660fc8ce4436dae0b2e50545c563c6a8b5 (patch) | |
| tree | 46438e78093886b32f2331793330ed1d944fbd0e /FS | |
| parent | 06e353b743e7be88afa8fce50ea10f27ebb7adef (diff) | |
add "with postal invoicing" to customer search, RT#14148
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/cust_main/Search.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index f799b519e..d8f620f90 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -646,6 +646,16 @@ sub search { if $params->{'with_email'}; ## + # "with postal mail invoices" checkbox + ## + + push @where, + "EXISTS ( SELECT 1 FROM cust_main_invoice + WHERE cust_main_invoice.custnum = cust_main.custnum + AND dest = 'POST' )" + if $params->{'POST'}; + + ## # "without postal mail invoices" checkbox ## |
