4 use FS::UID qw(adminsuidsetup);
5 use FS::Record qw(qsearch);
8 my $user = shift or die "usage: merge-customers username custnum\n";
11 my $custnum = shift or die "usage: merge-customers username custnum\n";
13 foreach my $cust_main (
14 qsearch('cust_main', { 'referral_custnum' => $custnum })
16 my $error = $cust_main->merge($custnum);