projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
91952e0
)
adding quick script to move all customers to postal billing only for skycatcher
author
ivan
<ivan>
Fri, 8 Jun 2007 23:21:15 +0000
(23:21 +0000)
committer
ivan
<ivan>
Fri, 8 Jun 2007 23:21:15 +0000
(23:21 +0000)
bin/all-postal-no-email
[new file with mode: 0755]
patch
|
blob
diff --git a/bin/all-postal-no-email
b/bin/all-postal-no-email
new file mode 100755
(executable)
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";
+}
+