projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
73ad9e9
)
RT#17480: Freeside Cancel Reason [v3 only, removed v4 tables from merge]
author
Jonathan Prykop
<jonathan@freeside.biz>
Tue, 17 Nov 2015 03:13:53 +0000
(21:13 -0600)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Tue, 17 Nov 2015 03:13:53 +0000
(21:13 -0600)
FS/FS/reason.pm
patch
|
blob
|
history
diff --git
a/FS/FS/reason.pm
b/FS/FS/reason.pm
index
4c2587f
..
1739f96
100644
(file)
--- a/
FS/FS/reason.pm
+++ b/
FS/FS/reason.pm
@@
-161,13
+161,9
@@
Accepts an arrayref of reason objects, to be merged into this reason.
Reasons must all have the same reason_type class as this one.
Matching reasonnums will be replaced in the following tables:
Reasons must all have the same reason_type class as this one.
Matching reasonnums will be replaced in the following tables:
- cust_bill_void
- cust_bill_pkg_void
cust_credit
cust_credit_void
cust_credit
cust_credit_void
- cust_pay_void
cust_pkg_reason
cust_pkg_reason
- cust_refund
=cut
=cut
@@
-195,13
+191,9
@@
sub merge {
$error = "Mismatched reason type class"
unless $reason->reasontype->class eq $class;
foreach my $table ( qw(
$error = "Mismatched reason type class"
unless $reason->reasontype->class eq $class;
foreach my $table ( qw(
- cust_bill_void
- cust_bill_pkg_void
cust_credit
cust_credit_void
cust_credit
cust_credit_void
- cust_pay_void
cust_pkg_reason
cust_pkg_reason
- cust_refund
)) {
last if $error;
my @fields = ('reasonnum');
)) {
last if $error;
my @fields = ('reasonnum');