Load stock... button on Inventory checking tab
----------------------------------------------

This button allows to load stock from a CSV file into the simulator.
Current stock in the simulator is replaced by the file content.
Each line describes a number of packs of an item to be added to the stock.
The same item may occur multiple time in the file, each line is added to the 
stock. 

Some article and pack attributes cannot be set from the file:
- Pack.ID (automatically generated)
- MaxSubItemQuantity 
- ExpiryDate (automatically set to today + 6 month)
- BatchNumber 
- ExternalId
- StockLocation
- Pack dimensions (Depth, Height, Width)
- StockLocation
- Tenant

File format
-----------

The file has to be CSV file, delimiter is ";".

The first line has to be (no changes allowed):
Pos.;Number;Sub-quantity;Barcode;"Article name";"Dosage form";"Packing unit"

Field description:

Pos.: 
Content is ignored when file is read

Number: 
Number of packs of the item that are added to stock
*Known Bug*: The simulator always creates one pack less than stated here if the 
quantity is higher than one.

SubQuantity: 
Two numbers separated by "|". First number defines the number of 
packs that are broken, second gives the number of doses in these opened packs.

Barcode:
Id of the item that is later used to request output. May be different to the 
barcode printed onto the pack!

Article Name:
Name if the item

Dosage form:
Three letter abbreviation of the item dosage form. Eg. TAB or CAP

Packing Unit:
Textual description of packaging unit, eg. 100ml, 28pc, ...

Additional fields may be added to the content lines but not to the first line
(used for comments in the sample below).

Deviations from this format result in an error message when loading the file. 
This includes additional blanks at the end of the first line.


File content sample
-------------------
Pos.;Number;Sub-quantity;Barcode;"Article name";"Dosage form";"Packing unit"
1;5;1|0;1111111;Test item 1;TAB;14;		-- Test Item 1 Four full packs
2;3;1|0;1111111;Test item 1;TAB;14;		-- Test Item 1 Another two full packs
3;5;2|10;2222222;Test item 2;CAP;28;	-- Test Item 2 with four packs, two are opened having 10 doses together
4;1;1|0;3333333;Test item 3;TAB;10;		-- Test Item 3 One full pack
5;1;1|0;3333333;Test item 3;TAB;10;		-- Test Item 3 Another full pack
7;1;1|0;3333333;Test item 3;TAB;10;		-- Test Item 3 Another full pack
8;1;1|5;3333333;Test item 3;TAB;10;		-- Test Item 3 A broken pack with 5 doses
9;1;1|8;3333333;Test item 3;TAB;10;		-- Test Item 3 Another broken pack with 8 doses