This is the logic that controls the default warehouse used in the SOP Transaction Entry form
1. Use the default warehouse specified in IV00101.locncode
2. For items that do not allow shortage, use method 1 (old method), for items that allow shortage, use method 2 (new method)
Method 1 (old method)
Method 2 (new method)
1. Get a list of all warehouses for this item from IV00102
2.