diff options
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/cust_credit.pm | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm index 4336ea041..9efb0c2c3 100644 --- a/FS/FS/cust_credit.pm +++ b/FS/FS/cust_credit.pm @@ -262,11 +262,14 @@ methods.  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 @@ sub check {    $self->_date(time) unless $self->_date; -  $self->otaker(getotaker) unless ($self->otaker); -    $self->SUPER::check;  } | 
