summaryrefslogtreecommitdiff
path: root/httemplate/misc/maestro-customer_status.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/maestro-customer_status.html')
-rw-r--r--httemplate/misc/maestro-customer_status.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/misc/maestro-customer_status.html b/httemplate/misc/maestro-customer_status.html
new file mode 100644
index 0000000..8acae2b
--- /dev/null
+++ b/httemplate/misc/maestro-customer_status.html
@@ -0,0 +1,16 @@
+<% objToJson( $return ) %>
+<%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>