[freeside-commits] freeside/FS/FS cust_credit.pm,1.31,1.32
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Dec 17 14:59:18 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv4935
Modified Files:
cust_credit.pm
Log Message:
stricter otaker rules
Index: cust_credit.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_credit.pm,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- cust_credit.pm 14 Dec 2007 16:47:48 -0000 1.31
+++ cust_credit.pm 17 Dec 2007 22:59:16 -0000 1.32
@@ -262,11 +262,14 @@
sub check {
my $self = shift;
+ $self->otaker(getotaker) unless ($self->otaker);
+
my $error =
$self->ut_numbern('crednum')
|| $self->ut_number('custnum')
|| $self->ut_numbern('_date')
|| $self->ut_money('amount')
+ || $self->ut_alpha('otaker')
|| $self->ut_textn('reason')
|| $self->ut_foreign_key('reasonnum', 'reason', 'reasonnum')
|| $self->ut_enum('closed', [ '', 'Y' ])
@@ -280,8 +283,6 @@
$self->_date(time) unless $self->_date;
- $self->otaker(getotaker) unless ($self->otaker);
-
$self->SUPER::check;
}
More information about the freeside-commits
mailing list