diff options
author | ivan <ivan> | 2002-10-14 09:28:14 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-10-14 09:28:14 +0000 |
commit | 1b2fb3324740555200590d8f75e339e44acf447a (patch) | |
tree | 8b64cb0c4a070640c9c35d4f0570513302e2ae05 /fs_signup | |
parent | 196f70d25dc9dda5c765ab534734c307644dee0c (diff) |
close invoices which are declined. closes: Bug#408
Diffstat (limited to 'fs_signup')
-rwxr-xr-x | fs_signup/fs_signup_server | 6 |
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'; } } |