diff options
author | ivan <ivan> | 2007-06-08 23:21:15 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-06-08 23:21:15 +0000 |
commit | 72b2e7ea624fe1a436ffdd325df83ac7c1f193f0 (patch) | |
tree | 1c2db263dfb9d32672e4fbc68a3d8efd605685d7 | |
parent | 91952e0bd788ba498de9a69dd4226061ec840102 (diff) |
adding quick script to move all customers to postal billing only for skycatcher
-rwxr-xr-x | bin/all-postal-no-email | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/all-postal-no-email b/bin/all-postal-no-email new file mode 100755 index 000000000..ef5dff66b --- /dev/null +++ b/bin/all-postal-no-email @@ -0,0 +1,22 @@ +#!/usr/bin/perl -w + +use strict; +use FS::UID qw(adminsuidsetup); +use FS::Record qw(qsearch); +use FS::cust_main; + +my $user = shift or die &usage; +adminsuidsetup $user; + +foreach my $cust_main ( qsearch( 'cust_main', {} ) ) { + + print $cust_main->custnum. "\n"; + + $cust_main->invoicing_list( [ 'POST' ] ); + +} + +sub usage { + die "Usage:\n\n all-postal-no-email user\n"; +} + |