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=219c811aa5ee634bb17e1fa19a2d75351949b8d4 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(); +} +