X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-cust_main.html;h=6906cb3f6c661f88436c9788c1be3967f79464c5;hb=bb863b9ae9612ae40a922a2f0d0cd82f949cad09;hp=d0dc1db578ed62da96d37ad7843b6069eb6e34dd;hpb=287b33b072a38c08535bc0c300ea48e0a587190c;p=freeside.git diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html index d0dc1db57..6906cb3f6 100644 --- a/httemplate/elements/header-cust_main.html +++ b/httemplate/elements/header-cust_main.html @@ -10,11 +10,12 @@ Examples: <& /elements/header.html, { - 'title' => $title, - 'title_noescape' => $title_noescape, - 'head' => $head, - #'nobr' => 1, - 'etc' => $opt{'etc'}, + 'title' => $title, + 'title_noescape' => $title_noescape, + 'head' => $head, + 'etc' => $opt{'etc'}, + 'include_selectize' => $opt{include_selectize} ? 1 : 0, + #'nobr' => 1, } &> @@ -34,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'} &>
@@ -92,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(); +} +