'name' => 'InventoryItemImportForm',
'action' => 'process/inventory_item-import.html',
'num_files' => 1,
- #'fields' => [ 'format', 'itembatch', 'classnum', ],
- 'fields' => [ 'format', 'classnum', ],
+ #'fields' => [ 'format', 'itembatch', 'classnum', 'agentnum' ],
+ 'fields' => [ 'format', 'classnum', 'agentnum', ],
'message' => 'Inventory import successful',
#XXX redirect via $itembatch? or just back to class browse?
+ #'url' => $p."search/phone_avail.html?availbatch=$availbatch",
'url' => $p."search/inventory_item.html?classnum=$classnum;avail=1",
)
%>
%# <INPUT TYPE="hidden" NAME="itembatch" VALUE="<% $itembatch %>">
+ <% include('/elements/tr-select-agent.html',
+ 'viewall_right' => 'None',
+ )
+ %>
+
<% include( '/elements/file-upload.html',
'field' => 'file',
'label' => 'Filename',
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
-$cgi->param =~ /^(\d+)$/ or errorpage("illegal classnum");
+$cgi->param('classnum') =~ /^(\d+)$/ or errorpage("illegal classnum");
my $classnum = $1;
my $inventory_class = qsearchs('inventory_class', { 'classnum' => $classnum } );