projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename cardtype to paycardtype
[freeside.git]
/
FS
/
FS
/
cust_refund.pm
diff --git
a/FS/FS/cust_refund.pm
b/FS/FS/cust_refund.pm
index
d6cedf5
..
e26121b
100644
(file)
--- a/
FS/FS/cust_refund.pm
+++ b/
FS/FS/cust_refund.pm
@@
-83,6
+83,10
@@
Payment Type (See L<FS::payinfo_Mixin> for valid payby values)
Payment Information (See L<FS::payinfo_Mixin> for data format)
Payment Information (See L<FS::payinfo_Mixin> for data format)
+=item paycardtype
+
+Detected credit card type, if appropriate; autodetected.
+
=item paymask
Masked payinfo (See L<FS::payinfo_Mixin> for how this works)
=item paymask
Masked payinfo (See L<FS::payinfo_Mixin> for how this works)
@@
-158,7
+162,6
@@
sub insert {
$self->set('reasonnum', $reason->get('reasonnum'));
$self->set('reason', '');
}
$self->set('reasonnum', $reason->get('reasonnum'));
$self->set('reason', '');
}
- $self->set('reasonnum', $reason->reasonnum);
}
if ( $self->crednum ) {
}
if ( $self->crednum ) {
@@
-517,6
+520,9
@@
sub _upgrade_data { # class method
my ($class, %opts) = @_;
$class->_upgrade_reasonnum(%opts);
$class->_upgrade_otaker(%opts);
my ($class, %opts) = @_;
$class->_upgrade_reasonnum(%opts);
$class->_upgrade_otaker(%opts);
+
+ local $ignore_empty_reasonnum = 1;
+ $class->upgrade_set_cardtype;
}
=back
}
=back