diff options
author | ivan <ivan> | 2011-08-05 02:00:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-08-05 02:00:32 +0000 |
commit | abfc0c47dba5237cd19e94fb0ede2928095915a7 (patch) | |
tree | a8c9291558deceab60f69b5624a50f5402ca079c | |
parent | a79954311d1af27cbd8cfd220d4a95449513c2a3 (diff) |
adding quick commandline tool to bill now with debugging, RT#13915
-rw-r--r-- | bin/cust_main-bill_now | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/cust_main-bill_now b/bin/cust_main-bill_now new file mode 100644 index 000000000..779b4a0bb --- /dev/null +++ b/bin/cust_main-bill_now @@ -0,0 +1,22 @@ +#!/usr/bin/perl -w + +use strict; +use FS::UID qw( adminsuidsetup ); +#use FS::Schema qw( dbdef ); +use FS::Record qw(qsearchs); +use FS::cust_main; + +my $user = shift or die &usage; +adminsuidsetup($user); + +my $custnum = shift or die &usage; +my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ) + or die "unknown custnum $custnum\n"; + +$cust_main->bill_and_collect( 'debug' => 2 ); + +sub usage { + die "Usage:\n cust_main-bill_now user custnum\n"; +} + +1; |