summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill_pay.pm
diff options
context:
space:
mode:
authorivan <ivan>2001-09-02 02:46:55 +0000
committerivan <ivan>2001-09-02 02:46:55 +0000
commit8c1f9804d9a02c0c054eededeb500c72a640249a (patch)
tree20d0161443eb1366279937378f3aee16cc542eec /FS/FS/cust_bill_pay.pm
parent51e148d543a59a3cdec24bfb5ffb839ee7b4ac72 (diff)
cust_refund and cust_pay get custnums
Diffstat (limited to 'FS/FS/cust_bill_pay.pm')
-rw-r--r--FS/FS/cust_bill_pay.pm15
1 files changed, 13 insertions, 2 deletions
diff --git a/FS/FS/cust_bill_pay.pm b/FS/FS/cust_bill_pay.pm
index 6d08b59..a7e2831 100644
--- a/FS/FS/cust_bill_pay.pm
+++ b/FS/FS/cust_bill_pay.pm
@@ -176,14 +176,25 @@ Returns the payment (see L<FS::cust_pay>)
sub cust_pay {
my $self = shift;
- qsearchs( 'cust_pay', { 'invnum' => $self->invnum } );
+ qsearchs( 'cust_pay', { 'paynum' => $self->paynum } );
+}
+
+=item cust_bill
+
+Returns the invoice (see L<FS::cust_bill>)
+
+=cut
+
+sub cust_bill {
+ my $self = shift;
+ qsearchs( 'cust_bill', { 'invnum' => $self->invnum } );
}
=back
=head1 VERSION
-$Id: cust_bill_pay.pm,v 1.3 2001-09-02 01:27:11 ivan Exp $
+$Id: cust_bill_pay.pm,v 1.4 2001-09-02 02:46:55 ivan Exp $
=head1 BUGS