From: ivan Date: Fri, 8 Jun 2007 23:21:15 +0000 (+0000) Subject: adding quick script to move all customers to postal billing only for skycatcher X-Git-Tag: TRIXBOX_2_6~498 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=72b2e7ea624fe1a436ffdd325df83ac7c1f193f0;p=freeside.git adding quick script to move all customers to postal billing only for skycatcher --- 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"; +} +