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/misc/payment.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/misc/payment.cgi')
-rw-r--r-- | httemplate/misc/payment.cgi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 5b9f63dc0..90b03c7e8 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -20,10 +20,12 @@ 'surcharge_percentage' => scalar($conf->config('credit-card-surcharge-percentage')), &> - <& /elements/tr-select-discount_term.html, - 'custnum' => $custnum, - 'amount_id' => 'amount', - &> +% if ( $conf->exists('part_pkg-term_discounts') ) { + <& /elements/tr-select-discount_term.html, + 'custnum' => $custnum, + 'amount_id' => 'amount', + &> +% } % if ( $payby eq 'CARD' ) { % |