[freeside-commits] freeside/httemplate/edit part_svc.cgi, 1.60, 1.61
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Mar 17 17:30:45 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv4724/httemplate/edit
Modified Files:
part_svc.cgi
Log Message:
hide unused usage columns
Index: part_svc.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_svc.cgi,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- part_svc.cgi 16 Mar 2008 05:13:54 -0000 1.60
+++ part_svc.cgi 18 Mar 2009 00:30:43 -0000 1.61
@@ -131,7 +131,14 @@
%
% #yucky kludge
% my @fields = defined( dbdef->table($layer) )
-% ? grep { $_ ne 'svcnum' } fields($layer)
+% ? grep {
+% $_ ne 'svcnum' &&
+% ( !FS::part_svc->svc_table_fields($layer)
+% ->{$_}->{disable_part_svc_column} ||
+% $part_svc->part_svc_column($_)->columnflag
+% )
+% }
+% fields($layer)
% : ();
% push @fields, 'usergroup' if $layer eq 'svc_acct'; #kludge
% $part_svc->svcpart($clone) if $clone; #haha, undone below
More information about the freeside-commits
mailing list