[freeside-commits] branch master updated. 3a4880fe643514dc772018952b92005b8c57bbf8

Ivan ivan at 420.am
Sun Feb 19 18:40:27 PST 2012


The branch, master has been updated
       via  3a4880fe643514dc772018952b92005b8c57bbf8 (commit)
      from  4060e898cf70b18990ef50b80f2fcc0fae97662d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3a4880fe643514dc772018952b92005b8c57bbf8
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Feb 19 18:40:25 2012 -0800

    adding some old random tools from the CVS tree

diff --git a/bin/profile-bill b/bin/profile-bill
new file mode 100755
index 0000000..3a1bcb5
--- /dev/null
+++ b/bin/profile-bill
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+
+use strict;
+use DBIx::Profile;
+use FS::UID qw( adminsuidsetup dbh );
+use FS::Record qw(qsearchs);
+
+my $user = shift;
+adminsuidsetup( $user );
+
+my $custnum = shift;
+
+my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum })
+  or die "unknown custnum $custnum";
+
+#foreach my $cust_bill ( $cust_main->open_cust_bill ) {
+#  print $cust_bill->invnum. "\n";
+#}
+
+$FS::cust_main::Billing::DEBUG = 1;
+
+$cust_main->bill_and_collect();
+
+print dbh->sprintProfile, "\n";
+
diff --git a/bin/svc-radius-attributes b/bin/svc-radius-attributes
new file mode 100755
index 0000000..6ff3067
--- /dev/null
+++ b/bin/svc-radius-attributes
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+use FS::UID qw(adminsuidsetup);
+use FS::Record qw(qsearchs);
+use FS::svc_acct;
+
+my $user = shift or die;
+adminsuidsetup $user;
+
+my $svcnum = shift or die;
+
+my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $svcnum } );
+
+my %reply = $svc_acct->radius_reply;
+
+use Data::Dumper;
+print Dumper(\%reply);
diff --git a/bin/xmlrpcd-phonenum_balance.pl b/bin/xmlrpcd-phonenum_balance.pl
new file mode 100755
index 0000000..8aeeb11
--- /dev/null
+++ b/bin/xmlrpcd-phonenum_balance.pl
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+use strict;
+use Frontier::Client;
+use Data::Dumper;
+
+my $uri = new URI 'http://localhost:8080/';
+
+my $server = new Frontier::Client ( 'url' => $uri );
+
+my $result = $server->call('phonenum_balance', 'phonenum' => '9567566022', );
+
+#die $result->{'error'} if $result->{'error'};
+
+print Dumper($result);
+
+1;

-----------------------------------------------------------------------

Summary of changes:
 bin/profile-bill                |   25 +++++++++++++++++++++++++
 bin/svc-radius-attributes       |   17 +++++++++++++++++
 bin/xmlrpcd-phonenum_balance.pl |   17 +++++++++++++++++
 3 files changed, 59 insertions(+), 0 deletions(-)
 create mode 100755 bin/profile-bill
 create mode 100755 bin/svc-radius-attributes
 create mode 100755 bin/xmlrpcd-phonenum_balance.pl




More information about the freeside-commits mailing list