[freeside-commits] freeside/httemplate/misc maestro-customer_status.cgi, NONE, 1.1 maestro-customer_status.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sat Jun 26 13:54:42 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv10027
Added Files:
maestro-customer_status.cgi maestro-customer_status.html
Log Message:
adding more REST-like API for maestro here too
--- NEW FILE: maestro-customer_status.html ---
<% objToJson( $return ) %>
<%init>
my $return;
my($query) = $cgi->keywords;
if ( $query =~ /^(\d+)$/ ) {
use FS::Maestro;
$return = FS::Maestro::customer_status($1);
} else {
$return = { 'error' => 'No custnum' };
}
</%init>
--- NEW FILE: maestro-customer_status.cgi ---
<% $uri->query %>
<%init>
my $uri = new URI;
my($query) = $cgi->keywords;
if ( $query =~ /^(\d+)$/ ) {
use FS::Maestro;
$uri->query_form( FS::Maestro::customer_status($1) );
} else {
$uri->query_form( { 'error' => 'No custnum' } );
}
</%init>
More information about the freeside-commits
mailing list