From 569f676f4a06512a46120e12edc6a6410e93ff93 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sat, 19 Jan 2019 07:41:08 -0500 Subject: 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 --- httemplate/misc/order_pkg.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'httemplate/misc/order_pkg.html') diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 1efe7456e..7a63b5c2b 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -188,11 +188,23 @@ <& /elements/standardize_locations.html, 'form' => "OrderPkgForm", - 'callback' => 'document.OrderPkgForm.submit()', + 'callback' => $conf->exists('tax_district_method') + ? 'wa_state_tax_district()' + : 'submit_continue()', 'with_census' => 1, 'with_census_functions' => 1, &> + + % } % if ($quotationnum) { -- cgit v1.2.1