mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Removed qu_factor_purchase_to_stock (migrated existing factors to normal product specific QU conversions)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
> ⚠️ PHP 8.1 (with SQLite 3.34.0+) is from now on the only supported runtime version.
|
||||
|
||||
> ❗ xxxImportant upgrade informationXXX
|
||||
> ❗ The major version bump is due to breaking API changes, please see below if you use the API.
|
||||
|
||||
### New feature: xxxx
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
### Stock
|
||||
|
||||
- Quantity unit conversions now support transitive conversions, means the QU hierarchy has now unlimited levels (thanks a lot @esclear)
|
||||
- The product option "Factor purchase to stock quantity unit" was removed
|
||||
- => Use normal product specific QU conversions instead, if needed
|
||||
- An existing "Factor purchase to stock quantity unit" was automatically migrated to a product specific QU conversion
|
||||
- Fixed that hiding the "Purchased date" column (table options) on the stock entries page didn't work
|
||||
- Fixed that the consumed amount was wrong, when consuming multiple substituted subproducts at once and when multiple/different conversion factors were involved
|
||||
|
||||
@@ -56,6 +59,9 @@
|
||||
|
||||
### API
|
||||
|
||||
- ⚠️ **Breaking changes**:
|
||||
- The product property `qu_factor_purchase_to_stock` was removed (existing factors were migrated to normal product specific QU conversions, see above)
|
||||
- The endpoint `/stock/products/{productId}` returns a new field/property `qu_conversion_factor_purchase_to_stock` for convenience (contains the conversion factor of the corresponding QU conversion from the product's qu_id_purchase to qu_id_stock)
|
||||
- The following entities are now also available via the endpoint `/objects/{entity}` (only listing, no edit)
|
||||
- `quantity_unit_conversions_resolved` (returns all final/resolved conversion factors per product and any directly or indirectly related quantity units)
|
||||
- The endpoint `/batteries` now also returns the corresponding battery object (as field/property `battery`)
|
||||
|
Reference in New Issue
Block a user