Viability: Begin testing
The (missing) /viability/inventory page allows the user to scan the inventory barcode and retrieve InventoryViability
data of the selected inventory.
Page layout:
- Inventory Barcode scanner (maybe in the Header?)
- Basic inventory info (see below, plus
quantityOnHand
,..UnitCode
andformTypeCode
)
- Table of
InventoryViability
records
The overall look-and-feel resembles the Inventory group details:
Scanning the barcode
Scanning the inventory barcode fetches all InventoryViability
records in the system using the existing API call.
If there is one InventoryViability
with percentViable === null
, redirect to /viability/record/{id}
immediately.
Action buttons
-
Schedule test: adds a new pending
InventoryAction
ofVIABILITY_TEST
to the system -
Test now: opens a dialog to select the
InventoryViabilityRule
(used in Create order) and creates a newInventoryViability
record and opens the details of this new record at/viability/record/{id}
InventoryViability
Table of Allows the user to open the details of each test.