X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pay_refund.pm;h=15e0e533ac0ef3570b250ecf5036e48ffc33929c;hb=633c48448d9468690b7ad77eb6ff7c660a286658;hp=55a5eb7782b45ddc51e52fc70c8b49ebbb6edacf;hpb=157e8bdba110b7aac022bd2c2f7b377d3c5b2f85;p=freeside.git diff --git a/FS/FS/cust_pay_refund.pm b/FS/FS/cust_pay_refund.pm index 55a5eb778..15e0e533a 100644 --- a/FS/FS/cust_pay_refund.pm +++ b/FS/FS/cust_pay_refund.pm @@ -73,16 +73,6 @@ sub table { 'cust_pay_refund'; } Adds this cust_pay_refund to the database. If there is an error, returns the error, otherwise returns false. -=cut - -sub insert { - my $self = shift; - my $error = $self->SUPER::insert(@_); - return $error if $error; - - ''; -} - =item delete =cut @@ -148,26 +138,26 @@ sub check { $self->SUPER::check; } -=item sub cust_credit +=item sub cust_pay -Returns the credit (see L) +Returns the payment (see L) =cut -sub cust_credit { +sub cust_pay { my $self = shift; - qsearchs( 'cust_credit', { 'crednum' => $self->crednum } ); + qsearchs( 'cust_pay', { 'paynum' => $self->paynum } ); } -=item cust_bill +=item cust_refund -Returns the invoice (see L) +Returns the refund (see L) =cut -sub cust_bill { +sub cust_refund { my $self = shift; - qsearchs( 'cust_bill', { 'invnum' => $self->invnum } ); + qsearchs( 'cust_refund', { 'refundnum' => $self->refundnum } ); } =back