[freeside-commits] branch master updated. a51e2d1d9c27f9329b3ff0305a60dbf773a11b71

Jonathan Prykop jonathan at 420.am
Thu Oct 29 20:17:06 PDT 2015


The branch, master has been updated
       via  a51e2d1d9c27f9329b3ff0305a60dbf773a11b71 (commit)
      from  7b53b47c6422721dc9490467b29ce2d0a319c9d0 (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 a51e2d1d9c27f9329b3ff0305a60dbf773a11b71
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Thu Oct 29 22:17:08 2015 -0500

    RT#38671: Do not include charges and credits from failed signup processing [added void reason]

diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 89c70f7..f272cd4 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -2521,8 +2521,8 @@ sub _do_bop_realtime {
 
         #this used to apply a credit, but now we can void invoices...
         foreach my $cust_bill (@cust_bill) {
-          my $voiderror = $cust_bill->void();
-          warn "Error voiding cust bill after decline: $voiderror";
+          my $voiderror = $cust_bill->void('automatic payment failed');
+          warn "Error voiding cust bill after decline: $voiderror" if $voiderror;
         }
 
       }
diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm
index a4ea21b..e166d40 100644
--- a/FS/FS/ClientAPI/Signup.pm
+++ b/FS/FS/ClientAPI/Signup.pm
@@ -824,8 +824,8 @@ sub new_customer {
 
       #this used to apply a credit, but now we can void invoices...
       foreach my $cust_bill (@cust_bill) {
-        my $voiderror = $cust_bill->void();
-        warn "Error voiding cust bill after decline: $voiderror";
+        my $voiderror = $cust_bill->void('automatic payment failed');
+        warn "Error voiding cust bill after decline: $voiderror" if $voiderror;
       }
 
       #should check list for errors...

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm |    4 ++--
 FS/FS/ClientAPI/Signup.pm    |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list