Inventorystart
Form Forms.InventoryStart
- Unit name: Forms.InventoryStart
- Form name: InventoryStartForm
- Old form name: form36 (unit36).
Synopsis
Form shown when making inventory: select inventory method.
Functionalities
- Button to execute StartInventory action.
- Edit to enter inventory number. On create, this is filled with the last inventory number. Focused, and selectall, so that when user starts typing, new number is entered.
- Button to execute Exit action.
Actions
Exit
- Always enabled.
- When executed, closes the form.
StartInventory
- Enabled when the inventory number is >0.
- When executed, checks that the inventory exists.
- If it does not, or the inventorytype differs from 'N', an error is shown:
This inventory does not exist: :ID
- If it does, open form Inventory. Pass it the inventory ID.
Tables/Views
- INVENTORY to check inventory existence.
- LastInventory
Select max(ivID) from INVENTORY
Needed Service Calls
None.