[freeside-commits] branch master updated. 1af8d0fac869b4b62526eec4b8ce56d5bc2c69fe

Ivan ivan at 420.am
Sun Dec 9 10:37:33 PST 2012


The branch, master has been updated
       via  1af8d0fac869b4b62526eec4b8ce56d5bc2c69fe (commit)
      from  93e3a52f23c3473207f29f36cda06adfe221353f (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 1af8d0fac869b4b62526eec4b8ce56d5bc2c69fe
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Dec 9 10:37:32 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