summaryrefslogtreecommitdiff
path: root/FS/FS/cust_refund.pm
diff options
context:
space:
mode:
authorivan <ivan>2008-03-04 21:07:14 +0000
committerivan <ivan>2008-03-04 21:07:14 +0000
commit523a6ea6ecb07ed1b953c05ce36ef7b33293cf18 (patch)
tree2eb584c28eb2de32916245e83d941f80346b2d1c /FS/FS/cust_refund.pm
parent41ed76e0e3625c9f175743d253ad06fc67302d0f (diff)
fix otaker population for cust_refund like cust_credit and cust_pay
Diffstat (limited to 'FS/FS/cust_refund.pm')
-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 53c6bac..4981795 100644
--- a/FS/FS/cust_refund.pm
+++ b/FS/FS/cust_refund.pm
@@ -235,10 +235,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')
@@ -257,8 +260,6 @@ sub check {
$error = $self->payinfo_check;
return $error if $error;
- $self->otaker(getotaker);
-
$self->SUPER::check;
}