Track partial consumption / sub-unit inventory for multi-pack items #12
Labels
No labels
backlog
beta-feedback
bug
duplicate
enhancement
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When a product is scanned as a multi-pack (e.g. a 4-stick pack of butter, a 6-pack of yoghurt), the inventory item has
quantity=1andunit=pack. There is no way to track that 1 of 4 sticks has been used.Desired Behaviour
POST /inventory/items/{id}/consumeshould accept an optionalquantityparam (default: consume all)Acceptance Criteria
scanBarcodeText/scanBarcodeImagepre-fills sub-unit quantity when product data includes itPOST /inventory/items/{id}/consume?quantity=1decrements by that amount; only marksstatus=consumedwhen quantity reaches 0Notes
inventory_items.quantityandinventory_items.unitalready exist in the schema