From 48880c96f2b7f6c738d7a5afa4a8d64e72ca317b Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 6 Sep 2006 01:20:29 +0000 Subject: [PATCH] not done yet --- bin/breakdown-bill-applications | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bin/breakdown-bill-applications diff --git a/bin/breakdown-bill-applications b/bin/breakdown-bill-applications new file mode 100644 index 000000000..44c3e36b0 --- /dev/null +++ b/bin/breakdown-bill-applications @@ -0,0 +1,25 @@ +#!/usr/bin/perl -w + +use strict; +use FS::UID qw(adminsuidsetup dbh); +use FS::Record qw( qsearch ); +use FS::cust_bill_pay; +use FS::cust_credit_bill; + +$FS::CurrentUser::upgrade_hack = 1; +adminsuidsetup(shift) or die "Usage: breakdown-bill-applications username\n"; + +#quick and dirty conversion script if you have enough memory to throw at it + +my @tables = qw( cust_bill_pay cust_credit_bill ); + +my @apps = (); +foreach my $table { + push @apps, qsearch($table, + + +) { + +} + +foreach my $cust_bill_ -- 2.11.0