X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fmaestro-customer_status-test.html;h=0064929196ed48f88118f95eb912e980debce0b6;hb=1d0c67ac17b4b8d9256d7ed8192611d808d2be0f;hp=16d4b5728754e38bf01c5db054319bea8bc8f250;hpb=d0cfae64ac8c44a379b0f64e4f47a678ecd8fe77;p=freeside.git diff --git a/httemplate/misc/maestro-customer_status-test.html b/httemplate/misc/maestro-customer_status-test.html index 16d4b5728..006492919 100644 --- a/httemplate/misc/maestro-customer_status-test.html +++ b/httemplate/misc/maestro-customer_status-test.html @@ -1,16 +1,18 @@ <% 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) %>
% foreach my $key (keys %$return) { - - - - +% my $value = $return->{$key}; +% $value = join(', ', @$value) if ref($value) eq 'ARRAY'; + + + + % }
<% $key %>:<% $return->{$key} %>
<% $key %>:<% $value %>
@@ -19,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' };