summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorivan <ivan>2008-03-04 21:07:15 +0000
committerivan <ivan>2008-03-04 21:07:15 +0000
commit233ee7a1d81fc8bd87facd1d80212ab069f3e322 (patch)
tree15713115285d58f4d14442f6988b09233d6f3772 /FS/FS
parent0a49b71a8da637e475b2429a7bf39943c6faebee (diff)
fix otaker population for cust_refund like cust_credit and cust_pay
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/cust_refund.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/cust_refund.pm b/FS/FS/cust_refund.pm
index e142a609b..2510ca351 100644
--- a/FS/FS/cust_refund.pm
+++ b/FS/FS/cust_refund.pm
@@ -234,10 +234,13 @@ returns the error, otherwise returns false. Called by the insert method.
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 @@ sub check {
$error = $self->payinfo_check;
return $error if $error;
- $self->otaker(getotaker);
-
$self->SUPER::check;
}