summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-02-02 15:16:22 -0800
committerIvan Kohler <ivan@freeside.biz>2016-02-02 15:16:22 -0800
commit74f252e841ae742b7defe1042e8e9d3d7c513867 (patch)
tree528d36dfa2949da4d5c300eaa67ad37bdf25f058
parent556e722992efcab0c7c52cd55b7b3a133bef250e (diff)
add service replacement script, RT#40031
-rw-r--r--bin/svc.replace1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/svc.replace b/bin/svc.replace
index 1d2513a33..ad9cc43a2 100644
--- a/bin/svc.replace
+++ b/bin/svc.replace
@@ -12,6 +12,7 @@ my $svcpart = shift or die &usage;
foreach my $cust_svc ( qsearch('cust_svc', { 'svcpart'=>$svcpart } ) ) {
my $svc_x = $cust_svc->svc_x;
+ $svc_x->setfixed;
my $error = $svc_x->replace;
warn "$error\n" if $error
}