From: Mitch Jackson Date: Sun, 20 Jan 2019 21:25:50 +0000 (-0500) Subject: RT# 80488 Banner on customer page when missing tax districts X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a495aa8d41e752490fff8d61aa190601c51a2cb1 RT# 80488 Banner on customer page when missing tax districts --- 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. +

+
+ +
+% } # /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(); +} +