[freeside-commits] freeside/FS/FS cust_refund.pm, 1.29.2.1, 1.29.2.2
Ivan,,,
ivan at wavetail.420.am
Tue Mar 4 13:07:18 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv3933
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.29.2.1
retrieving revision 1.29.2.2
diff -u -d -r1.29.2.1 -r1.29.2.2
--- cust_refund.pm 8 Jan 2008 11:28:36 -0000 1.29.2.1
+++ cust_refund.pm 4 Mar 2008 21:07:15 -0000 1.29.2.2
@@ -234,10 +234,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')
@@ -256,8 +259,6 @@
$error = $self->payinfo_check;
return $error if $error;
- $self->otaker(getotaker);
-
$self->SUPER::check;
}
More information about the freeside-commits
mailing list