diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2014-05-06 18:53:48 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2014-05-06 18:53:48 -0700 |
| commit | dfc390ed3e27de2f1ec26edf9c07f5d3bd8a6049 (patch) | |
| tree | dbdb09e88441852e3e6c800ef45a3813049c5401 /httemplate/misc | |
| parent | 0e50833deb77ce7eff66fe7da5d68647b82d7280 (diff) | |
config to turn on term discounts feature, fixing perf problems entering payments / manually processing cards, RT#27038
Diffstat (limited to 'httemplate/misc')
| -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' ) { % |
