[freeside-commits] freeside/httemplate/misc maestro-customer_status.cgi, 1.1, 1.2 maestro-customer_status.html, 1.1, 1.2 maestro-customer_status-test.html, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Mon Jul 26 23:48:41 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv20059/httemplate/misc
Modified Files:
maestro-customer_status.cgi maestro-customer_status.html
maestro-customer_status-test.html
Log Message:
extend maestro status API for the multi-service scenario, RT#9334
Index: maestro-customer_status.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/maestro-customer_status.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- maestro-customer_status.html 26 Jun 2010 20:54:40 -0000 1.1
+++ maestro-customer_status.html 27 Jul 2010 06:48:39 -0000 1.2
@@ -3,11 +3,11 @@
my $return;
-my($query) = $cgi->keywords;
-if ( $query =~ /^(\d+)$/ ) {
+my($custnum, $svcnum) = $cgi->keywords;
+if ( $custnum =~ /^(\d+)$/ ) {
use FS::Maestro;
- $return = FS::Maestro::customer_status($1);
+ $return = FS::Maestro::customer_status($1, $svcnum);
} else {
$return = { 'error' => 'No custnum' };
Index: maestro-customer_status-test.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/maestro-customer_status-test.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- maestro-customer_status-test.html 27 Jul 2010 01:57:19 -0000 1.3
+++ maestro-customer_status-test.html 27 Jul 2010 06:48:39 -0000 1.4
@@ -1,8 +1,8 @@
<% include('/elements/header.html', {
- 'title' => "Customer $query status",
+ 'title' => "Customer $custnum status",
}) %>
-<% include('/elements/small_custview.html', $query, '', 1) %>
+<% include('/elements/small_custview.html', $custnum, '', 1) %>
<BR>
<table style="border:1px solid #000000">
@@ -21,11 +21,11 @@
my $return;
-my($query) = $cgi->keywords;
-if ( $query =~ /^(\d+)$/ ) {
+my($custnum, $svcnum) = $cgi->keywords;
+if ( $custnum =~ /^(\d+)$/ ) {
use FS::Maestro;
- $return = FS::Maestro::customer_status($1);
+ $return = FS::Maestro::customer_status($1, $svcnum);
} else {
$return = { 'error' => 'No custnum' };
Index: maestro-customer_status.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/maestro-customer_status.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- maestro-customer_status.cgi 26 Jun 2010 20:54:39 -0000 1.1
+++ maestro-customer_status.cgi 27 Jul 2010 06:48:39 -0000 1.2
@@ -3,14 +3,14 @@
my $uri = new URI;
-my($query) = $cgi->keywords;
-if ( $query =~ /^(\d+)$/ ) {
+my($custnum, $svcnum) = $cgi->keywords;
+if ( $custnum =~ /^(\d+)$/ ) {
use FS::Maestro;
- $uri->query_form( FS::Maestro::customer_status($1) );
+ $return = FS::Maestro::customer_status($1, $svcnum);
} else {
- $uri->query_form( { 'error' => 'No custnum' } );
+ $return = { 'error' => 'No custnum' };
}
</%init>
More information about the freeside-commits
mailing list