diff options
author | Mitch Jackson <mitch@freeside.biz> | 2019-01-20 16:25:50 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2019-01-20 16:47:50 -0500 |
commit | bb863b9ae9612ae40a922a2f0d0cd82f949cad09 (patch) | |
tree | 785093aebafc58feb4021c3b099d9512246b9c86 /httemplate/elements/header-cust_main.html | |
parent | 033d235172023f4ac44088808cc735f86e092477 (diff) |
RT# 80488 Banner on customer page when missing tax districts
Diffstat (limited to 'httemplate/elements/header-cust_main.html')
-rw-r--r-- | httemplate/elements/header-cust_main.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/httemplate/elements/header-cust_main.html b/httemplate/elements/header-cust_main.html index b743f5acf..6906cb3f6 100644 --- a/httemplate/elements/header-cust_main.html +++ b/httemplate/elements/header-cust_main.html @@ -35,6 +35,57 @@ Examples: % } </TABLE> % } +% if ( scalar @cust_locations_missing_district ) { + <div style="margin: 0 1em; padding: 1em; border: solid 1px #999; background-color: #fee;"> + <h4 style="margin: 0; border-bottom: solid 1px #aaa; color: red;">Customer will not be billed:</h4> + <p style="margin: .5em;"> + The following customer locations are missing tax districts for Washington State.<br> + Sales taxes cannot be calculated for this customer.<br> + Correct the address information, or enter a tax district number. + <ul> +% for my $cust_location ( @cust_locations_missing_district ) { + <li> + (<a href="#" onclick="overlib_edit_location(<% $cust_location->locationnum %>);"> + EDIT + </a>) + <% $cust_location->address1 %> + <% $cust_location->city %> + <% $cust_location->state %> + <% $cust_location->zip %> + (<% $cust_location->locationnum %>) + </li> +% } # /for my $cust_location + </ul> + </div> + <script> + function overlib_edit_location(locationnum) { + overlib( + OLiframeContent( + '<% $fsurl %>edit/cust_location.cgi?locationnum=' + locationnum, + 700, 355, + 'popup-1548013977-3901-3256727185.50958', + 0, + 'auto' + ), + CAPTION, 'Edit location', + STICKY, + AUTOSTATUSCAP, + MIDX, 0, + MIDY, 0, + DRAGGABLE, + CLOSECLICK, + TEXTPADDING, 0, + BASE, 0, + BGCOLOR, '#333399', + CGCOLOR, '#333399', + FGCOLOR, '#f8f8f8', + CLOSETEXT, 'Close' + ); + return false; + } + </script> + <br> +% } # /if @cust_locations_missing_district <& /view/cust_main/menu.html, cust_main => $cust_main, show => $opt{'view'} &> <BR> @@ -93,4 +144,10 @@ if ( $ie_compat ) { $head = qq(<meta http-equiv="X-UA-Compatible" content="IE=$ie_compat" />); } +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(); +} + </%init> |