71513: Card tokenization [v3 test tweak]
[freeside.git] / FS / FS / cust_refund.pm
index e26121b..adc19f7 100644 (file)
@@ -285,7 +285,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(@_);
 }
 
@@ -522,7 +523,9 @@ sub _upgrade_data {  # class method
   $class->_upgrade_otaker(%opts);
 
   local $ignore_empty_reasonnum = 1;
-  $class->upgrade_set_cardtype;
+
+  # don't set paycardtype until 4.x
+  #$class->upgrade_set_cardtype;
 }
 
 =back