From bb863b9ae9612ae40a922a2f0d0cd82f949cad09 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sun, 20 Jan 2019 16:25:50 -0500 Subject: [PATCH] RT# 80488 Banner on customer page when missing tax districts --- httemplate/elements/header-cust_main.html | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html index b743f5acf..6906cb3f6 100644 --- a/httemplate/elements/header-cust_main.html +++ b/httemplate/elements/header-cust_main.html @@ -35,6 +35,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'} &>
@@ -93,4 +144,10 @@ if ( $ie_compat ) { $head = qq(); } +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(); +} + -- 2.11.0