X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-cust_main.html;h=6906cb3f6c661f88436c9788c1be3967f79464c5;hb=bb863b9ae9612ae40a922a2f0d0cd82f949cad09;hp=ca0b52252849f55c7cd9689df27c0f2a2f494546;hpb=5747043b65207732f7c84cc16ea77d2da3f5813f;p=freeside.git diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html index ca0b52252..6906cb3f6 100644 --- a/httemplate/elements/header-cust_main.html +++ b/httemplate/elements/header-cust_main.html @@ -3,17 +3,19 @@ Examples: <& /elements/header-cust_main.html, - view => 'Basics', #required + view => 'basics', #required cust_main => $cust_main, # cust_main or custnum is required custnum => $custnum, # &> <& /elements/header.html, { - 'title' => $title, - 'title_noescape' => $title_noescape, - 'head' => $head, - 'nobr' => 1, + 'title' => $title, + 'title_noescape' => $title_noescape, + 'head' => $head, + 'etc' => $opt{'etc'}, + 'include_selectize' => $opt{include_selectize} ? 1 : 0, + #'nobr' => 1, } &> @@ -33,7 +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'} &>
@@ -56,7 +108,6 @@ function areyousure_popup(message, action, actionlabel) { } -
<%init> my $curuser = $FS::CurrentUser::CurrentUser; @@ -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(); +} +