summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-12-11 16:34:22 -0800
committerIvan Kohler <ivan@freeside.biz>2012-12-11 16:34:22 -0800
commit77013a067fa4612c41c72fee369f681eac32ae4f (patch)
tree912ad0b5766d0c3c59a5376eef9c62c90b47b104
parent61f1dbf6a14999ac75ad76c7b2b6f706ed438c11 (diff)
create credits by selecting line items, RT#18676
-rw-r--r--httemplate/edit/process/credit-cust_bill_pkg.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/edit/process/credit-cust_bill_pkg.html b/httemplate/edit/process/credit-cust_bill_pkg.html
index d3323e6ed..8b2f3f3ea 100644
--- a/httemplate/edit/process/credit-cust_bill_pkg.html
+++ b/httemplate/edit/process/credit-cust_bill_pkg.html
@@ -28,11 +28,14 @@ foreach my $billpkgnum_setuprecur (@billpkgnum_setuprecurs) {
}
my $error = FS::cust_credit->credit_lineitems(
- 'newreasonnum' => scalar($cgi->param('newreasonnum')),
- 'newreasonnum_type' => scalar($cgi->param('newreasonnumT')),
+ #the lineitems to credit
'billpkgnums' => \@billpkgnums,
'setuprecurs' => \@setuprecurs,
'amounts' => \@amounts,
+
+ #the credit
+ 'newreasonnum' => scalar($cgi->param('newreasonnum')),
+ 'newreasonnum_type' => scalar($cgi->param('newreasonnumT')),
map { $_ => scalar($cgi->param($_)) }
#fields('cust_credit')
qw( custnum _date amount reason reasonnum addlinfo ), #pkgnum eventnum