+% }
+
+% if ( $conf->exists('cust_main-select-billday')
+% && qsearch({ 'table' => 'cust_payby',
+% 'hashref' => { 'custnum' => $cust_main->custnum, },
+% 'extra_sql' => "AND payby IN ( 'CARD', 'CHEK' )",
+% 'order_by' => 'LIMIT 1',
+% })
+% )
+% {
+ <TR>
+ <TH ALIGN="right"><% mt('Payment day of month') |h %></TH>
+ <TD><% $cust_main->billday %>
+ </TD>
+ </TR>
+% }
+
+% if ( $cust_main->po_number ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Purchase Order #') |h %></TH>
+ <TD><% $cust_main->po_number %></TD>
+ </TR>
+% }
+
+% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
+
+% unless ( $conf->exists('cust_class-tax_exempt')
+% || $conf->exists('tax-cust_exempt-groups-require_individual_nums')
+% )
+% {
+ <TR>
+ <TH ALIGN="right"><% mt('Tax exempt') |h %><% @exempt_groups ? ' ('.emt('all taxes').')' : '' %></TH>
+ <TD><% $cust_main->tax ? $yes : $no %></TD>
+ </TR>
+% }
+
+% foreach my $exempt_group ( @exempt_groups ) {
+% my $cust_main_exemption = $cust_main->tax_exemption($exempt_group);
+ <TR>
+ <TH ALIGN="right"><% mt('Tax exempt') |h %> (<% $exempt_group %> taxes)</TH>
+ <TD><% $cust_main_exemption ? $yes : $no %>
+ <% $cust_main_exemption ? $cust_main_exemption->exempt_number : '' |h %>
+ </TD>
+ </TR>
+% }
+
+% if ( $conf->config('tax_data_vendor') eq 'cch' ) {
+<TR>
+ <TH ALIGN="right"><% mt('Tax location') |h %></TH>
+% my $tax_location = $conf->exists('tax-ship_address')
+% ? $cust_main->ship_location
+% : $cust_main->bill_location;
+ <TD><% $tax_location->geocode('cch') %></TD>
+</TR>
+% }
+<TR>
+ <TH ALIGN="right"><% mt('Postal mail invoices') |h %></TH>
+% if ( $cust_main->postal_invoice ) {
+ <TD><% $yes . ( $cust_main->invoice_attn
+ ? ', attn: '. $cust_main->invoice_attn
+ : ''
+ ) %>
+ </TD>
+% } elsif ( $cust_main->invoice_noemail
+% or scalar(@invoicing_list) == 0 ) {
+% # alert the user that this customer has no way to receive an invoice
+ <TD CLASS="error"><% $no %></TD>
+% } else {
+ <TD><% $no %></TD>
+% }