extend maestro status API for the multi-service scenario, RT#9334
[freeside.git] / httemplate / misc / maestro-customer_status-test.html
index 86e5b1f..0064929 100644 (file)
@@ -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">
 
 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' };