X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fheader-cust_main.html;h=7af7dffd585c15215677897d50fcc2c47db2087c;hp=c094f950f490514608d64b16c871cc81615c366c;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=4afceb55388ffa32d18c2b821fda11027540dce5 diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html index c094f950f..7af7dffd5 100644 --- a/httemplate/elements/header-cust_main.html +++ b/httemplate/elements/header-cust_main.html @@ -10,12 +10,12 @@ Examples: <& /elements/header.html, { - 'title' => $title, - 'title_noescape' => $title_noescape, - #'nobr' => 1, - 'etc' => $opt{'etc'}, - } -&> + 'title' => $title, + 'title_noescape' => $title_noescape, + #'nobr' => 1, + 'etc' => $opt{'etc'}, + include_selectize => $opt{include_selectize} ? 1 : 0, +} &> % my @part_tag = $cust_main->part_tag; % if ( $conf->config('cust_tag-location') eq 'top' && @part_tag ) { @@ -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(); +} +