X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=618e1913a95bfc7dbfc4fabaa799a9b29f2adcb6;hb=90e15da7354b55cc5461b58ac087096ed47e0240;hp=fbe3e485c505e5f2451c17292d833f90eec8f865;hpb=5d5ed9e94c8c9520f8d36ef23bbe47a135c35639;p=freeside.git
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index fbe3e485c..618e1913a 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -105,6 +105,16 @@
box_first => 1,
&>
+% if ( $conf->config_bool('allow_payment_receipt_noemail', $cust_main->agentnum) ) {
+ <& /elements/tr-checkbox.html,
+ field => 'paymentreceipt_noemail',
+ label => emt('Do not send email payment receipts'),
+ value => 'Y',
+ curr_value => $cust_main->paymentreceipt_noemail,
+ box_first => 1,
+ &>
+% }
+
<& /elements/tr-checkbox.html,
field => 'message_noemail',
label => emt('Do not send other email notices'),
@@ -124,6 +134,12 @@
+ <& /elements/checkbox.html,
+ field => 'force_prorate_day',
+ value => 'Y',
+ curr_value => $cust_main->force_prorate_day
+ &>
+
@@ -173,10 +189,27 @@
<% mt('Invoice terms') |h %>
|
- <& /elements/select-terms.html,
- 'curr_value' => $cust_main->invoice_terms,
- 'agentnum' => $cust_main->agentnum,
- &>
+% if ( $curuser->access_right('Edit customer invoice terms') ) {
+ <& /elements/select-terms.html,
+ 'curr_value' => $cust_main->invoice_terms,
+ 'agentnum' => $cust_main->agentnum,
+ &>
+% } else {
+%
+% my $terms =
+% $cust_main->invoice_terms
+% || emt('Default').' ('.
+% ( $conf->config('invoice_default_terms', $cust_main->agentnum)
+% || emt('Payable upon receipt')
+% ).
+% ')';
+ <% $terms |h %>
+
+ <& /elements/hidden.html,
+ 'field' => 'invoice_terms',
+ 'curr_value' => $cust_main->invoice_terms,
+ &>
+% }
|
@@ -218,14 +251,6 @@ function toggle(obj) {
% # CDR flags / options
% ###
-% if ( $conf->exists('voip-cust_cdr_spools') ) {
-
- spool_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Spool CDRs') |h %> |
-
-% } else {
-
-% }
-
% if ( $conf->exists('voip-cust_cdr_squelch') ) {
squelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt($conf->exists('voip-cdr_email') ? 'Omit CDRs from printed invoices' : 'Omit CDRs from invoices') |h %> |
@@ -234,9 +259,9 @@ function toggle(obj) {
% }
-% if ( $conf->exists('voip-cust_email_csv_cdr') ) {
+% if ( my $attach = $conf->config('voip-cdr_email_attach') ) {
- email_csv_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Attach CDRs as CSV to emailed invoices') |h %> |
+ email_csv_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Attach CDRs as '. uc($attach). ' to emailed invoices') |h %> |
% } else {