summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-10-14 09:28:11 +0000
committerivan <ivan>2002-10-14 09:28:11 +0000
commit5777441b5e57a3ac02880973a0af0342cd4ab730 (patch)
tree38d17c9cc9e1f04c3e942a2404302e6469d5e0ef
parent863f3af049164ba633a108f17017a3f749f45b24 (diff)
close invoices which are declined. closes: Bug#408
-rwxr-xr-xfs_signup/fs_signup_server6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs_signup/fs_signup_server b/fs_signup/fs_signup_server
index 7f962e057..703c76ec7 100755
--- a/fs_signup/fs_signup_server
+++ b/fs_signup/fs_signup_server
@@ -188,9 +188,15 @@ while (1) {
if $bill_error;
if ( $cust_main->balance > 0 ) {
+
+ #this makes sense. credit is "un-doing" the invoice
+ $cust_main->credit( $cust_main->balance, 'signup server decline' );
+ $cust_main->apply_credits;
+
#should check list for errors...
#$cust_main->suspend;
$cust_main->cancel;
+
$error = '_decline';
}
}