Update Inventory amounts
grin-global/grin-global-server!150 adds the Inventory.barcode
field. Please switch the inventory loading logic in
to load by barcode. It would be best if a new method InventoryService.getByBarcode(barcode: string)
is added and it can do the following:
- Fetch one inventory by filtering for
{ "barcode": [ "inputvalue" ] }
. - If that fails, get inventory by id
- If that fails return null.