summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-06-08 23:21:15 +0000
committerivan <ivan>2007-06-08 23:21:15 +0000
commit72b2e7ea624fe1a436ffdd325df83ac7c1f193f0 (patch)
tree1c2db263dfb9d32672e4fbc68a3d8efd605685d7
parent91952e0bd788ba498de9a69dd4226061ec840102 (diff)
adding quick script to move all customers to postal billing only for skycatcher
-rwxr-xr-xbin/all-postal-no-email22
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 0000000..ef5dff6
--- /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";
+}
+