summaryrefslogtreecommitdiff
path: root/FS/FS/cust_refund.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-11-18 05:14:22 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-11-18 05:14:22 -0600
commite41cafbe7616c4f046c6161999d4577f1c918311 (patch)
treed6b07cb3b8c5504c0310c27a633d908973129e95 /FS/FS/cust_refund.pm
parent2dff574c971b18e3b3c74653e7e1376b7b57c3bb (diff)
71513: Card tokenization [token_check]
Diffstat (limited to 'FS/FS/cust_refund.pm')
-rw-r--r--FS/FS/cust_refund.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_refund.pm b/FS/FS/cust_refund.pm
index 4d2baa5..12ab0d6 100644
--- a/FS/FS/cust_refund.pm
+++ b/FS/FS/cust_refund.pm
@@ -289,7 +289,8 @@ otherwise returns false.
sub replace {
my $self = shift;
- return "Can't modify closed refund" if $self->closed =~ /^Y/i;
+ return "Can't modify closed refund"
+ if $self->closed =~ /^Y/i && !$FS::payinfo_Mixin::allow_closed_replace;
$self->SUPER::replace(@_);
}