diff options
author | ivan <ivan> | 2008-04-01 08:43:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-04-01 08:43:33 +0000 |
commit | 4d3c77fe23ae72abb72e4cb9f8e77a84b2375e6a (patch) | |
tree | 109f3e3e9feb6f39f1261eb8a9949c453bd883c1 /FS/FS/cust_main_invoice.pm | |
parent | 2f673cd6e61a8c67c4ef89d11cae3e96a7fac306 (diff) |
last bit of magic for RT ticket customer auto-association: look for requestor email addresses in cust_main_invoice and svc_acct, closes; RT#1160
Diffstat (limited to 'FS/FS/cust_main_invoice.pm')
-rw-r--r-- | FS/FS/cust_main_invoice.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/cust_main_invoice.pm b/FS/FS/cust_main_invoice.pm index 71029d0..11d5a44 100644 --- a/FS/FS/cust_main_invoice.pm +++ b/FS/FS/cust_main_invoice.pm @@ -159,6 +159,17 @@ sub address { } } +=item cust_main + +Returns the parent customer object (see L<FS::cust_main>). + +=cut + +sub cust_main { + my $self = shift; + qsearchs( 'cust_main', { 'custnum' => $self->custnum } ); +} + =back =head1 BUGS |