[freeside-commits] freeside/httemplate/view cust_svc.cgi,NONE,1.1
Ivan,,,
ivan at wavetail.420.am
Thu Feb 11 17:35:35 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv6252/httemplate/view
Added Files:
cust_svc.cgi
Log Message:
add ticket creation to self-service API, RT#7007
--- NEW FILE: cust_svc.cgi ---
<% $cgi->redirect(popurl(1)."$svcdb.cgi?". $svcnum ) %>
<%init>
#needed here? we're just redirecting. i guess it could reveal the svcdb of a
#svcnum... oooooo scary. not.
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('View customer services');
#some false laziness w/svc_*.cgi
my($query) = $cgi->keywords;
$query =~ /^(\d+)$/;
my $svcnum = $1;
my $cust_svc = qsearchs( 'cust_svc', { 'svcnum' => $svcnum } );
die "Unknown svcnum" unless $cust_svc;
my $part_svc = qsearchs('part_svc',{'svcpart'=> $cust_svc->svcpart } );
die "Unknown svcpart" unless $part_svc;
my $svcdb = $part_svc->svcdb;
</%init>
More information about the freeside-commits
mailing list