diff options
author | ivan <ivan> | 2004-12-09 09:21:43 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-12-09 09:21:43 +0000 |
commit | 8d4abaa99403699aa5b5f02e899d2ea33980f913 (patch) | |
tree | 08cb2a528d281f9f5861fc94b8f3657abf57b8a7 /httemplate/view/cust_main/billing.html | |
parent | 8127468dc459a8257ab7c15cca10801b9b2a3551 (diff) |
more RT integration
Diffstat (limited to 'httemplate/view/cust_main/billing.html')
-rw-r--r-- | httemplate/view/cust_main/billing.html | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html new file mode 100644 index 000000000..18a203bd6 --- /dev/null +++ b/httemplate/view/cust_main/billing.html @@ -0,0 +1,119 @@ +<% + my( $cust_main ) = @_; + my @invoicing_list = $cust_main->invoicing_list; +%> + +Billing information +(<A HREF="<%= $p %>misc/bill.cgi?<%= $cust_main->custnum %>">Bill now</A>) +<%= ntable("#cccccc") %><TR><TD><%= ntable("#cccccc",2) %> +<TR> + <TD ALIGN="right">Tax exempt</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->tax ? 'yes' : 'no' %></TD> +</TR> +<TR> + <TD ALIGN="right">Postal invoices</TD> + <TD BGCOLOR="#ffffff"> + <%= ( grep { $_ eq 'POST' } @invoicing_list ) ? 'yes' : 'no' %> + </TD> +</TR> +<TR> + <TD ALIGN="right">Email invoices</TD> + <TD BGCOLOR="#ffffff"> + <%= join(', ', grep { $_ ne 'POST' } @invoicing_list ) || 'no' %> + </TD> +</TR> +<TR> + <TD ALIGN="right">Billing type</TD> + <TD BGCOLOR="#ffffff"> + +<% if ( $cust_main->payby eq 'CARD' || $cust_main->payby eq 'DCRD' ) { %> + + Credit card <%= $cust_main->payby eq 'CARD' ? '(automatic)' : '(on-demand)' %> + </TD> +</TR> +<TR> + <TD ALIGN="right">Card number</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->payinfo_masked %></TD> +</TR> +<TR> + <TD ALIGN="right">Expiration</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->paydate %></TD> +</TR> +<TR> + <TD ALIGN="right">Name on card</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->payname %></TD> +</TR> + +<% } elsif ( $cust_main->payby eq 'CHEK' || $cust_main->payby eq 'DCHK') { + my( $account, $aba ) = split('@', $cust_main->payinfo ); +%> + + Electronic check <%= $cust_main->payby eq 'CHEK' ? '(automatic)' : '(on-demand)' %> + </TD> +</TR> +<TR> + <TD ALIGN="right">ABA/Routing code</TD> + <TD BGCOLOR="#ffffff"><%= $aba %></TD> +</TR> +<TR> + <TD ALIGN="right">Account number</TD> + <TD BGCOLOR="#ffffff"><%= $account %></TD> +</TR> +<TR> + <TD ALIGN="right">Bank name</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->payname %></TD> +</TR> + +<% } elsif ( $cust_main->payby eq 'LECB' ) { + $cust_main->payinfo =~ /^(\d{3})(\d{3})(\d{4})$/; + my $payinfo = "$1-$2-$3"; +%> + + Phone bill billing + </TD> +</TR> +<TR> + <TD ALIGN="right">Phone number</TD> + <TD BGCOLOR="#ffffff"><%= $payinfo %></TD> +</TR> + +<% } elsif ( $cust_main->payby eq 'BILL' ) { %> + + Billing + </TD> +</TR> + + <% if ( $cust_main->payinfo ) { %> +<TR> + <TD ALIGN="right">P.O. </TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->payinfo %></TD> +</TR> + <% } %> + +<TR> + <TD ALIGN="right">Expiration</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->paydate %></TD> +</TR> +<TR> + <TD ALIGN="right">Attention</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->payname %></TD> +</TR> + +<% } elsif ( $cust_main->payby eq 'COMP' ) { %> + + Complimentary + </TD> +</TR> +<TR> + <TD ALIGN="right">Authorized by</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->payinfo %></TD> +</TR> +<TR> + <TD ALIGN="right">Expiration</TD> + <TD BGCOLOR="#ffffff"><%= $cust_main->paydate %></TD> +</TR> + +<% } %> + +</TABLE></TD></TR></TABLE> + |