From 8f8283f365995ff83040ee6b62920dd0149c1eac Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 28 May 2013 17:18:46 -0700 Subject: [PATCH] fix some problems with ordering packages on alt. locations, #23189, #940 --- httemplate/edit/process/quick-cust_pkg.cgi | 2 ++ httemplate/elements/location.html | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 14dbda166..fe5ee5e9e 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -160,6 +160,8 @@ if ( $quotationnum ) { ('custnum', FS::cust_main->location_fields) }); $opt{'cust_location'} = $cust_location; + } else { + $opt{'locationnum'} = $locationnum; } $error = $cust_main->order_pkg( \%opt ); diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 685523314..41a67a0cb 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -219,8 +219,7 @@ Example: % } -% if ( $conf->config('tax_district_method') ) { -% if ( $opt{enable_district} ) { +% if ( $opt{enable_district} and $conf->config('tax_district_method') ) { Tax district @@ -231,9 +230,8 @@ Example: <% '(automatic)' %> -% } else { +% } else { -% } % } %# For address standardization: -- 2.11.0