projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#40641: unprovisioning preserved cancelled services
[freeside.git]
/
httemplate
/
misc
/
maestro-customer_status-test.html
diff --git
a/httemplate/misc/maestro-customer_status-test.html
b/httemplate/misc/maestro-customer_status-test.html
index
16d4b57
..
0064929
100644
(file)
--- a/
httemplate/misc/maestro-customer_status-test.html
+++ b/
httemplate/misc/maestro-customer_status-test.html
@@
-1,16
+1,18
@@
<% include('/elements/header.html', {
<% 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">
% foreach my $key (keys %$return) {
<BR>
<table style="border:1px solid #000000">
% foreach my $key (keys %$return) {
- <TR>
- <TD ALIGN="right"><% $key %>:</TD>
- <TD><B><% $return->{$key} %></B></TD>
- </TR>
+% 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>
% }
</table>
@@
-19,11
+21,11
@@
my $return;
my $return;
-my($
query
) = $cgi->keywords;
-if ( $
query
=~ /^(\d+)$/ ) {
+my($
custnum, $svcnum
) = $cgi->keywords;
+if ( $
custnum
=~ /^(\d+)$/ ) {
use FS::Maestro;
use FS::Maestro;
- $return = FS::Maestro::customer_status($1);
+ $return = FS::Maestro::customer_status($1
, $svcnum
);
} else {
$return = { 'error' => 'No custnum' };
} else {
$return = { 'error' => 'No custnum' };