summaryrefslogtreecommitdiff
path: root/httemplate/misc/cust_main-merge.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-05-03 00:31:07 -0700
committerIvan Kohler <ivan@freeside.biz>2013-05-03 00:31:07 -0700
commite0d4d66f670371a0c8a40dc471352634f9fd6017 (patch)
tree6196fe59c73b43ea6d2057345bb55684be8cfada /httemplate/misc/cust_main-merge.html
parent4a3e900ad42a15a6a999e1d1461b816d7fac2230 (diff)
merging is now attaching by default, with the old destructive merge operation as an option when deletecustomers is enabled, RT#22185
Diffstat (limited to 'httemplate/misc/cust_main-merge.html')
-rwxr-xr-xhttemplate/misc/cust_main-merge.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/misc/cust_main-merge.html b/httemplate/misc/cust_main-merge.html
index 4decbef7a..3b4425fc8 100755
--- a/httemplate/misc/cust_main-merge.html
+++ b/httemplate/misc/cust_main-merge.html
@@ -31,7 +31,17 @@ if ( $cgi->param('new_custnum') =~ /^(\d+)$/ ) {
} );
die "No customer # $custnum" unless $cust_main;
- $error = $cust_main->merge($new_custnum);
+ if ( $cgi->param('merge') eq 'Y' ) {
+
+ #old-style merge: everything + delete old customer
+ $error = $cust_main->merge($new_custnum);
+
+ } else {
+
+ #new-style attach: move packages 3.0 style, that's it
+ $error = $cust_main->attach_pkgs($new_custnum);
+
+ }
} else {
$error = 'Select a customer to merge into';