diff options
author | Mark Wells <mark@freeside.biz> | 2014-01-07 12:19:59 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-01-07 12:19:59 -0800 |
commit | 429a48b18a54917b73b3add468d930f60bcdb2fe (patch) | |
tree | 73d579ac400d5a9745f68b998f3799b92818fd97 /FS/FS/cust_credit.pm | |
parent | 77783e2521b98f0ca76ebe953873fbdc7cc51e98 (diff) |
fix method name conflicts, related to #13971
Diffstat (limited to 'FS/FS/cust_credit.pm')
-rw-r--r-- | FS/FS/cust_credit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm index 7845a20..df59950 100644 --- a/FS/FS/cust_credit.pm +++ b/FS/FS/cust_credit.pm @@ -123,7 +123,7 @@ Creates a new credit. To add the credit to the database, see L<"insert">. =cut sub table { 'cust_credit'; } -sub cust_linked { $_[0]->cust_main_custnum; } +sub cust_linked { $_[0]->cust_main_custnum || $_[0]->custnum } sub cust_unlinked_msg { my $self = shift; "WARNING: can't find cust_main.custnum ". $self->custnum. |