From a495aa8d41e752490fff8d61aa190601c51a2cb1 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sun, 20 Jan 2019 16:25:50 -0500 Subject: RT# 80488 Banner on customer page when missing tax districts --- httemplate/elements/header-cust_main.html | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'httemplate') diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html index f29f325..7af7dff 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(); +} + -- cgit v1.1