[freeside-commits] freeside/FS/FS cust_refund.pm,1.30,1.31
Ivan,,,
ivan at wavetail.420.am
Tue Mar 4 13:07:17 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv3926
Modified Files:
cust_refund.pm
Log Message:
fix otaker population for cust_refund like cust_credit and cust_pay
Index: cust_refund.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_refund.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- cust_refund.pm 1 Aug 2007 22:24:36 -0000 1.30
+++ cust_refund.pm 4 Mar 2008 21:07:14 -0000 1.31
@@ -235,10 +235,13 @@
sub check {
my $self = shift;
+ $self->otaker(getotaker) unless ($self->otaker);
+
my $error =
$self->ut_numbern('refundnum')
|| $self->ut_numbern('custnum')
|| $self->ut_money('refund')
+ || $self->ut_alpha('otaker')
|| $self->ut_text('reason')
|| $self->ut_numbern('_date')
|| $self->ut_textn('paybatch')
@@ -257,8 +260,6 @@
$error = $self->payinfo_check;
return $error if $error;
- $self->otaker(getotaker);
-
$self->SUPER::check;
}
More information about the freeside-commits
mailing list