[freeside-commits] freeside/FS/FS/ClientAPI Signup.pm,1.56,1.57
Ivan,,,
ivan at wavetail.420.am
Tue Aug 24 13:11:10 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv7333
Modified Files:
Signup.pm
Log Message:
ensure signup payments are applied, RT#9689
Index: Signup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/Signup.pm,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -w -d -r1.56 -r1.57
--- Signup.pm 12 Aug 2010 21:31:19 -0000 1.56
+++ Signup.pm 24 Aug 2010 20:11:08 -0000 1.57
@@ -641,14 +641,14 @@
if ( $conf->exists('signup_server-realtime') ) {
- #warn "[fs_signup_server] Billing customer...\n" if $Debug;
+ #warn "$me Billing customer...\n" if $Debug;
my $bill_error = $cust_main->bill;
- #warn "[fs_signup_server] error billing new customer: $bill_error"
+ #warn "$me error billing new customer: $bill_error"
# if $bill_error;
$bill_error = $cust_main->apply_payments_and_credits;
- #warn "[fs_signup_server] error applying payments and credits for".
+ #warn "$me error applying payments and credits for".
# " new customer: $bill_error"
# if $bill_error;
@@ -656,7 +656,7 @@
method => FS::payby->payby2bop( $packet->{payby} ),
depend_jobnum => $placeholder->jobnum,
);
- #warn "[fs_signup_server] error collecting from new customer: $bill_error"
+ #warn "$me error collecting from new customer: $bill_error"
# if $bill_error;
if ($bill_error && ref($bill_error) eq 'HASH') {
@@ -668,6 +668,11 @@
};
}
+ $bill_error = $cust_main->apply_payments_and_credits;
+ #warn "$me error applying payments and credits for".
+ # " new customer: $bill_error"
+ # if $bill_error;
+
if ( $cust_main->balance > 0 ) {
#this makes sense. credit is "un-doing" the invoice
More information about the freeside-commits
mailing list