${r}!.emt('Expiration').qq! | !.
% ''.
%
% include('/elements/select-month_year.html',
@@ -280,7 +352,7 @@
%
% ''.
%
-% qq!${r}Amount | !.
+% qq! ${r}!.emt('Amount').qq! | !.
% qq! | !.
%
% ' | '.
@@ -296,7 +368,7 @@
%
% ''.
%
-% qq!${r}Amount | !.
+% qq! ${r}!.emt('Amount').qq! | !.
% qq! | !.
%
% ' | '.
@@ -312,7 +384,7 @@
%
% '',
'layer_callback' => sub { my $layer = shift; $payby{$layer}; },
- )
- %>
+ 'onchange' => 'init_payauto_changed();',
+ &>
<% &ntable("#cccccc") %>
@@ -382,7 +454,7 @@
? 'CHECKED'
: ''
- %>> Postal mail invoice
+ %>> <% mt('Postal mail invoice') |h %>
@@ -394,57 +466,104 @@
? 'CHECKED'
: ''
- %>> Fax invoice
+ %>> <% mt('Fax invoice') |h %>
% }
+% unless ( $conf->exists('cust-email-high-visibility')) {
<% $conf->exists('cust_main-require_invoicing_list_email') ? $r : '' %>Email address(es)
|
|
+% }
+
+
+ <% mt('Invoice terms') |h %> |
+
+ <& /elements/select-terms.html,
+ 'curr_value' => $cust_main->invoice_terms,
+ &>
+ |
+
- 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($conf->exists('voip-cdr_email') ? 'Omit CDRs from printed invoices' : 'Omit CDRs from 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>
my $paystate_label = FS::Msgcat::_gettext('paystate');
@@ -464,4 +583,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>
|