multiple inventory classes for service columns, #21442
[freeside.git] / httemplate / edit / process / elements / svc_Common.html
1 <% include( 'process.html',
2                  'edit_ext' => 'cgi',
3                  'redirect' => popurl(3)."view/$table.cgi?",
4                  %opt,
5            )
6 %>
7 <%init>
8
9 my %opt = @_;
10 my $table = $opt{'table'};
11 $opt{'fields'} ||= [ fields($table) ];
12 push @{ $opt{'fields'} }, qw( pkgnum svcpart );
13 foreach (fields($table)) {
14   if ( $cgi->param($_.'_classnum') ) {
15     push @{ $opt{'fields'} }, $_.'_classnum';
16   }
17 }
18
19 </%init>