RT#39586 Manual check refunds cannot be unapplied [v3 merge]
authorJonathan Prykop <jonathan@freeside.biz>
Tue, 23 Feb 2016 15:30:59 +0000 (09:30 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Tue, 23 Feb 2016 15:30:59 +0000 (09:30 -0600)
FS/FS/cust_main/Billing_Realtime.pm
FS/FS/cust_refund.pm

index 58ae97c..e9a3db2 100644 (file)
@@ -1382,8 +1382,6 @@ sub realtime_refund_bop {
     warn "  $_ => $options{$_}\n" foreach keys %options;
   }
 
-  return "No reason specified" unless $options{'reasonnum'} =~ /^\d+$/;
-
   my %content = ();
 
   ###
index d6cedf5..1791510 100644 (file)
@@ -158,7 +158,6 @@ sub insert {
       $self->set('reasonnum', $reason->get('reasonnum'));
       $self->set('reason', '');
     }
-    $self->set('reasonnum', $reason->reasonnum);
   }
 
   if ( $self->crednum ) {