From 72b2e7ea624fe1a436ffdd325df83ac7c1f193f0 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 8 Jun 2007 23:21:15 +0000 Subject: [PATCH] adding quick script to move all customers to postal billing only for skycatcher --- bin/all-postal-no-email | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 bin/all-postal-no-email 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"; +} + -- 2.11.0