summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2019-01-19 07:41:08 -0500
committerMitch Jackson <mitch@freeside.biz>2019-01-19 08:57:32 -0500
commit569f676f4a06512a46120e12edc6a6410e93ff93 (patch)
treefa6d58552c6d34b24cb7daf8a29430b70e8db2a8 /httemplate/edit/cust_main
parent39fe6499bd38e6e7c468f549b1d4919a7cf2c44d (diff)
RT# 80488 Live look up of WA state tax district
When conf flag 'tax_district_method' is set, tax district is queried for address before form is submitted Affected Pages: * New Customer * Edit Customer * Order Package * Change Package * Edit Package Location
Diffstat (limited to 'httemplate/edit/cust_main')
-rw-r--r--httemplate/edit/cust_main/bottomfixup.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/cust_main/bottomfixup.js b/httemplate/edit/cust_main/bottomfixup.js
index 97816aad7..d2a277b2f 100644
--- a/httemplate/edit/cust_main/bottomfixup.js
+++ b/httemplate/edit/cust_main/bottomfixup.js
@@ -7,6 +7,9 @@ my $company_longitude = $conf->config('company_longitude');
my @fixups = ('standardize_locations');
+push @fixups, 'wa_state_tax_district'
+ if $conf->exists('tax_district_method');
+
push @fixups, 'confirm_censustract_bill', 'confirm_censustract_ship'
if $conf->exists('cust_main-require_censustract');
@@ -57,6 +60,8 @@ function do_submit() {
'with_census' => 1, # no with_firm, apparently
&>
+<& /elements/wa_state_tax_district.js &>
+
% # the value in pre+'censustract' is the confirmed censustract (either from
% # the previous saved record, or from address standardization (if the backend
% # supports it), or from an aborted previous submit. only need to reconfirm