diff options
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/edit/credit-cust_bill_pkg.html | 9 | ||||
| -rw-r--r-- | httemplate/edit/process/credit-cust_bill_pkg.html | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/edit/credit-cust_bill_pkg.html b/httemplate/edit/credit-cust_bill_pkg.html index 77453a1cc..3d1cf2438 100644 --- a/httemplate/edit/credit-cust_bill_pkg.html +++ b/httemplate/edit/credit-cust_bill_pkg.html @@ -92,6 +92,15 @@ </TD> </TR> +% if ( $conf->exists('credits-auto-apply-disable') ) { + <INPUT TYPE="HIDDEN" NAME="apply" VALUE="no"> +% } else { + <TR> + <TD ALIGN="right"><% mt('Apply to selected line items') |h %></TD> + <TD><SELECT NAME="apply"><OPTION VALUE="yes" SELECTED><% mt('yes') |h %><OPTION><% mt('no') |h %></SELECT></TD> + </TR> +% } + </table> <BR> diff --git a/httemplate/edit/process/credit-cust_bill_pkg.html b/httemplate/edit/process/credit-cust_bill_pkg.html index 1b6199772..cbcf619ca 100644 --- a/httemplate/edit/process/credit-cust_bill_pkg.html +++ b/httemplate/edit/process/credit-cust_bill_pkg.html @@ -32,6 +32,7 @@ my $error = FS::cust_credit->credit_lineitems( 'billpkgnums' => \@billpkgnums, 'setuprecurs' => \@setuprecurs, 'amounts' => \@amounts, + 'apply' => ( $cgi->param('apply') eq 'yes' ), #the credit 'newreasonnum' => scalar($cgi->param('newreasonnum')), |
