X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-cust_main.html;h=6906cb3f6c661f88436c9788c1be3967f79464c5;hb=bb863b9ae9612ae40a922a2f0d0cd82f949cad09;hp=a481881c5170b7a6420eb1bd73a124553e82410a;hpb=435f0dc9c5b8a4c703ecd52e34f54779d2a22b62;p=freeside.git diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html index a481881c5..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(); +} +