X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_refund.pm;h=e26121b772cd7873a3ed7a1aa57fcc8320aca85d;hb=77e088ce10a52b40743ff9ae7e82336f167db2f8;hp=d6cedf54be8ce32ee9125e44f50ae7a502ea8991;hpb=3c3608637cf9ed1f6368b2f4d17415db903e4b92;p=freeside.git diff --git a/FS/FS/cust_refund.pm b/FS/FS/cust_refund.pm index d6cedf54b..e26121b77 100644 --- a/FS/FS/cust_refund.pm +++ b/FS/FS/cust_refund.pm @@ -83,6 +83,10 @@ Payment Type (See L for valid payby values) Payment Information (See L for data format) +=item paycardtype + +Detected credit card type, if appropriate; autodetected. + =item paymask Masked payinfo (See L for how this works) @@ -158,7 +162,6 @@ sub insert { $self->set('reasonnum', $reason->get('reasonnum')); $self->set('reason', ''); } - $self->set('reasonnum', $reason->reasonnum); } if ( $self->crednum ) { @@ -517,6 +520,9 @@ sub _upgrade_data { # class method my ($class, %opts) = @_; $class->_upgrade_reasonnum(%opts); $class->_upgrade_otaker(%opts); + + local $ignore_empty_reasonnum = 1; + $class->upgrade_set_cardtype; } =back