diff options
author | ivan <ivan> | 2010-07-27 06:48:39 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-07-27 06:48:39 +0000 |
commit | 2b96da0344fe5f46caf80257890312de444d935b (patch) | |
tree | f4c5bcec6a03d4b1d282bb10cf105f2e43390766 /httemplate | |
parent | 53d8528049b4374004ee807aaab39d91f7fb107a (diff) |
extend maestro status API for the multi-service scenario, RT#9334
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/misc/maestro-customer_status-test.html | 10 | ||||
-rw-r--r-- | httemplate/misc/maestro-customer_status.cgi | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/httemplate/misc/maestro-customer_status-test.html b/httemplate/misc/maestro-customer_status-test.html index 86e5b1f01..006492919 100644 --- a/httemplate/misc/maestro-customer_status-test.html +++ b/httemplate/misc/maestro-customer_status-test.html @@ -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' }; diff --git a/httemplate/misc/maestro-customer_status.cgi b/httemplate/misc/maestro-customer_status.cgi index abd0fb48f..8e82a02de 100644 --- a/httemplate/misc/maestro-customer_status.cgi +++ b/httemplate/misc/maestro-customer_status.cgi @@ -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> |