summaryrefslogtreecommitdiff
path: root/httemplate/misc/maestro-customer_status-test.html
blob: 0064929196ed48f88118f95eb912e980debce0b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<% include('/elements/header.html', {
             'title' => "Customer $custnum status",
          }) %>

<% include('/elements/small_custview.html', $custnum, '', 1) %>
<BR>

<table style="border:1px solid #000000">
% foreach my $key (keys %$return) {
%   my $value = $return->{$key};
%   $value = join(', ', @$value) if ref($value) eq 'ARRAY';
    <TR>
      <TD ALIGN="right"><% $key %>:</TD>
      <TD><B><% $value %></B></TD>
    </TR>
% }
</table>

<% 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>