summaryrefslogtreecommitdiff
path: root/FS/FS/cust_refund.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-07-14 23:32:19 -0700
committerMark Wells <mark@freeside.biz>2016-07-14 23:32:19 -0700
commitad6c73ef3ac6288a8bf22a4adb15261ac22470b8 (patch)
treed299857e1f8e7803c2a99772b2f302b0aaba00dc /FS/FS/cust_refund.pm
parenta7a655a033bb6913e721d0cb8105244b894331b9 (diff)
store credit card type in cust_payby and transaction records, #71291, schema support
Diffstat (limited to 'FS/FS/cust_refund.pm')
-rw-r--r--FS/FS/cust_refund.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/cust_refund.pm b/FS/FS/cust_refund.pm
index ced9540..ee144c1 100644
--- a/FS/FS/cust_refund.pm
+++ b/FS/FS/cust_refund.pm
@@ -82,6 +82,10 @@ Payment Type (See L<FS::payinfo_Mixin> for valid payby values)
Payment Information (See L<FS::payinfo_Mixin> for data format)
+=item cardtype
+
+Detected credit card type, if appropriate; autodetected.
+
=item paymask
Masked payinfo (See L<FS::payinfo_Mixin> for how this works)
@@ -472,6 +476,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