Skip to content

Rapid inventory registration

This ticket describes a new tool for rapid registration of inventories. It allows the user to enter the minimum necessary information to register a new inventory and print is barcode label.

The component is wrapped in a useDialog() and used in Inventory > Storage navigator from where it receives the selected site and storage location 1-4.

The draft UI is as follows (but is missing some mandatory fields, see below for details)

image

UI

  1. The user is prompted to enter (or scan) the accession number
    • If the accession is not found in the system, the user enters the accession number prefix, sequence number and suffix; selects the taxon, accession status and collection.
    • Accession site (shown only if the component did not receive a site as parameter)
    • Button "Add accession" registers the new accession.
    • These fields are disabled and read-only if the accession is already in the system or after a new accession is created.
  2. The user then selects the inventory maintenance policy
    • The tool remembers the selected policy so that it does not need to be re-selected for the next inventory
  3. The user then has the possibility to enter:
    • Inventory prefix (defaults to accession.accessionNumber)
    • Sequence number (defaults to -1)
    • Suffix (defaults to null)
    • Inventory form type (defaults to selected policy form type)
    • Optional: Propagation date and date format (cleared after saving)
    • Inventory site (shown only if the component did not receive a site as parameter)
    • Optional: Inventory location (shown and populated from component parameters)
    • Other required inventory fields are not displayed, but are using default values:
      • Availability status: NOT-SET (a community code value)
      • Quantity on hand: null (for unknown)
  4. The last section is to select the label template and number of copies + Add inventory button
    • The label is printed immediately after saving the inventory
    • After printing the label the form is reset and the user can start registering the next inventory by entering its accession number.