[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 146ffcd6dcd8d3e6ad51eeb532c4b88c0a367096
Ivan
ivan at 420.am
Sun Dec 9 10:37:34 PST 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via 146ffcd6dcd8d3e6ad51eeb532c4b88c0a367096 (commit)
from 076d8c9e55781a4ad292914d30eed4d954cecb13 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 146ffcd6dcd8d3e6ad51eeb532c4b88c0a367096
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Dec 9 10:37:33 2012 -0800
create credits by selecting line items, RT#18676
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm
index f7f3758..0251cee 100644
--- a/FS/FS/cust_credit.pm
+++ b/FS/FS/cust_credit.pm
@@ -623,14 +623,19 @@ sub credited_sql {
Example:
my $error = FS::cust_credit->credit_lineitems(
- #the lineitems
+
+ #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')
+ #fields('cust_credit')
+ qw( custnum _date amount reason reasonnum addlinfo ), #pkgnum eventnum
+
);
=cut
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_credit.pm | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list