diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-05-06 18:53:46 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-05-06 18:53:46 -0700 |
commit | 028c83edfa000f6bdbcd32ee3ffd5ee5561110d2 (patch) | |
tree | 8145b5b1d9d316d0bdd8b4150d867fcb566e7f45 /httemplate/edit/cust_pay.cgi | |
parent | 4bedcbc1559746f5aa2d2bbb9b26d6519ae47829 (diff) |
config to turn on term discounts feature, fixing perf problems entering payments / manually processing cards, RT#27038
Diffstat (limited to 'httemplate/edit/cust_pay.cgi')
-rwxr-xr-x | httemplate/edit/cust_pay.cgi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index d4414e44e..ec7391b20 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -56,10 +56,12 @@ <TD><INPUT TYPE="text" NAME="paid" ID="paid" VALUE="<% $paid %>" SIZE=8 MAXLENGTH=9> <% mt('by') |h %> <B><% mt(FS::payby->payname($payby)) |h %></B></TD> </TR> - <& /elements/tr-select-discount_term.html, - 'custnum' => $custnum, - 'amount_id' => 'paid', - &> +% if ( $conf->exists('part_pkg-term_discounts') ) { + <& /elements/tr-select-discount_term.html, + 'custnum' => $custnum, + 'amount_id' => 'paid', + &> +% } % if ( $payby eq 'BILL' ) { <TR> |