% include('/elements/header.html', {
'title' => "Customer $custnum status",
}) %>
<% 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 %>: |
<% $value %> |
% }
<% include('/elements/footer.html') %>
<%init>
my $return;
my($custnum, $svcnum) = $cgi->keywords;
if ( $custnum =~ /^(\d+)$/ ) {
use FS::Maestro;
$return = FS::Maestro::customer_status($1, $svcnum);
} else {
$return = { 'error' => 'No custnum' };
}
%init>