X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_acct.cgi;h=d147a16836beb20035276fe01a307aaf68d8fe1c;hb=a41efaf444c779d415fa3e443254bd13b6edf925;hp=e42745cf7dcd49a17df5c0b5d6ac04ee69861951;hpb=505345d25040f78a9fdffa5666cd6b9f41a117a5;p=freeside.git
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index e42745cf7..d147a1683 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -47,9 +47,11 @@ if ( $cgi->param('error') ) {
my($cust_pkg)=qsearchs('cust_pkg',{'pkgnum'=>$pkgnum});
if ($cust_pkg) {
my($cust_main)=qsearchs('cust_main',{'custnum'=> $cust_pkg->custnum } );
- $svc_acct->setfield('finger',
- $cust_main->getfield('first') . " " . $cust_main->getfield('last')
- ) ;
+ unless ( $part_svc->part_svc_column('uid')->columnflag eq 'F' ) {
+ $svc_acct->setfield('finger',
+ $cust_main->getfield('first') . " " . $cust_main->getfield('last')
+ );
+ }
}
#set fixed and default fields from part_svc
@@ -105,7 +107,6 @@ print 'Service # '. ( $svcnum ? "$svcnum" : " (NEW)" ). '
'.
END
print &ntable("#cccccc",2), <
| Username |
|
Password |
@@ -188,12 +189,20 @@ my($uid,$gid,$finger,$dir)=(
print <
-GECOS | |
-
END
+if ( !$finger && $part_svc->part_svc_column('uid')->columnflag eq 'F' ) {
+ print '';
+} else {
+ print 'GECOS | '.
+ qq! |
!;
+}
+print qq!!;
+
my $shell = $svc_acct->shell;
-if ( $part_svc->part_svc_column('shell')->columnflag eq "F" ) {
+if ( $part_svc->part_svc_column('shell')->columnflag eq "F"
+ || ( !$shell && $part_svc->part_svc_column('uid')->columnflag eq 'F' )
+ ) {
print qq!!;
} else {
print qq!Shell | |