-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory item quantities per location #28
Comments
inventory current: name, location, quantity, invisible: backstock, outdoor storage, cage 5 how to mix high medium low with a number fundamentally changing the inventory database how to change the inventory page to show the different quantities quantity under the name of the location a. figure out data structure note: could mock up renderings |
|
move details and +- buttons to the left calls create_new_checkout when checking out item calls check_in_checkout when checking in item updated both... |
Change update quantity routinely instead of during checkout (to minimize desync of inventory) |
|
Modify inventory items to be stored with a quantity for each location it appears.
This would involve major modifications to the InventoryItem backend implementation to include a quantity for each location object. Further, each item would need to have a total quantity that is calculated based on the sum of all location quantities, and when checked out should modify a total quantity available metric.
This would also involve significant frontend changes to the inventory page and checkout kiosk (to show the locations and quantities where that item exists) and to the inventory editor (to add various quantities per location).
As a note, all items with quantities in multiple locations have the quantity location stored in all locations after the first, separated by a vertical bar in the location.specific string. As an example, an item might look like
{
name: "Super Glue",
quantity: 5, // Quantity available in the first location listed
...,
locations: [
{
room: "Main",
container: "Cabinet 5",
specific: "Shelf 1" // At this location, there are 5 of this item
},
{
room: "Cage",
container: "Shelf 5d",
// here, the | distinguishes between the specific location ("Stack 7")
/// and the quantity of this item in this location (-2 or medium)
specific: "Stack 7|-2"
}
]
}
The text was updated successfully, but these errors were encountered: