Repository navigation
Replies: 3 comments
|
Great request, and thanks for thinking it through to the pricing corner case — that detail settled the design. Decimal quantities just landed on master and will ship with the next release:
This deliberately keeps the can as the unit: stock On your alternative idea — decoupling the purchase unit from the consumption unit (buy 1 can = 500 ml, consume in ml): that's a bigger data-model change (a package-size field with conversion in the buy loop), and with decimals available it's rarely needed. I've noted it as a possible follow-up if a real use case turns up where fractional package units aren't granular enough. |
|
Decimal quantities (stock, consumption, restock amount, reorder threshold — 2 decimals) have been released since v2.28.0, so partial consumable use is covered; closing this as resolved. If a case is still missing, a new comment reopens the conversation. |
|
A follow-up to the alternative you suggested here — decoupling the purchase unit from the consumption unit is in v2.96.0. Give a part a Unit ( Parts without a package size behave exactly as before, and decimal quantities still work. |
Uh oh!
There was an error while loading. Please reload this page.
Currently, consumables can only be added and consumed as whole numbers. Would it be possible to allow decimal quantities?
For example, a typical job uses approximately half a can of cleaning spray, but there is currently no way to record consumption of 0.5 units.
The alternative would be to track the contents of the can rather than the can itself (for example, 500ml instead of 1 can). However, this creates additional issues with pricing, as the unit price field does not appear to support enough decimal places to accurately represent the cost of 1ml when a 500ml can costs 4.99.
Would it be possible to support decimal quantities for consumable stock items?
Alternatively, another approach could be to decouple the purchase unit from the consumption unit. For example, the stock could be purchased as 1 can (500ml), while usage is recorded in ml.
All reactions