X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_signup%2Ffs_signup_server;h=703c76ec7b8223f3a3835897f41840a051cb1411;hb=548a47b0ec1040320e56f17cfac71f716785cb95;hp=7f962e057d8b97dc98ad98ad1e54213a5d00f03f;hpb=5364c3dfb131a502b0613eb59a0451165f09c267;p=freeside.git 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'; } }