X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=858f906ddc98ca93fc41b7a0c336777c46357082;hb=810f6c01aa6882f6893d4cbb061d1adafaf79638;hp=519f2f8f21df21481131a35e057c54dd16fb0917;hpb=dd72ad399c69875b14703e9086f8cedb88acb518;p=freeside.git diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 519f2f8f2..858f906dd 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -516,6 +516,20 @@ +% if ( $conf->config_bool('allow_payment_receipt_noemail', $cust_main->agentnum) ) { + + paymentreceipt_noemail eq 'Y' ) + ? 'CHECKED' + : '' + + %>> <% mt('Do not send email payment receipts') |h %> + + + +% } + % unless ( $conf->exists('cust-email-high-visibility')) { @@ -537,8 +551,14 @@ <% mt('Prorate day (1-28)') |h %> + <& /elements/checkbox.html, + field => 'force_prorate_day', + value => 'Y', + curr_value => $cust_main->force_prorate_day + &> + - + % } else { % } @@ -546,10 +566,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, + &> +% }