projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 83401 Send country field to B::OP on tokenize
[freeside.git]
/
httemplate
/
misc
/
order_pkg.html
diff --git
a/httemplate/misc/order_pkg.html
b/httemplate/misc/order_pkg.html
index
1efe745
..
7a63b5c
100644
(file)
--- a/
httemplate/misc/order_pkg.html
+++ b/
httemplate/misc/order_pkg.html
@@
-188,11
+188,23
@@
<& /elements/standardize_locations.html,
'form' => "OrderPkgForm",
<& /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,
&>
'with_census' => 1,
'with_census_functions' => 1,
&>
+ <script>
+ <& /elements/wa_state_tax_district.js &>
+
+ // wa_sate_tax_district() will call submit_continue() upon success,
+ // or submit_abort() upon error
+ function submit_continue() {
+ document.OrderPkgForm.submit();
+ }
+ </script>
+
% }
% if ($quotationnum) {
% }
% if ($quotationnum) {