diff options
author | ivan <ivan> | 2010-10-31 19:04:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-10-31 19:04:56 +0000 |
commit | 5ca9ba1f1e2831b1f22bbaeb414e68202093515a (patch) | |
tree | 0ea21f377cd93309a7dfe19a463f588ac3ed93fb /FS | |
parent | b7858740e458e761b173f0e38f547c0e2f75b240 (diff) |
add search on harcoded geocode customers w/cch, RT#10376
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main/Search.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index a87928f6a..a7f876fcc 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -520,6 +520,13 @@ sub search { if $params->{'no_censustract'}; ## + # parse with hardcoded tax location checkbox + ## + + push @where, "geocode is not null" + if $params->{'with_geocode'}; + + ## # dates ## @@ -704,6 +711,17 @@ sub search { } + if ( $params->{'with_geocode'} ) { + + unshift @extra_headers, 'Tax location override', 'Calculated tax location'; + unshift @extra_fields, sub { my $c = shift; $c->get('geocode'); }, + sub { my $c = shift; + $c->set('geocode', ''); + $c->geocode('cch'); #XXX only cch right now + }; + + } + my $sql_query = { 'table' => 'cust_main', 'select' => $select, |