X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fheader-cust_main.html;h=7af7dffd585c15215677897d50fcc2c47db2087c;hp=f29f32567f40bbf6e2557c9781265bd63377ef62;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=28051580bf12b079a4631647a5c0defc7f55c9dc
diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html
index f29f32567..7af7dffd5 100644
--- a/httemplate/elements/header-cust_main.html
+++ b/httemplate/elements/header-cust_main.html
@@ -33,6 +33,57 @@ Examples:
% }
% }
+% if ( scalar @cust_locations_missing_district ) {
+
+
Customer will not be billed:
+
+ The following customer locations are missing tax districts for Washington State.
+ Sales taxes cannot be calculated for this customer.
+ Correct the address information, or enter a tax district number.
+
+% for my $cust_location ( @cust_locations_missing_district ) {
+ -
+ (
+ EDIT
+ )
+ <% $cust_location->address1 %>
+ <% $cust_location->city %>
+ <% $cust_location->state %>
+ <% $cust_location->zip %>
+ (<% $cust_location->locationnum %>)
+
+% } # /for my $cust_location
+
+
+
+
+% } # /if @cust_locations_missing_district
<& /view/cust_main/menu.html, cust_main => $cust_main, show => $opt{'view'} &>
@@ -85,4 +136,10 @@ $status .= ' (Cancelled)' if $cust_main->is_status_delay_cancel;
$title_noescape .= ' ('. $status. ')';
$title .= " ($status)";
+my @cust_locations_missing_district;
+my $tax_district_method = $conf->config('tax_district_method');
+if ( $tax_district_method && $tax_district_method eq 'wa_sales' ) {
+ @cust_locations_missing_district = $cust_main->cust_locations_missing_district();
+}
+
%init>