diff options
author | ivan <ivan> | 2007-06-08 23:21:19 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-06-08 23:21:19 +0000 |
commit | d376e9f252ccfaef13ea5a811f036b999ed44577 (patch) | |
tree | 625e93e7111df29a1ef9411d00164576f4c79172 | |
parent | 328063222f1b7c55d509704ccbe481bd98538bde (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"; +} + |