-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Fixed #9148 Checking Out Consumables doesn't decrease starting quantity #12491
Fixed #9148 Checking Out Consumables doesn't decrease starting quantity #12491
Conversation
|
Would this end up with a potentially negative number, or potentially a division by 0 number? |
You mean the migration? |
I think this should be enough? Waiting for feedback in case is not :) |
I agree here; the current workflow with the remaining and total is a bit complicated for my liking. I either have to create a new consumable for every batch of toner I order or start doing the math when buying new cartridges and adding them to the quantity for the remaining value to be correct. Would be nice if this is merged in the future. |
I think we're going to solve this is a slightly different way. |
Yeah, I figured :P |
Description
A long time ago an user ask about some changes on the quantity of consumables that seems reasonable: The consumables doesn't need to be checkedin again, so the total and remaining quantities kinda made sense in the way they're implemented.
I adjusted the quantity to get decreased everytime a consumable is checked out. In the API and the GUI.
Alter a numRemaining function to return the
Consumable->qty
value directly.Added a migration to adjust the previous consumables totals if consumables already used.
In the consumables index view, remove the remaining column, as doesn't really make sense anymore.
Fixes #9148
Type of change
How Has This Been Tested?
Test Configuration: