[freeside-commits] freeside/FS/FS cust_credit.pm, 1.24.2.5, 1.24.2.6
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Dec 17 14:57:13 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv4877
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.24.2.5
retrieving revision 1.24.2.6
diff -u -d -r1.24.2.5 -r1.24.2.6
--- cust_credit.pm 12 Dec 2007 05:42:48 -0000 1.24.2.5
+++ cust_credit.pm 17 Dec 2007 22:57:10 -0000 1.24.2.6
@@ -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