summaryrefslogtreecommitdiff
path: root/bin/all-postal-no-email
blob: ef5dff66b16c0ab7511af96622e390bef4d9f236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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";
}