${r}!.emt('Expiration').qq! | !.
% ''.
%
% include('/elements/select-month_year.html',
@@ -280,7 +321,7 @@
%
% ''.
%
-% qq!${r}Amount | !.
+% qq! ${r}!.emt('Amount').qq! | !.
% qq! | !.
%
% ' | '.
@@ -296,7 +337,7 @@
%
% ''.
%
-% qq!${r}Amount | !.
+% qq! ${r}!.emt('Amount').qq! | !.
% qq! | !.
%
% ' | '.
@@ -312,7 +353,7 @@
%
% '',
'layer_callback' => sub { my $layer = shift; $payby{$layer}; },
- )
- %>
+ &>
<% &ntable("#cccccc") %>
|
+% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
+
- tax eq "Y" ? 'CHECKED' : '' %>> Tax Exempt |
+ tax eq "Y" ? 'CHECKED' : '' %>> Tax Exempt<% @exempt_groups ? ' (all taxes)' : '' %> |
+% foreach my $exempt_group ( @exempt_groups ) {
+% #escape $exempt_group for NAME
+
+ tax_exemption($exempt_group) ? 'CHECKED' : '' %>> Tax Exempt (<% $exempt_group %> taxes) |
+ |
+% }
+
% unless ( $conf->exists('emailinvoiceonly') ) {
@@ -373,7 +422,7 @@
? 'CHECKED'
: ''
- %>> Postal mail invoice
+ %>> <% mt('Postal mail invoice') |h %>
@@ -385,7 +434,7 @@
? 'CHECKED'
: ''
- %>> Fax invoice
+ %>> <% mt('Fax invoice') |h %>
@@ -400,40 +449,81 @@
- Invoice terms |
+ <% mt('Invoice terms') |h %> |
-
+ <& /elements/select-terms.html,
+ 'curr_value' => $cust_main->invoice_terms,
+ &>
+ |
+
+
+
+ <% mt('Credit limit') |h %> |
+
+
+ credit_limit) %><% length($cust_main->credit_limit) ? '' : ' DISABLED' %>>
+ credit_limit) ? '' : ' CHECKED'%>> <% mt('Unlimited') |h %>
|
% if ( $conf->exists('voip-cust_cdr_spools') ) {
- spool_cdr eq "Y" ? 'CHECKED' : '' %>> Spool CDRs |
+ spool_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Spool CDRs') |h %> |
% } else {
-
-% }
+% }
% if ( $conf->exists('voip-cust_cdr_squelch') ) {
- squelch_cdr eq "Y" ? 'CHECKED' : '' %>> Omit CDRs from invoices |
+ squelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Omit CDRs from printed invoices') |h %> |
% } else {
-
-% }
+% }
+
+% if ( $conf->exists('voip-cust_email_csv_cdr') ) {
+
+ email_csv_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Attach CDRs as CSV to emailed invoices') |h %> |
+
+% } else {
+
+% }
+
+% if ( $conf->exists('voip-cust_accountcode_cdr') ) {
+
+
+ accountcode_cdr eq "Y" ? 'CHECKED' : '' %>
+ > <% mt('Breakdown CDRs by accountcode') |h %> |
+
+% } else {
+
+% }
+
+% if ( $show_term || $cust_main->cdr_termination_percentage ) {
+
+ <% mt('CDR termination settlement') |h %> |
+ % |
+
+% } else {
+
+% }
- <% $r %> required fields
+ <% $r %> <% mt('required fields') |h %>
% }
<%once>
@@ -455,4 +545,13 @@ my @payby = grep /\w/, $conf->config('payby');
@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP ))
unless @payby;
+my $show_term = '';
+if ( $cust_main->custnum ) {
+ #false laziness w/view/cust_main/billing.html
+ my $term_sql = "SELECT COUNT(*) FROM cust_pkg LEFT JOIN part_pkg USING ( pkgpart ) WHERE custnum = ? AND plan = 'cdr_termination' LIMIT 1";
+ my $term_sth = dbh->prepare($term_sql) or die dbh->errstr;
+ $term_sth->execute($cust_main->custnum) or die $term_sth->errstr;
+ $show_term = $term_sth->fetchrow_arrayref->[0];
+}
+
%init>
|