[freeside-commits] branch FREESIDE_3_BRANCH updated. bd756736dc14bcb0fdb8c4819dc273c584541258
Ivan
ivan at 420.am
Fri Jun 2 11:03:55 PDT 2017
The branch, FREESIDE_3_BRANCH has been updated
via bd756736dc14bcb0fdb8c4819dc273c584541258 (commit)
from a6fdc051a4920122c2302191be4855cfa7440e80 (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 bd756736dc14bcb0fdb8c4819dc273c584541258
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Jun 2 11:03:39 2017 -0700
skip non-linked cust_main_invoice records, RT#75629
diff --git a/bin/create-billing-contacts-v3 b/bin/create-billing-contacts-v3
index a4e7e12..c8ccd59 100755
--- a/bin/create-billing-contacts-v3
+++ b/bin/create-billing-contacts-v3
@@ -39,7 +39,9 @@ print "Found email destinations: ".scalar(@invoice_dests)."\n";
my %email_used;
foreach my $invoice_dest (@invoice_dests) {
- my $cust_main = $invoice_dest->cust_main;
+ my $cust_main = $invoice_dest->cust_main
+ or next; #cust_main_invoice.custnum points to non-existant customer?
+ #will need to be fixed before v4 upgrade, but this can still run..
my $last = $cust_main->get('last');
my $first = $cust_main->get('first');
my $email = $invoice_dest->dest;
-----------------------------------------------------------------------
Summary of changes:
bin/create-billing-contacts-v3 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list