Ga naar inhoud

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

  1. Button to execute StartInventory action.
  2. 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.
  3. Button to execute Exit action.

Actions

Exit

  1. Always enabled.
  2. When executed, closes the form.

StartInventory

  1. Enabled when the inventory number is >0.
  2. When executed, checks that the inventory exists.
  3. If it does not, or the inventorytype differs from 'N', an error is shown:
    This inventory does not exist: :ID
    
  4. 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.

Reports