X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=d98927488a21027e1d593b7d385529217018a279;hb=a0a446d2f9b98e706bd221159f9212fa0cac0af8;hp=fcb44a50a480cfef39f11895275a8979e9b51242;hpb=51b2e1987790eb224ead07ed0a8aef828a4965de;p=freeside.git diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index fcb44a50a..d98927488 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, + &> +% } @@ -234,9 +267,9 @@ function toggle(obj) { % } -% if ( $conf->config('voip-cdr_email_attach') ) { +% 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 {