diff options
author | ivan <ivan> | 2001-12-15 22:59:35 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-12-15 22:59:35 +0000 |
commit | b63544b9961e09bfc95908f867993f2c44139b42 (patch) | |
tree | 70ed7a3a3dbd8c6b2f4a02a7f85ffd3f3ad05a05 /httemplate/view/svc_acct.cgi | |
parent | 968bee2fe4a8f00cc52525881032cf1575c640f4 (diff) |
style
Diffstat (limited to 'httemplate/view/svc_acct.cgi')
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 23205ece9..7cebdf8da 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -1,5 +1,5 @@ <% -# <!-- $Id: svc_acct.cgi,v 1.8 2001-10-30 14:54:07 ivan Exp $ --> +# <!-- $Id: svc_acct.cgi,v 1.9 2001-12-15 22:59:35 ivan Exp $ --> use strict; use vars qw( $conf $cgi $domain $query $svcnum $svc_acct $cust_svc $pkgnum @@ -29,15 +29,17 @@ $svcnum = $1; $svc_acct = qsearchs('svc_acct',{'svcnum'=>$svcnum}); die "Unknown svcnum" unless $svc_acct; -$cust_svc = qsearchs('cust_svc',{'svcnum'=>$svcnum}); +#false laziness w/all svc_*.cgi +$cust_svc = qsearchs( 'cust_svc' , { 'svcnum' => $svcnum } ); $pkgnum = $cust_svc->getfield('pkgnum'); if ($pkgnum) { - $cust_pkg=qsearchs('cust_pkg',{'pkgnum'=>$pkgnum}); - $custnum=$cust_pkg->getfield('custnum'); + $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } ); + $custnum = $cust_pkg->custnum; } else { $cust_pkg = ''; $custnum = ''; } +#eofalse $part_svc = qsearchs('part_svc',{'svcpart'=> $cust_svc->svcpart } ); die "Unknown svcpart" unless $part_svc; |