+% if ( $cust_main->invoice_noemail and ! $cust_main->postal_invoice ) {
+% # as above, warn if the customer refuses both email and postal invoices
+ <TD CLASS="error"><% $refused %></TD>
+% } else {
+ <TD><% $cust_main->invoice_noemail ? $refused : $allowed %></TD>
+% }