X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=5935da9cdf2a03a82bdd27158fc699a7d912a2fd;hp=84241d2978cc5d8bd7a010979c7791bc671d85f3;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=747949f05c140e23221b3a2364928431f58fc2d3 diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 84241d297..5935da9cd 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -1,20 +1,8 @@ <% mt('Billing information') |h %> -%# If we can't see the unencrypted card, then bill now is an exercise in -%# frustration (without some sort of job queue magic to send it to a secure -%# machine, anyway) -%if ( $FS::CurrentUser::CurrentUser->access_right('Bill customer now') -% && ! $cust_main->is_encrypted($cust_main->payinfo) -% ) { -%# (<% mt('Bill now') |h %>) - <& /elements/bill.html, - custnum => $cust_main->custnum, - label => emt('Bill now'), - url => $p.'view/cust_main.cgi?'.$cust_main->custnum, - &> -% } - % my $yes = emt('yes'); % my $no = emt('no'); +% my $allowed = emt('allowed'); +% my $refused = emt('refused');
<% $balance %> | +||||
<% emt( 'Recurring' ) %> | ++ | |||
---|---|---|---|---|
<% mt('Prorate day of month') |h %> | <% $cust_main->prorate_day %> + <% $cust_main->force_prorate_day && (''.emt('(applies to all packages)').'') %> | |||
<% mt('Tax location') |h %> | % my $tax_location = $conf->exists('tax-ship_address') % ? $cust_main->ship_location % : $cust_main->bill_location; -<% $tax_location->geocode('cch') %> | +<% $tax_location && $tax_location->geocode %> | ||
<% mt('Postal mail invoices') |h %> | -- <% ( grep { $_ eq 'POST' } @invoicing_list ) - ? $yes. ( $cust_main->invoice_attn +% if ( $cust_main->postal_invoice ) { + | <% $yes . ( $cust_main->invoice_attn ? ', attn: '. $cust_main->invoice_attn : '' - ) - : $no - %> + ) %> + | +% } elsif ( $cust_main->invoice_noemail +% or scalar(@invoicing_list) == 0 ) { +% # alert the user that this customer has no way to receive an invoice +<% $no %> | +% } else { +<% $no %> | +% }
<% mt('Email invoices') |h %> | -- <% $cust_main->invoice_noemail ? $no : $yes %> - | +% if ( $cust_main->invoice_noemail and ! $cust_main->postal_invoice ) { +% # as above, warn if the customer refuses both email and postal invoices +<% $refused %> | +% } else { +<% $cust_main->invoice_noemail ? $refused : $allowed %> | +% }|
<% mt('Email address(es)') |h %> | +<% mt('Other email notices') |h %> |
- <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %>
-% if ( $cust_main->message_noemail ) {
- - <% emt('(do not send notices)') %> -% } + <% $cust_main->message_noemail ? $refused : $allowed %> |
||
<% mt('Invoice terms') |h %> | @@ -151,13 +200,6 @@ | |||
<% mt('Spool CDRs') |h %> | -<% $cust_main->spool_cdr ? $yes : $no %> | -|||
<% mt($conf->exists('voip-cdr_email') ? 'Print CDRs' : 'Show CDRs') |h %> | @@ -172,9 +214,9 @@||||
<% mt('Email CDRs as CSV') |h %> | +<% mt('Email CDRs as '.uc($attach)) |h %> | <% $cust_main->email_csv_cdr ? $yes : $no %> |