mirror of
https://github.com/grocy/grocy.git
synced 2025-10-09 23:56:03 +00:00
2.7 KiB
2.7 KiB
- Stock improvements
- Products can now have variations
- Define the parent product for a product on the product edit page (only one level is possible, means a product which is used as a parent product in another product, cannot have a parent product itself)
- Parent and sub products can have stock (both are regular products, no difference from that side)
- On the stock overview page the aggregated amount is displayed next to the amount (sigma sign)
- When a recipe needs a parent product, the need is also fulfilled when enough sub product(s) are in stock
- API change (no breaking change):
/stock/products/{productId}
returns additional fields for the aggregated up amount(s):stock_amount_aggregated
andstock_amount_opened_aggregated
- contains the same for "normal" products,is_aggregated_amount
indicates if aggregation has happened
- It's now possible to print a "Location Content Sheet" with the current stock per location - new button at the top of the stock overview page
- The product description now can have formattings (HTML/WYSIWYG editor like for recipes)
- Products can now have variations
- Chores improvements
- New option "Due date rollover" per chore which means the chore can never be overdue, the due date will shift forward each day when due
- Equipment improvements/fixes
- Fixed that the delete button not always deleted the currently selected equipment item
- General improvements/fixes
- Improved the handling which entry page to use with disabled feature flags (thanks @nielstholenaar)
- Fixed that the Userfield type "Preset list" had always the caption "Product group" instead of the configured one (thanks @oncleben31)
- Userfields of type "checkbox" are rendered as a checkmark in tables when checked (instead of "1" as till now)
- API improvements
- New endpoint
/stock/shoppinglist/add-product
to add a product to a shopping list (thanks @Forceu) - New endpoint
/stock/shoppinglist/remove-product
to remove a product from a shopping list (thanks @Forceu) - When adding a product (through
stock/product/{productId}/add
orstock/product/{productId}/inventory
) with omitted best before date and if the given product has "Default best before days" set, the best before date is calculated based on that (so far always today was used which is still the case when no date is supplied and also the product has no "Default best before days set) (thanks @Forceu) - Field
stock_amount
of endpoint/stock/products/{productId}´ now returns
0instead of
null` when the given product is not in stock (thanks @Forceu) - New endpoint
/objects/{entity}/search/{searchString}
search for objects by name (contains search) - It's now also possible to provide the API key via a query parameter (same name as the header, so
GROCY-API-KEY
)
- New endpoint