Changelog & Release History

Feed

⚠️ xxxBREAKING CHANGESxxx

❗ xxxImportant upgrade informationXXX

💡 xxxMinor upgrade informationXXX

New feature: xxxx

  • xxx

Stock

  • Added a new product picker workflow "External barcode lookup (via plugin)"
    • This executes the configured barcode lookup plugin with the given barcode
    • If the lookup was successful, the product edit page of the created product is displayed, where the product setup can be completed (if required)
    • After that, the transaction is continued with that product
  • Fixed that when copying a product, the field "Treat opened as out of stock" wasn't copied along (thanks @TheDodger)

Shopping list

  • xxx

Recipes

  • When self producing a product ("Produces product" recipe option) the name of the recipe is now added to the note field of the created stock entry

Meal plan

  • xxx

Chores

  • xxx

Calendar

  • xxx

Tasks

  • xxx

Batteries

  • xxx

Equipment

  • xxx

Userfields

  • xxx

General

  • xxx

API

  • xxx

Stock

  • When using/scanning a stock entry Grocycode on the transfer page, the "Use specific stock item" dropdown (and "From location") is now also prefilled accordingly
  • Fixed that for the product's last price stock transactions with an empty or 0 price weren't ignored
  • Fixed that when copying a product, the field "Move on open" wasn't copied along

Shopping list

  • The shopping lists dropdown on the shopping list page now also shows the number of items on the corresponding shopping list

Recipes

  • Optimized that when creating a recipe, the desired serving amount is now initially prefilled by the recipe's base serving amount

Batteries

  • It's now possible to track any addtional info on a battery charge cycle by using Userfields (thanks @TheDodger)
    • => Configure the desired Userfields for the entity battery_charge_cycles
    • => The on a battery charge cycle tracking entered information is then visible on the corresponding battery charge cycle journal entry

General

  • Optimized that file uploads are no longer completely buffered in memory before writing them to disk (thanks @bbx0)
  • Optimized top right corner menus icon spacing (thanks @TheDodger for the initial work on this)
  • Fixed again that some dialogs were not properly (too small) displayed (this time mostly affecting Chrome/Edge)
  • Fixed that table states (visible columns, sorting, column order and so on) could be reset to default after not accessing/using the corresponding page for a certain amount of time

💡 PHP 8.3 is from now on (additionally to PHP 8.2) supported.

⚠️ PHP 8.1 is no longer supported.

Stock

  • Fixed that the location dropdown on the consume page contained the same location multiple times if there are currently stock entries at multiple locations of the corresponding product
  • Fixed that the status filter "n products are overdue" on the stock overview page also counted/included stock entries due today or tomorrow
  • Fixed that the stock report "Spendings" did not take products without an assigned product group into account (thanks @Torqu3Wr3nch for the initial work on this)
  • Fixed that the success message after opening a stock entry on the stock entries page displayed always an amount of 1 instead of the actual amount opened
  • Fixed that the "Consume this stock entry as spoiled" context menu action on the stock entries page consumed always an amount of 1 instead of the whole stock entry

Recipes

  • Fixed that copying recipes with special characters in the name was not possible

Meal plan

  • Fixed that the meal plan page was broken after deleting all meal plan items of a week

Calendar

  • The different event types (due products, chores, tasks and so on) can now have different colors
    • => New button "Configure colors" on the calendar page to configure these colors (top right corner)

Tasks

  • Added a new table filter for categories (thanks @geoffwright240 for the initial work on this)

Userfields

  • Fixed that when having a userfield of type "Select list (multiple items can be selected)" and selecting no item, editing of the corresponding form was broken

General

  • Night mode is now also used on the login page if that's the system preferred color scheme (generally if night mode is on or not is based on user settings and before logging in no user context is available)
  • Optimized sidebar icon spacing (thanks @chris-thorn)
  • Fixed that file uploads (product pictures and so on) didn't work for files where the file name contains multiple spaces
  • Fixed that some dialogs were not properly (too small) displayed (mostly affecting Firefox >= 121)

API

  • Optimized that the endpoints GET /objects/{entity} and GET /objects/{entity}/{objectId} now also return Userfields for the entity stock

Stock

  • Performance improvements related to the stock overview page / displaying a product card
  • Performance improvements related to consuming products (thanks @alkuzman)

Userfields

  • New Userfield type "Number (currency)", just like the type "Number (decimal)", but it will render the value according to / with the configured currency

General

  • Performance improvements related to table (layout) loading handling

Stock

  • The stock report "Spendings" now also supports grouping by stores
  • Fixed that the upgrade failed when having (a lot of) redundant ("each to each") default quantity unit conversion definitions (thanks a lot @alkuzman and @esclear)
    • More on that by a practical example: When a conversion between Teaspoons and Milliliters and another one between Milliliters and Liters exists (and so forth; unlimited levels), Grocy can now (since v4.0.0) calculate the derived factor to convert Teaspoons to Liters on its own (before a direct conversion definition between Teaspoons and Liters was required)
    • So you might have a lot of such "each to each absolute conversion definitions" currently, when you were affected by failed upgrades (timeout problems due to that resolving indirect conversion factors took very long)
    • Heads up: This is now fixed, but you should clean up those redundant "each to each" definitions (in the example above the conversion between Teaspoons and Liters), since they are no longer needed
  • Fixed that the "Mark this stock entry as open"-button on the stock entries page opened always one unit instead of the whole stock entry
  • Fixed that edited stock entries were not considered in some cases (affecting the product's average price and the stock reports)

Recipes

  • Fixed that ingredient cost/energy values were wrong when unit conversions but no product substitutions were involved

💡 PHP 8.2 is from now on (additionally to PHP 8.1) supported.

Stock

  • Fixed performance issues affecting all places where quantity unit conversions / prices are involved
  • Fixed that the upgrade failed when having improperly defined product specific quantity unit conversions
  • Fixed that edited stock entries were not considered in some cases (affecting the product's last price, average price, the price history and the stock reports)

Shopping list

  • Changed that unit prices on the shopping list (table column "Last price (Unit)") are now related to the there selected quantity unit (instead of to the product's QU stock as before)

Meal plan

  • Fixed that the meal plan did initially not display the current week when the settings MEAL_PLAN_FIRST_DAY_OF_WEEK and CALENDAR_FIRST_DAY_OF_WEEK were set to different values

API

  • Fixed performance issues on the endpoint /stock/products/{productId}

⚠️ PHP 8.1 (with SQLite 3.34.0+) is from now on the only supported runtime version.

❗ The major version bump is due to breaking API changes, please see below if you use the API.

Recommendation: Benchmark tests showed that e.g. unit conversion handling is up to 5 times faster when using a more recent (3.39.4+) SQLite version.

New feature: Indirect quantity unit conversions with unlimited levels

  • Quantity unit conversions now support indirect conversions with unlimited levels (thanks a lot @esclear)
    • Explained by a practical example: When a conversion between Teaspoons and Milliliters and another one between Milliliters and Liters exists (and so forth; unlimited levels), Grocy can now calculate Teaspoons to Liters (before a direct conversion definition between Teaspoons and Liters was required)
    • Heads up: If you have such "each to each absolute conversion definitions" currently (for the example above the conversion between Teaspoons and Liters), you should clean them up, since they are no longer needed
  • 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

New feature: Stock reports

  • New button "Reports" on the stock overview page
  • The first report (more to come) "Spendings" makes it possible to explore (pie chart and table data) the total value spend by product or product group in any time range
  • (Thanks for the initial work on this @raupie)

Stock

  • New product option "Default quantity unit consume"
    • Will be used/selected as the default quantity unit on the consume page
    • The product's "Quick consume amount" is now displayed related to this quantity unit ("quick consume/open buttons" on the stock overview page)
    • Defaults to the product's "Quantity unit stock" (so no changed behavior when not configured)
  • New product option "Quantity unit for prices"
    • Prices are now shown related to this quantity unit (instead of per "Default quantity unit purchase") on the product card, price history chart, stock overiew and stock entries page
    • Defaults to the product's "Default quantity unit purchase" (so no changed behavior when not configured)
  • Changed that when the ingredient option "Only check if any amount is in stock" is enabled, costs and calories are now based on the original entered amount instead of an "virtual" fixed amount of 1
  • When using the "Add as barcode to existing product" workflow on a purchase transaction, the selected quantity unit and the entered amount and note are now also added to the new barcode
  • New product option "Auto reprint stock entry label"
    • When enabled, auto-changing the due date of a stock entry (by opening/freezing/thawing and having corresponding default due days set) will reprint its label (only server side label printer WebHooks are supported)
    • Defaults to disabled, so no changed behavior when not configured
  • Added a new option "Reprint stock entry label" on the stock entry edit page (will print the correspondind stock entry label on save)
    • This option will be automatically set on changing the entry's due date
  • The product option "Quick consume amount" (the amount used for the "quick consume/open buttons" on the stock overview page) has been split into another option "Quick open amount", to be able to set different amounts for consume and open (defaults to the "Quick consume amount" per product, so no changed behavior when not configured)
  • Changed that for the product's average and last price (and for the price history chart) stock transactions with an empty or 0 price are ignored
  • Added a filter option to only show currently out-of-stock products on the products list (master data) page
  • When clicking a product name on the products list (master data) or on the stock journal page, the product card will now be displayed (like on the stock overview page)
  • When using/scanning a product barcode and the purchase or inventory page, the barcode's note will now also be prefilled (if any)
  • Each row on the stock journal now also has a context-/more menu for quick access to product related actions (the same as on the stock overview page)
  • The amount of "Label per unit" stock entry labels (on purchase and inventory) is now displayed, to help prevent printing a lot of labels where this maybe is not intended
  • Fixed that hiding the "Purchased date" column (table options) on the stock entries page didn't work
  • Fixed that sorting by the "Value" and "Min. stock amount" columns on the stock overview 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
  • Fixed that for a product's average price, only currently in-stock items were considered, not already consumed ones
  • Fixed that when copying a product, some fields (like "Default consume location" or "Disable own stock) weren't copied along
  • Fixed that the total product count on the stock overview page also included products with "Never show on stock overview" enabled

Shopping list

  • Added a new button "Clear done items" (to clear all done items with one click)

Recipes

  • Added a new entry "Add to meal plan" in the context/more menu per recipe to directly add a recipe to the meal plan from the recipes page
  • Changed that when a ingredient has a "Variable amount" set, the text entered there now also replaces the unit when displaying the recipe (not only the amount as before)
  • When displaying a recipe in fullscreen mode, the ingredients and preparation is now shown side by side (or below each other on small screens) instead of in tabs
  • When consuming a recipe which has a "Produces product" set and when the product's "Default stock entry label" is configured accordingly, the corresponding label will now be printed on that action (only server side label printer WebHooks are supported)
  • Fixed that hiding the "Requirements fulfilled" column (table options) on the recipes page didn't work
  • Fixed that ingredient costs and calories were wrong when product substitution and unit conversions were involved at the same time

Meal plan

  • Added a new sub feature flag FEATURE_FLAG_RECIPES_MEALPLAN (in config.php) to only disable the meal plan if not needed (thanks @webysther)
  • The config.php setting MEAL_PLAN_FIRST_DAY_OF_WEEK can now be set to -1 to dynamically start the meal plan week on today
  • Fixed that consuming a recipe from the meal plan didn't add its "Produces product"-product to stock (if any)
  • Fixed that the "Put missing products on shopping list"-button in the header (to put all missing products on the shopping list for a whole week) was missing under certain circumstances (related to locale week numbers and turn of the year)

Chores

  • Changed the handling of the tracking buttons on the chores overview page
    • The green button now tracks an execution of the corresponding chore on the next scheduled time, rather than for now/today
    • New context-/more menu option "Track chore execution now" to track an execution for now/today (so the same what the green button did before)
  • Removed the limitation on the chore tracking page that the tracked time couldn't be in the future
  • Fixed that "assidgned to" was not recalculated when undoing chores

Calendar

  • Added a button to jump to today (between the prev/next buttons, top right corner)

Tasks

  • Fixed that hiding the "Category" column (table options) on the tasks page didn't work

Userfields

  • Product group Userfields are now also rendered on the shopping list
  • Fixed that when having e.g. a Userfield for the stock entity and using the "Never overdue" shortcut checkbox for the due date on purchase, this Userfield would also be set to the corresponding "never overdue date"

General

  • Like already possible for products/chores/batteries, locations, stores, quantity units, product groups and task categories can now be disabled to keep them for existing references without deleting them, but to hide them everywhere for selections and so on (new option "Active")
  • Added a new config.php setting ENERGY_UNIT to customize the label to display energy values (was fixed kcal before and defaults to that, so no changed behavior when not configured)
  • New logo and "Grocy" is now officially spelled with a capital initial letter (before everything was lowercase)
  • Various frontend performance enhancements
  • Fixed that users were unable to delete their own API keys (when not having the All permissions permission)
  • Fixed that button tooltips on some places didn't disappear after clicking the corresponding button
  • New translations: (thanks all the translators)

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)
    • Numbers are now returned as numbers (so technically without quotes around them, were strings for nearly all endpoints before)
  • Endpoint /stock/products/{productId}:
    • Added 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)
    • Added a new field/property qu_conversion_factor_price_to_stock for convenience (contains the conversion factor of the corresponding QU conversion from the product's qu_id_price to qu_id_stock)
    • Added a new field/property default_quantity_unit_consume (contains the quantity unit object of the product's "Default quantity unit consume")
  • 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)
    • recipes_pos_resolved (returns stock fulfilment information for all recipe ingredients)
  • The endpoint /batteries now also returns the corresponding battery object (as field/property battery)
  • API keys can now have a description (to e.g. track where the corresponding key is used)

Stock

  • Improved that when editing a unit conversion, the "Quantity unit from" and "Quantity unit to" of the corresponding inverse conversion is now also updated accordingly if changed (until now only the factor was updated automatically)
  • Changed that the "Move on open" product option can now always be used/set, even when the "Default location" and "Default consume location" are the same
  • Fixed that stock entry notes were lost when consuming/opening/transferring a partial amount of the corresponding stock entry (thanks @akoshpinter)
  • Fixed that the average shelf life of a product (on the product card) was wrong when the corresponding stock entry was edited
  • Fixed that when the stock setting "Decimal places allowed for amounts" was set to 0, unit conversion (if any) failed when adding the corresponding product to stock
  • Fixed that consuming a parent product which is not in stock itself (so essentially using any of the child products) may failed when unit conversions were involved (the current stock amount check was wrong in that case)
  • Fixed that the status button counters on the stock overview page ("X products are overdue" and so on) included products which have the option Never show on stock overview enabled
  • Fixed that adding Userfields to existing stock entries was not possible (only editing existing Userfield values, e.g. added during purchase or inventory, was possible)
  • Fixed that it was not possible to change a products stock QU, when the needed unit conversion (old QU => new QU) was only defined globally (means on QU level) or by the products "Factor purchase to stock quantity unit"
  • Fixed that when changing a products stock QU, the products "Quick consume mount", "Energy (kcal)" and "Tare weight" wasn't updated according to the corresponding unit conversion factor
  • Fixed that when changing a products stock QU, the product barcode amounts were also changed based on the corresponding unit conversion factor

Shopping list

  • Fixed that products could not be added to the shopping list via barcode scanning

Recipes

  • Fixed that headlines in the recipe description (preparation text) were removed on saving
  • Fixed that the default consume rule was not always applied correctly when a recipe consumed a substituted ingredient (so when having a parent product in the recipe which is currently not in stock itself)

Userfields

  • Fixed that edit forms were broken when editing an object with null Userfields (so when the field for that object was not set before / on the initial object creation)

General

  • It's now possible to edit a user without necessarily updating the users password
  • Fixed that column reordering didn't work on the stock overview, stock entries and shopping list page when showing columns which are not shown by default
  • Fixed that when running label printer WebHooks client side (so when LABEL_PRINTER_RUN_SERVER = false), the setting LABEL_PRINTER_HOOK_JSON was ignored (the WebHook data was always sent as form data)
  • Fixed that granular user permissions (like "Shopping list / Add items" or "Equipment") didn't allow to add/edit the corresponding items without also having the "Edit master data" permission
  • New translations: (thanks all the translators)

API

  • Endpoint /stock/volatile
    • The field/property missing_products now also contains the product object
  • Endpoint /recipes/{recipeId}/consume: Fixed (again) that consuming partially fulfilled recipes was possible, although an error was already returned in that case (and potentially some of the in stock ingredients were consumed in fact)

Stock

  • New product option "Move on open" (defaults to disabled)
    • When enabled, on marking the product as opened, the corresponding amount will be moved to the products default consume location
    • (Thanks @RosemaryOrchard)
  • The stock setting "Decimal places allowed for prices" has been split into separate settings for input and displaying prices (the existing setting will be set for both new options on migration, so no changed behavior when not configured)
  • Optimized that when the plural form(s) of a quantity unit is/are not provided, the singular form is used to display plural amounts
  • Fixed that "Automatically add products that are below their defined min. stock amount to the shopping list" (stock setting) was only done when consuming products, not when opening them
  • Fixed that the price history chart (product card) showed the price on a wrong date when having multiple purchases on the same date from different stores

Recipes

  • Fixed that when a substituted product is used to display costs and calories (so when a parent product ingredient is currently not in stock itself), no unit conversions were considered for costs/calories calculation
  • Fixed that the displayed "already on the shopping list"-amount (for missing ingredients) was wrong when the products "Factor purchase to stock quantity unit" wasn't 1

Chores

  • Fixed that rescheduling of "Track date only"-chores for today was not possible

Calendar

  • Fixed that clicking on meal plan product and notes calendar entries redirected to an invalid page

General

  • LDAP authentication: Optimized that it's not required that LDAP accounts need to have a first-/lastname

API

  • Endpoint /stock/products/{productId}: New field/property default_consume_location (contains the products default consume location object)
  • Endpoint /stock/products/{productId}/add: Fixed that the request body parameter transaction_type was ignored / always set to purchase
  • Fixed that the endpoint /stock/products/by-barcode/{barcode}/open didn't handle stock entries provided by a Grocycode (thanks @jtommi)
  • Fixed that less or equal (<=) and greater or equal (>=) filter comparisons didn't work (optional query[] request query parameter on most endpoints)

New feature: Notes and Userfields for stock entries

  • Stock entries can now have notes
    • For example to distinguish between same, yet different products (e.g. having only a generic product "Chocolate" and note in that field what special one it is exactly this time - as an alternative to have sub products)
    • Or for example to track ownership of stock items when sharing the fridge with your flatmates
    • => New field on the purchase and inventory (and stock entry edit) page
    • => New column on the stock entries and stock journal page
    • => Visible also in the "Use a specific stock item" dropdown on the consume and transfer page
  • Additionally it's also possible to add arbitrary own fields by using Userfields
    • => Configure the desired Userfields for the entity stock
    • => Those Userfields are then visible on the same places as mentioned above for the built-in "Note" field

New feature: Recipes "Due score"

  • A number (new column on the recipes page) which represents a score which is higher the more ingredients, of the corresponding recipe, currently in stock are due soon, overdue or already expired
    • Or in other words: A score to see which recipes to cook to not waste already overdue/expired or due soon products
  • The score is in detail based on:
    • 1 point for each due soon ingredient (based on the stock setting "Due soon days")
    • 10 points per overdue ingredient
    • 20 points per expired ingredient
    • (or else 0)
  • The corresponding ingredient is also highlighted in red/yellow/grey (same colors as on the stock overview page)

Stock

  • It's now possible to change a products stock QU, even after it was once added to stock
    • When the product was once added to stock, there needs to exist a corresponding unit conversion for the new QU
  • Product card, stock overiew and stock entries page optimizations regarding displaying prices:
    • Prices are now shown per default purchase quantity unit, instead of per stock QU and when clicking/hovering, a tooltip shows the price per stock QU
    • The price history chart is now based on the value per purchase QU, instead of per stock QU
  • New product option "Default consume location" (not mandatory, defaults to not set / empty)
    • When set, stock entries at that location will be consumed first
    • => This will be automatically taken into account when consuming from the stock overview page and all other places where no specific location can be selected
    • => On the consume page the location is preselected in the following order:
      1. The new default consume location, if the product currently has any stock there, otherwise
      2. The products default location, if the product currently has any stock there, otherwise
      3. The first location where the product currently has any stock
  • Optimized quantity unit conversion handling:
    • The option "Create inverse QU conversion" was removed when creating a QU conversion
    • => Instead the corresponding inverse conversion is now always created/updated/deleted automatically
  • New product option "Disable own stock" (defaults to disabled)
    • When enabled, the corresponding product can't have own stock, means it will not be selectable on purchase (useful for parent products which are just used as a summary/total view of the sub products)
  • The location content sheet can now optionally list also out of stock products (at the products default location, new checkbox "Show only in-stock products" at the top of the page, defaults to enabled)
  • Added a location filter to the stock entries page
  • Added the product Grocycode as a (hidden by default) column to the products list (master data)
  • The price entered on the inventory page is now related to the selected quantity unit (like on the purchase page, was always related to the products stock QU before)
  • Fixed that consuming via the consume page was not possible when FEATURE_FLAG_STOCK_LOCATION_TRACKING was disabled

Shopping list

  • Added a new shopping list setting (top right corner settings menu) to automatically add products, that are below their defined min. stock amount, to the shopping list (defaults to disabled)
  • Fixed that when using "Add products that are below defined min. stock amount", the calculated missing amount was wrong for products which had the new product option Treat opened as out of stock set and when having at least one opened stock entry

Recipes

  • When a parent product is used as an ingredient, which is currently not in stock itself, the substituted product (so the one which was already taken into account when consuming the recipe) is now displayed below the ingredient and the costs (and calories) are taken from that one, to reflect the current real costs even better
  • Added a new recipes setting (top right corner settings menu) "Show a little checkbox next to each ingredient to mark it as done" (defaults to disabled)
    • When enabled, next to each ingredient a little checkbox will be shown
    • When clicked, the ingredient is crossed out
    • This status is not saved, means reset when the page is reloaded
  • Fixed that consuming recipes was possible when not all ingredients were in stock (and this potentially consumed some of the in stock ingredients; not matching the message "nothing removed")
  • Fixed that the price of the "Produces product"-product, which is added to stock on consuming a recipe, was wrong (was the recipe total costs multiplied by the serving amount instead of only the recipe total costs)
  • Fixed that calories of recipe ingredients were displayed with an indefinite number of decimal places
  • Fixed that ingredient amounts were wrong for multi-nested (> 2 levels) recipes, when the included recipe used an serving amount other than 1
  • Fixed that searching/filtering the recipe gallery view did not work correctly
  • Fixed that searching/filtering recipes by products did not work (e.g. via the context-/more menu option "Search for recipes containing this product" on the stock overview page)

Meal plan

  • The day is now editable on the edit dialog of any meal plan entry, which makes it possible to move entries to a different day
  • Fixed that it was not possible to print the meal plan (and other pages) in landscape (thanks @miguelangel-nubla)

Chores

  • The Daily period type has been changed to schedule the chore at the same time (based on the start date) each n days
    • This period type scheduled chores n days after the last execution before, which is also possible by using the Hourly period type and a corresponding period interval; all existing Daily schedules will be converted to that on migration
  • It's now possible to manually reschedule / assign chores
    • New entry "Reschedule next execution" in the context/more menu on the chores overview page
    • If you have rescheduled a chore and want to continue the normal schedule/assignment instead, use the "Clear" button in the same dialog
    • Rescheduled/reassigned chores will be highlighted with an corresponding icon next to the "Next estimated tracking date" / "Assigned to"
  • Optimized that when skipping chores via the chore tracking page, the given time is used as the "skipped time", not the scheduled next estimated tracking time of the corresponding chore (making it essentially possible to skip more then one schedule at once)
  • Fixed that when consuming a parent product on chore execution (chore option "Consume product on chore execution"), no child products were used if the parent product itself is not in stock
  • Fixed that the upgrade to v3.2.0 failed when having any former "Dynamic Regular" chore with a "Period interval" of 0 (which makes absolutely no sense in reality)

Tasks

  • Fixed that tasks without a due date were highlighted in red (like overdue tasks)

Batteries

  • Fixed that the batteries overview page was broken when there was any battery Userfield with enabled "Show as column in tables" option
  • Fixed that Grocycode label printer printing didn't work from the battery edit page (master data) (thanks @andreheuer)
  • Fixed that undoing a battery charge cycle had no effect on "Last charged" and "Next planned charge cycle" of the corresponding battery

Equipment

  • It's now possible to add multiple files (PDFs / manuals) to each equipment
    • Define as many Userfields for the entity equipment and use the type File
    • => Each of those File-Userfields will be shown as a separate tab on the equipment page

Userfields

  • Userfields of type "Date & time" and "Date (without time)" have now the option to default to now / today for new objects (new Userfield option "Default value")

General

  • Optimized form validation: Save / submit buttons are now not disabled when the form is invalid, the invalid / missing fields are instead highlighted when trying to submit / save the form (making it more obvious which fields are invalid / missing exactly)
  • Night mode can now use / follow the system preferred color scheme
    • The view/user setting "Enable night mode" has been removed and replaced by "Night mode" which now defaults to "Use system setting" (which uses the system preferred color scheme, "On" and "Off" are other possible options to always enable/disable night mode)
  • Some night mode style refinements
  • Fixed an server error (on every page) when not having any quantity unit
  • New translations: (thanks all the translators)

API

  • Added a new endpoint GET /stock/locations/{locationId}/entries to get all stock entries of a given location (similar to the already existing endpoint GET /stock/products/{productId}/entries)
  • Endpoint /recipes/{recipeId}/consume: Fixed that consuming partially fulfilled recipes was possible, although an error was already returned in that case (and potentially some of the in stock ingredients were consumed in fact)
  • Endpoint /stock/products/{productId}:
    • New field/property current_price which returns the current price of the corresponding product, based on the stock entry to use next (defined by the default consume rule "Opened first, then first due first, then first in first out") or on the last price if the product is currently not in stock
    • The field/property oldest_price is deprecated and will be removed in a future version (this had no real sense, currently returns the same as current_price)

Stock

  • The config.php option FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT was removed and is now a new product option Treat opened as out of stock, means, if opened stock entries will be counted as missing for calculating if a product is below its minimum stock amount, can now be configured per product
    • The existing option will be migrated to all existing products, so no changed behavior after the update
    • There is also a new stock setting (section "Presets for new products") which can be used to configure the default when adding products (also that will be set based on the old setting on migration)
  • When using/scanning a stock entry Grocycode on the consume page, the amount is now prefilled by the stock entry amount (making it essentially possible to consume the corresponding stock entry in one go)
  • Stock entry labels get now also printed on inventory (only when adding products, same option "Stock entry label" like on the purchase page)
  • Fixed that stock entry labels on purchase were printed, even when "No label" was selected (was only a problem when running label printer WebHooks server side)
  • Fixed that formatted (HTML) text for the (hidden by default) product description column on the stock overview page was not correctly displayed
  • Fixed that numeric and date-time sorting of table columns on the stock entries page did not work correctly (thanks @MasterofJOKers)
  • Fixed that the consume page/dialog wasn't properly initialized when opening it from the stock entries page
  • Fixed that entries for not existing users were missing on the stock journal

Recipes

  • Optimized recipe costs calculation to better reflect the current real costs: Out of stock ingredients now use the last price
    • Background: Before v3.0.0 recipe costs were only based on the last price per product and since v3.0.0 the "real costs" (based on the default consume rule "Opened first, then first due first, then first in first out") are used, means out of stock items have no price - so using the last price for out of stock items should reflect the current real costs better
  • Added a new recipes setting (top right corner settings menu) "Show the recipe list and the recipe side by side" (defaults to enabled, so no changed behaviour when not configured)
    • When disabled, on the recipes page, the recipe list is displayed full-width and the recipe will be shown in a popup instead of on the right side
  • Recipes are now also Grocycode enabled (works like any other Grocycode; download/print it via the recipes edit page or the more/context menu on the recipes page; use/scan it at any place a recipe can be selected)
  • Performance improvements (page loading time) of the recipes page
  • Fixed that when adding missing recipe ingredients, with the option "Only check if any amount is in stock" enabled, to the shopping list, unit conversions (if any) weren't considered
  • Fixed that the recipe stock fulfillment information about shopping list amounts was not correct when the ingredient had a decimal amount

Meal plan

  • Meal plan sections can now (optionally) define a time, which will then be displayed on the meal plan section header and used for the corresponding calendar events
    • Additionally the correspnding calendar event now also mentions the meal plan section name
  • The day/week view can now be toggled
    • New button on top right corner of the meal plan (only visible on bigger screens)
    • On smaller screen the day view is still the default (no change)
  • Fixed that the meal plan showed the total calories per recipe (instead of per serving as stated by the suffix)

Chores

  • Chore schedules can now be skipped
    • New button on the chores overview and chore tracking page
    • Skipped schedules will be highlighted accordingly on the chore journal
  • Added a new chore option "Start date" which is used as a schedule starting point when the chore was never tracked
    • Until now, the schedule starting point was the first tracked execution
    • For all existing chores, the start date will be set to the first tracked execution time (or today, for chores which were never tracked) on migration
  • The Yearly period type has been changed to be schedule the chore on the same day each year
    • This period type scheduled chores 1 year after the last execution before, which is also possible by using the Daily period type and a period interval of 365 days; all existing Yearly schedules will be converted to that on migration
  • Added a new Hourly period type (to schedule chores every x hours)
  • Added a new Adaptive period type (to schedule chores dynamically based on the past average execution frequency)
  • Removed the period type Dynamic regular, since it's the same as Daily
    • All existing Dynamic regular schedules will be converted to that on migration
  • The chorecard now also shows the average execution frequency (how often the chore was executed in the past on average)

Calendar

  • Fixed that when having a task without a due date, the iCal export was broken

Tasks

  • Added a "Save & add another task"-button on the add task dialog to quickly create multiple tasks without having to close/reopen the dialog
  • Fixed that when editing a task without a due date, 1970-01-01 was shown

General

  • Added a separate status filter and table row highlighting (blue) on the chores, tasks and batteries overview pages for items due today
    • Additionally, the "due soon" days of chores/tasks/batteries (top right corner settings menu) can be set to 0 to disable that filter/highlighting
  • Optimized relative time display (also fixed a phrasing problem for some languages, e.g. Hungarian) (thanks @Tallyrald)
  • New input shorthand [+/-]n[d/m/y] for date fields to quickly input a date relative to today (adding (+) or subtracting (-) the number of days/months/years, see the full list of available shorthands here)
  • When using LDAP authentication, the configured LDAP_UID_ATTR is now used to compare if the user already exists instead of the username entered on the login page (that prevents creating multiple users if you enter the username in different notations) (thanks @FloSet)
  • When using reverse proxy authentication (ReverseProxyAuthMiddleware), it's now also possible to pass the username in an environment variable instead of an HTTP header (new config.php option REVERSE_PROXY_AUTH_USE_ENV) (thanks @Forceu)
  • The config.php option DISABLE_BROWSER_BARCODE_CAMERA_SCANNING has been renamed to FEATURE_FLAG_DISABLE_BROWSER_BARCODE_CAMERA_SCANNING
  • Fixed that when having a quantity unit matching any application string, the translation of that string was used to display that unit
  • Fixed that the logout button/menu was missing when using external authentication (e.g. LDAP)
  • New translations: (thanks all the translators)

API

  • The API endpoint /stock/shoppinglist/clear has now a new optional request body parameter done_only (to only remove done items from the given shopping list, defaults to false)
  • The API endpoint /chores/{choreId}/execute has now a new optional request body parameter skipped (to skip the next chore schedule, defaults to false)
  • The API endpoint /chores/{choreId} has new response field/property average_execution_frequency_hours (contains the average past execution frequency in hours or null, when the chore was never executed before)
  • New API endpoint /recipes/{recipeId}/printlabel (to print recipe grocycodes on the configured label printer)
  • Fixed that the barcode lookup for the "Stock by-barcode" API endpoints was case sensitive
  • The "Below min. stock amount" filter on the stock overview page now also includes due-soon, overdue or already expired products
  • The default shopping list (named "Shopping list"; localized) can now be renamed
  • Added the products average price as a (hidden by default) column on the stock overview page
  • Added a new "Presets for new products" stock setting for the "Default due days" option of new products
  • When adding (purchase) a product with "Default due days after freezing" set directly to a freezer location, the due date is now prefilled by that (instead of the normal "Default due days") (thanks @grahamc for the initial work on this)
  • Chores can now be merged (new item in the context-/more-menu on the chores list page)
  • Fixed that "Label per unit" stock entry labels (on purchase) weren't unique per unit
  • Fixed that the "Add as new product" product picker workflow, started from the shopping list item form, always selected the default shopping list after finishing the flow
  • Fixed that when undoing a product opened transaction and when the product has "Default due days after opened" set, the original due date wasn't restored
  • Fixed that "Track date only"-chores were shown as overdue on the due day on the chores overview page
  • Fixed that dropdown filters for tables maybe did not work after reordering columns
  • Fixed that auto night mode over midnight did not always work
  • Fixed that the labels of context-/more-menu items were not readable in Night Mode (thanks @corbolais)
  • Fixed that the "Stay logged in permanently" checkbox on the login page had no effect (thanks @0)

API

  • New endpoint /chores/{choreIdToKeep}/merge/{choreIdToRemove} for merging chores
  • Endpoint /stock/products/{productId}/add API endpoint: The (optional) request body parameter print_stock_label was renamed to stock_label_type
  • Fixed that backslashes were not allowed in API query filters
  • Fixed that the "Add all list items to stock" shopping list workflow did not work for more than ~6 items (thanks @tjhowse)
  • Fixed that plural form handling (e.g. for quantity units) was wrong for negative numbers
  • Fixed that the context menu entries Consume and Transfer on the stock overview page were disabled when the amount in stock was < 1
  • Fixed that on consuming a product from not the products default location, the products default location was recorded in the stock journal
  • Fixed that when undoing a stock consume transaction from not the products default location, the corresponding amount was always added back to to the products defaullt location
  • Fixed that when having multiple quantity unit conversions for a products default QU purchase, on purchase was potentially a wrong conversion factor picked
  • Fixed that when there was any chore with a schedule, but without a "next estimated tracking" date/time, the iCal export was broken
  • The product and chore edit pages now have bottom-sticky save buttons
  • A product picture can now be added when creating a product (was currently only possible when editing a product)

API

  • Fixed that international characters and spaces were not allowed in API query filters
  • Fixed that the upgrade failed when having "> 2 times duplicate" (means the same barcode was added more than 2 times) product barcodes
  • Fixed that the upgrade failed when having unsupported parent/child product nesting levels
    • More information on this: Only 1 level is currently supported; creating > 1 level nestings was never possible via the UI/frontend, but not checked/enforced by the backend before v3.0.0 - so it was potentially possible via the API (or any third party app/tool which utilizes it) to create such a nesting which then made this upgrade to fail
  • Fixed that it was not possible to select a chore/battery on the corresponding tracking pages by mouse/touch
  • Fixed that grouping by columns in tables may caused duplicate groups
  • Fixed that Grocycode camera barcode scanning didn't recognize the scanned code for chore/battery tracking
  • Fixed that when having any "Track date only" chore on the calendar, the iCal export was broken
  • Optimized the meal plan page to be properly printable (thanks @MrKrisKrisu)

API

❗ The release before (v3.1.0) introduced that "numbers are now returned as numbers": This was reverted since it had unintended side effects (so all fields are technically strings now again, just like before - sorry for that)

  • Fixed that missing_products of the /stock/volatile endpoint also contained inactive products
  • Fixed that when having multiple Userfields for an entity, the /objects/{entity} endpoint returned wrong Userfield values
  • Fixed that the /stock/products/by-barcode/{barcode}/consume and /stock/products/by-barcode/{barcode}/transfer endpoints haven't used the stock entry given by a stock entry Grocycode (thanks @lowlee for the initial work on this)
  • Fixed that the "Stock by-barcode" API routes were broken for normal barcodes (only grocycodes were accepted) (thanks @larsverp)
  • Fixed that the "Stock by-barcode" API routes also accepted chore or battery grocycodes (thanks @lowlee)

⚠️ The following PHP extensions are now additionally required: json, intl, zlib

⚠️ PHP 8.0 (with SQLite 3.27.2+) is from now on the only supported runtime version.

New feature: Grocycode / label printer support

(Own) Product/stock entry/chores/batteries labels/barcodes

  • Print own labels/barcodes for products/stock entries/chores/batteries and then scan that code on every place a product/stock entry/chore/battery can be selected
  • Can be printed (or downloaded) via
    • The product/chore/battery edit page
    • The context/more menu per line on the overview pages and for stock entries on the stock entries page
    • Automatically on purchase (new option on the purchase page, defaults can be configured per product) for stock entries
  • The used barcode type can be configured via the config.php option GROCYCODE_TYPE:
    • 1D (default) will produce a Code128 1D barcode (supported by the integrated camera barcode scanner)
    • 2D will produce a DataMatrix 2D barcode (currently not supported by the integrated camera barcode scanner, but can be probably printed smaller)
  • Label printer functionality can be enabled via the new feature flag FEATURE_FLAG_LABEL_PRINTER (defaults to disabled)
  • Label printer communication happens via WebHooks - see the new LABEL_PRINTER* config.php options
  • grocycodes can also be used without a label printer - you can view or download thm as pictures and print them manually
  • More information:
  • (Thanks a lot @mistressofjellyfish for the initial work on this)

New feature: Meal plan sections

  • Split the meal plan into sections like Breakfast/Lunch/Dinner
    • => New button "Configure sections" on the meal plan page to configure the sections (top right corner)
    • => Each meal plan entry can be assigned to a section

New feature: Shopping list thermal printer support

  • The shopping list can now be printed on a thermal printer
    • The printer must be compatible to the ESC/POS protocol and needs to be locally attached or network reachable to/by the machine hosting Grocy (so the server)
    • See the new TPRINTER* config.php options to configure the printer connection and other options
    • => New button on the shopping list print dialog
  • Can be enabled via the new feature flag FEATURE_FLAG_THERMAL_PRINTER (defaults to disabled)
  • (Thanks a lot @Forceu)

Stock improvements/fixes

  • Product barcodes are now enforced to be unique across products
  • On the stock overview page it's now also possible to search/filter by product barcodes (via the general search field)
  • The product picker on the consume and transfer page now only shows products which are currently in stock
  • Added a filter option to only show currently in-stock products on the stock overview and products list (master data) page
  • Added new columns on the stock overview page (hidden by default): Product description, product default location, parent product, product picture
  • Added a new product option "Should not be frozen" (defaults to disabled and only visible when FEATURE_FLAG_STOCK_PRODUCT_FREEZING is enabled)
    • When enabled, on moving the product to a freezer location (so when freezing it), a corresponding warning will be shown
  • Optimized that when opening a product which has "Default due days after opened" set, the resulting date now never extends the original due date
  • Added a new stock setting (top right corner settings menu) "Add decimal separator automatically for price inputs" (defaults to disabled)
    • When enabled, you always have to enter the value including decimal places, the decimal separator will be automatically added based on the amount of allowed decimal places
  • Fixed that editing stock entries was not possible
  • Fixed that consuming with Scan Mode was not possible
  • Fixed that the current stock total value (header of the stock overview page) didn't include decimal amounts (thanks @Ape)
  • Fixed that the transfer page was not fully populated when opening it from the stock entries page
  • Fixed that undoing a consume/open action from the success notification on the stock entries page was not possible
  • Fixed that adding a barcode to a product didn't save the selected quantity unit when the product only has a single one
  • Fixed that the store information on a stock entry was lost when transferring a partial amount to a different location
  • Fixed that the "Spoil rate" on the product card was wrong in some cases
  • Fixed that the stock journal showed always the products default location (instead of the location of the transaction)
  • Fixed that the aggregated amount of parent products was wrong when indirect quantity unit conversions were used

Shopping list improvements/fixes

  • The amount now defaults to 1 for adding items quicker
  • Added a status filter for only done items
  • The total value is now also shown (based on "Last price (Total)" per item, displayed on the page header and only when FEATURE_FLAG_STOCK_PRICE_TRACKING is enabled)
  • Fixed that shopping list prints had a grey background (thanks @Forceu)
  • Fixed the form validation on the shopping list item page (thanks @Forceu)
  • Fixed that when adding products to the shopping list from the stock overview page, the used quantity unit was always the products default purchase QU (and not the selected one)
  • Fixed that the displayed last unit/total price was wrong when the used quantity unit was not the products stock QU
  • Fixed that the "Add as barcode to existing product" product picker workflow did not work

Recipe improvements/fixes

  • Recipe printing improvements (thanks @Ape)
  • Calories are now always displayed per single serving (on the recipe and meal plan page)
  • The note of an ingredient will now also be added to the corresponding shopping list item when using "Put missing products on the shopping list"
  • It's now possible to copy a recipe (button/dropdown menu item per recipe)
  • Fixed that the recipe page was slow when there were a lot meal plan recipe entries
  • Fixed that "Only check if any amount is in stock" (recipe ingredient option) didn't work for stock amounts < 1
  • Fixed that when adding missing items to the shopping list, on the popup deselected items got also added
  • Fixed that the amount of self produced products with tare weight handling enabled was wrong ("Produces product" recipe option)
  • Fixed that the ingredient amount calculation for included/nested recipes was (for most cases) wrong
  • Fixed that the ingredient amount was wrong when using a to the product indirectly related quantity unit
  • Fixed that the calories amount calculation was wrong when quantity unit conversions were involved

Meal plan improvements/fixes

  • Improved the meal plan page loading time (drastically when having a big history of meal plan entries)
  • Meal plan entries can now be visually marked as "done" (new button per entry)
    • This happens automatically on consuming a recipe/product from the meal plan page
  • It's now possible to copy all entries of a day to another day (in the dropdown of the add button in the header of each day column)
  • The "Display recipe" button was removed, instead clicking the recipe title now displays the recipe (and this now also works for products; shows the product card)
  • Fixed that stock fulfillment checking used the desired servings of the recipe (those selected on the recipes page, not them from the meal plan entry)

Chores improvements/fixes

  • It's now possible to track any addtional info on a chore execution by using Userfields
    • => Configure the desired Userfields for the entity chores_log
    • => The on chore execution tracking entered information is then visible on the corresponding chore journal entry
  • Fixed that tracking chores with "Done by" a different user was not possible

Userfield improvements/fixes

  • Userfields can now be configured as mandatory (new Userfield option, defaults to disabled)
  • Fixed that numeric Userfields were initialised with 1.0
  • Fixed that shortcuts (up/down key) and the format did not work correctly when using multiple date/time Userfields per object
  • Fixed that Userfields were not saved when adding a product or a recipe (only on editing)

General & other improvements/fixes

  • LDAP authentication improvements / OpenLDAP support (thanks @tank0226)
    • A read only service account can now be used for binding
    • The username attribute is now configurable
    • Filtering of accounts is now possible
    • => See the new LDAP* config.php options
  • Improved the page loading time of all journal pages (stock/chores/batteries) by adding a new date range filter
  • Some night mode style improvements (thanks @BlizzWave and @KTibow)
  • Help tooltips are now additionally also triggered by clicking on them (instead of only hovering them, which doesn't work on mobile / touch devices)
  • The camera barcode scanner now also supports Code 39 barcodes (used for example in Germany on pharma products (PZN)) (thanks @andreheuer)
  • Fixed that the number picker up/down buttons did not work when the input field was empty or contained an invalid number
  • Fixed that links and embeds (e.g. YouTube videos) did not work in the text editor
  • Fixed that the "Manage users" and "Manage API keys" menu was not shown when using reverse proxy authentication

API improvements/fixes

~~❗ Numbers are now returned as numbers (so technically without quotes around them, were strings for nearly all endpoints before - should practically be no real difference)~~

=> ❗❗❗ This has been reverted after this (v3.1.0) release since it had unintended side effects

  • Added a new endpoint /system/localization-strings to get the localization strings (gettext JSON representation; in the by the user desired language)
  • Added a new endpoint /recipes/{recipeId}/copy to copy a recipe
  • The GET /chores endpoint now also returns the next_execution_assigned_user object per chore (like the endpoint GET /chores​/{choreId} already did for a single chore)
  • The GET /tasks endpoint now also returns the assigned user and category object per task
  • Empty Userfields are now also returned (were previously omitted, endpoint GET /objects/{entity} and GET /objects/{entity}/{objectId})
  • Fixed that due soon products with due_type = "Expiration date" were missing in due_products of the /stock/volatile endpoint
  • Fixed that PUT/DELETE /objects/{entity}/{objectId} produced an internal server error when the given object id was invalid (now returns 400 Bad Request)
  • Fixed that hyphens in filter values did not work
  • Fixed that cyrillic letters were not allowed in filter values

⚠️⚠️ SQLite >= 3.9.0 (was released in late 2015) is required

Here is a workaround if you still run a SQLite version >= 3.8.3 < 3.9.0

PHP 7.2 (with SQLite 3.8.3+) was the formerly minimum runtime requirement, any future release will only support PHP 7.4 (with SQLite 3.27.2+) - supporting those (very) old runtime stuff is too time consuming...

  • Improved the prerequisites checker (added missing required PHP extension ctype) (thanks @Forceu)
  • Added validation checks for most data/config.php settings to prevent using invalid ones (thanks @Forceu)
  • When using reverse proxy authentication (ReverseProxyAuthMiddleware), additionally a valid API key can now also be used for authentication (if you don't want to protect the API endpoints via your reverse proxy, however)
  • Added a new API endpoint /system/time to get the current server time (thanks @Forceu)
  • An amount attached to a barcode is now also prefiled when scanning the product on the Consume/Transfer/Inventory page
  • Fixed that some number inputs were broken when the new decimal places setting were set to 0
  • Fixed that browser camera barcode scanning did not work on the product edit page for adding product barcodes
  • Fixed that indirect unit conversions (those between units, not product overrides) could not be used/selected
  • Fixed that the new product option "Never show on stock overview" was unintentionally set by default for new products
  • Fixed that adding items to the shopping list from the context/more menu on the stock overview page did not work
  • Fixed that consuming was not possible when FEATURE_FLAG_STOCK_LOCATION_TRACKING was disabled
  • Fixed that adding images in text editor fields did not work
  • Fixed some other minor UI glitches

⚠️ The major version bump is due to breaking API changes, please see below if you use the API

⚠️⚠️ SQLite >= 3.9.0 (was released in late 2015) is required

Here is a workaround if you still run a SQLite version >= 3.8.3 < 3.9.0

PHP 7.2 (with SQLite 3.8.3+) was the formerly minimum runtime requirement, any future release will only support PHP 7.4 (with SQLite 3.27.2+) - supporting those (very) old runtime stuff is too time consuming...

❗ If some pages/tables doesn't load at all, please check that your /data/config.php setting CURRENCY is a valid ISO 4217 currency code - that's most probably the issue then.

New feature: Use any product related quantity unit anywhere

  • Finally it's possible to use any product related quantity unit on any page
  • Products still have one quantity unit stock and one (default) quantity unit purchase, but any QU, which has a direct or indirect conversion for that product, can be used to pick an amount
    • Because the stock quantity unit is now the base for everything, it cannot be changed after the product was once added to stock (for now, maybe there will be a possibilty to change it in a future release)

New feature: Prefill purchase data by barcodes

  • Imagine you buy for example eggs in different pack sizes and they have different barcodes
  • Each product barcode can be assigned an amount, quantity unit and store (on the product edit page), which is then automatically prefilled on the purchase page
  • Additionally, the last price per barcode will be tracked and prefilled as a "Total price" on purchase
  • (Thanks @kriddles for the initial work on this)

New feature: User permissions

  • Users can now have permissions, can be configured per user on the "Manage users" page (lock icon)
  • Default permissions for new users can be set via a new config.php setting DEFAULT_PERMISSIONS (defaults to ADMIN, so no changed behavior when not configured)
  • All currently existing users will get all permissions (ADMIN) during the update/migration
  • Creating API keys on the "Manage API keys"-page (top right corner settings menu) now requires the ADMIN permission
    • Other users only see their API keys on that page
  • (Thanks @fipwmaqzufheoxq92ebc for the initial work on this)

New feature: External authentication support

  • New config.php setting AUTH_CLASS to change the used authentication provider
  • Via LDAP
    • New config.php settings LDAP_DOMAIN, LDAP_ADDRESS and LDAP_BASE_DN
    • If you set AUTH_CLASS to Grocy\Middleware\LdapAuthMiddleware, users will be authenticated against your directory (and will also be created (in Grocy), if not already present)
  • Via a reverse proxy
    • New config.php setting REVERSE_PROXY_AUTH_HEADER
    • If you set AUTH_CLASS to Grocy\Middleware\ReverseProxyAuthMiddleware and your reverse proxy sends a username in the HTTP header REMOTE_USER (header name can be changed by the setting REVERSE_PROXY_AUTH_HEADER), the user is automatically authenticated (and will also be created (in Grocy), if not already present)
    • (Thanks @fipwmaqzufheoxq92ebc for the initial work on this)

Stock improvements/fixes

  • Changes about best before dates: It's now possible to distinguish between best before dates and expiration dates:
    • New product option "Due date type" (defaults to "Best before date")
    • Wording changes:
      • All current places where "Best before date" was used now use "Due date"
      • Products with Due date type = Best before date (so all existing products) are "due" or "overdue" (they don't "expire" or are "expired")
      • Products with Due date type = Expiration date (new option) can "expire" or are "expired"
    • Color changes:
      • Products which are due soon or expire soon are (still) highlighted in yellow
      • Products which are overdue are highlighted in grey (there is also a new filter button on the stock overview page for them)
      • Products which are expired (new option) are highlighted in red
  • When creating a quantity unit conversion it's now possible to automatically create the inverse conversion (thanks @kriddles)
  • The product option "Allow partial units in stock" was removed, partial amounts are now possible by default for all products
  • On purchase there is now a warning shown, when the due date of the purchased product is earlier than the next due date in stock (enabled by default, can be disabled by a new stock setting (top right corner settings menu))
  • The amount to be used for the "quick consume/open buttons" on the stock overview page can now be configured per product (new product option "Quick consume amount", defaults to 1)
    • This "Quick consume amount" can optionally also be used as the default on the consume page (new stock setting / top right corner settings menu)
  • Products can now be duplicated (new dropdown menu item on the products list page, all fields will be preset from the copied product, except the name)
  • Products can now be merged (new dropdown menu item on the products list page)
    • Useful if you have two products which are basically the same and want to replace all occurrences of one with the other one
  • When consuming or opening a parent product, which is currently not in stock, any in-stock sub product will now be consumed/opened (like already automatically done when consuming recipes)
  • Opened stock entries get now consumed first by default when no specific stock entry is used/selected
    • So the default consume rule is now "Opened first, then first due first, then first in first out"
  • Optimized/clarified what the total/unit price on the purchase page is (thanks @kriddles)
  • On the purchase page the amount field is now displayed above/before the due date for better TAB handling (thanks @kriddles)
  • Changed that when FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING is disabled, products now get internally a due date of "never overdue" (aka 2999-12-31) instead of today (thanks @kriddles)
  • Products can now be disabled to keep the history/journal, but hide it everywhere, without deleting it (new product option "Active", deleting a product now explicitly also deletes its journal and all other references) (thanks @kriddles for the initial work on this)
  • Products can now be hidden from the stock overview page, even if they are in-stock (new product option "Never show on stock overview", disabled by default, so no changed behavior when not configured)
    • That's maybe useful for parent products you only use as a kind of "container"
  • The due date is now also prefilled on the inventory page based on the products "Default due days" (was only done on the purchase page before)
  • On the stock journal page, it's now visible if a consume-booking was spoiled
  • It's now tracked who made a stock change (currently logged in user, visible on the stock journal page) (thanks @fipwmaqzufheoxq92ebc)
  • Product edit page improvements ("Save & continue" button, deleting and adding a product picuture is now possible in one go) (thanks @Ma27)
  • For products with tare weight handling enabled, it's now optionally possible to consume a fixed/exact amount (just like for "normal" products) in case you don't want to weigh the whole container this time (new checkbox on the consume page) (thanks @fipwmaqzufheoxq92ebc)
  • The stock overview page now also shows the value - new column and also the total value in the header (thanks @kriddles)
  • It's now possible to set a custom purchased date on purchase (new field on the purchase and inventory page, hidden by default - enable it by a new stock setting (top right corner settings menu)) (thanks @kriddles)
  • The decimal places for all amount and price inputs can now be configured (stock settings / top right corner settings menu, default for amounts is 4, for prices 2)
  • When clicking the product name on the shopping list, the product card will now be displayed (like on the stock overview page) (thanks @kriddles)
  • On the product card there is now also a button to jump directly to the stock entries of the corresponding product (thanks @kriddles)
  • The product picker workflows can now also be started by ENTER (additionally to TAB)
  • Added a "retry camera barcode scan" button (button with camera icon, shortcut C) to the product picker workflow dialog
  • Added more filters on the stock journal page
  • Added a grouped/summarized stock journal (new button "Journal summary" at the top of the stock journal page) (thanks @fipwmaqzufheoxq92ebc)
    • Provides an overview of summarized transactions per product, transaction type and user + summarized amount
  • The product option "Default due days after freezing" now also supports -1 (like the option "Default due days") to set the product to "never due" on freezing
  • Fixed that changing the products "Factor purchase to stock quantity unit" not longer messes up historical prices (which results for example in wrong recipe costs) (thanks @kriddles)
  • Fixed that when adding products through a product picker workflow and when the created products contains special characters, the product was not preselected on the previous page (thanks @Forceu)
  • Fixed that when editing a product the default store was not visible / always empty regardless if the product had one set (thanks @kriddles)
  • Fixed that FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT (option to configure if opened products should be considered for minimum stock amounts) was not handled correctly (thanks @teddybeermaniac)
  • Fixed that the "Due soon" sum (yellow filter button) on the stock overview page didn't include products which are due today (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that the shopping cart icon on the stock overview page was also shown if the product was on an already deleted shopping list (if enabled) (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that when editing a stock entry without a price, the price field was prefilled with 1
  • Fixed that the location & product groups filter on the stock overview page used a contains search instead of an exact search
  • Fixed that the amount on the success popup was wrong when consuming a product with "Tare weight handling" enabled
  • Fixed that the aggregated amount of parent products was wrong on the stock overview page when the child products had not the same stock quantity units
  • Fixed that edited stock entries were not considered for the price history chart on the product card
  • Fixed that FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING is set to false, the purchase page validation failed (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that consuming (and editing the amount of) products with enabled tare weight handling did not work on the stock entries page
  • Fixed that the recipes dropdown on the consume page also displayed internal recipes (thanks @kriddles)
  • Fixed that opening tare weight handling enabled products is prevented via the UI and the API (as this makes no sense)
  • Fixed that undoing a consume transaction of an opened item added it back to stock unopened
  • Fixed that a "Total price" on purchase was not handled correctly for tare weight handling enabled products (the total price was wrongly related to the amount including the tare weight)

Shopping list improvements

  • Added a button to add all currently in-stock but overdue and expired products to the shopping list (thanks @m-byte)
  • Improved that when FEATURE_FLAG_STOCK is disabled, all product/stock related inputs and buttons are now hidden on the shopping list page (thanks @fipwmaqzufheoxq92ebc)
  • Shopping list items can now have their own Userfields (entity shopping_list), on the shopping list table those fields are rendered additionally to the product Userfields
  • The print view is now configurable (new dialog before printing - option to hide header, group products by their product group, alternative list layout)
  • Fixed that "Add products that are below defined min. stock amount" always rounded up the missing amount to an integral number, this now allows decimal numbers

Recipe improvements/fixes

  • It's now possible to print recipes (button next to the recipe title) (thanks @zsarnett)
  • Changed that recipe costs are now based on the costs of the products picked by the default consume rule ("Opened first, then first due first, then first in first out") (thanks @kriddles)
    • Recipe costs were based on the last purchase price per product before, so this now better reflects the current real costs
  • Improved the recipe add workflow (a recipe called "New recipe" is now not automatically created when starting to add a recipe) (thanks @zsarnett)
  • On the recipe page, the calories and costs per ingredient are now shown to get a better overview of how much each ingredient contributed
  • Fixed that images on the recipe gallery view were not scaled correctly on larger screens (thanks @zsarnett)
  • Fixed that decimal ingredient amounts maybe resulted in wrong conversions or truncated decimal places if your locale does not use a dot as the decimal separator (thanks @m-byte)
  • Fixed that a recipe cannot be included in itself (because this will cause an infinite loop) (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that when editing a recipe ingredient the checkbox "Disable stock fulfillment checking for this ingredient" was not initaliased with the saved value
  • Fixed that the status filter ("Enough in stock", etc.) on the recipes page did not filter recipes on the gallery tab (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that consuming a recipe ingredient with tare weight handling enabled consumed a wrong amount (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that consuming a parent product recipe ingredient did not consider quantity unit conversion when effectively consuming a child product

Meal plan fixes

  • Fixed that for products the quantity unit purchase was displayed instead of the products quantity unit stock (thanks @BenoitAnastay)

Chores improvements/fixes

  • Chores can now be disabled to keep the history/journal, but hide it everywhere, without deleting it (new chore option "Active", deleting a chore now explicitly also deletes its journal and all other references)
  • Changed that not assigned chores on the chores overview page display now just a dash instead of an ellipsis in the "Assigned to" column to make this more clear (thanks @Germs2004)
  • The assignment type "Random" now don't prevents anymore that the last user will be assigned next
  • Fixed (again) that weekly chores, where the next execution should be in the same week, were scheduled (not) always (but sometimes) for the next week only (thanks @shadow7412)
  • Fixed that the assignment type "In alphabetic order" did not work correctly (the last person in the list was always assigned next once reached) (thanks @fipwmaqzufheoxq92ebc)

Equipment improvements

  • There is now a button to download the instruction manual (next to the "expand to fullscreen"-button)

Calendar improvements/fixes

  • Events are now links to the corresponding page (thanks @zsarnett)
  • Fixed a PHP warning when using the "Share/Integrate calendar (iCal)" button (thanks @tsia)
  • Fixed that "Track date only"-chores were always displayed at 12am (are now displayed as all-day events)
  • Fixed that it was not possible to switch to an other view than the default one on mobile (thanks @PhyberApex)

Tasks improvements

  • Tasks don't need to unique anymore (name field)

Batteries improvements

  • Batteries can now be disabled to keep the history/journal, but hide it everywhere, without deleting it (new battery option "Active", deleting a battery now explicitly also deletes its journal and all other references)

Userfield improvements/fixes

  • New Userfield type "File" to attach any file, will be rendered as a link to the file in tables (if enabled) (thanks @fipwmaqzufheoxq92ebc)
  • New Userfield type "Picture" to attach a picture, the picture will be rendered (small) in tables (if enabled) (thanks @fipwmaqzufheoxq92ebc)
  • New Userfield type "Link (with title)" - a link with a title (two input fields), so that the title is rendered in tables (if enabled) instead of the link itself
  • Userfields can now be reordered on the input form (new field "Sort number" per Userfield, fields will be ordered by that number, if any)
  • Users can now also have Userfields

General & other improvements/fixes

  • UI refresh / style improvements (thanks @zsarnett for the idea and initial work on this)
  • Improved mobile views (thanks @4lloyd for the idea and initial work on this)
    • The buttons on the top of each page and the filter row is now collapsed (use the ellipsis/filter button to show them, this also superseded the shopping list compact view)
    • Tables are horizontally scrollable (instead of collapsing columns which don't fit)
  • All tables are now customizable (new little eye icon on the top left corner on each table)
    • Table columns be shown/hidden
      • There are also new columns on some pages, hidden by default
        • Stock overview: Value, Product group, Calories, Last purchased, Last price, Min. stock amount
        • Products list: Default store
        • Shopping list: Last price (Unit), Last price (Total), Default store, Barcodes (as scannable code-image)
    • Row grouping can be customized to use any available column (thanks @edenhaus)
  • Table states (visible columns, sorting, column order and so on) are now saved server side (in user settings) means that this stays the same when using different browsers
  • Dialogs are now used everywhere where appropriate instead of jumping between pages (for example when adding/editing shopping list items)
  • Added a "Clear filter"-button on all pages (with filters) to quickly reset applied filters
  • Users can now have a picture (will then be shown next to the current user name instead of the generic user icon)
  • Prefilled number inputs now use sensible decimal places (max. the configured decimals while hiding trailing zeros where appropriate, means if you never use partial amounts for a product, you'll never see decimals for it)
  • Improved / more precise validation messages for number inputs
  • Optimized what's hidden when GROCY_FEATURE_FLAG_STOCK is disabled
    • Products, quantity units and product groups are possible to use now
    • Means you can use for example the shopping list, recipes and the meal plan with products while the "stock handling part" is hidden
  • Ordering now happens case-insensitive
  • The data path (previously fixed to the data folder) is now configurable, making it possible to run multiple Grocy instances from the same directory (with different config.php files / different database, etc.) (thanks @fgrsnau)
    • Via an environment variable GROCY_DATAPATH (higher priority)
    • Via an FastCGI parameter GROCY_DATAPATH (lower priority)
  • The language can now be set per user (see the new user settings page / top right corner settings menu) (thanks @fipwmaqzufheoxq92ebc)
    • Additionally, the language is now also auto-guessed based on the browser locale (HTTP-Header Accept-Language)
    • The config.php option CULTURE was renamed to DEFAULT_LOCALE
    • So the used language is based on (in that order)
      • The user setting
      • If not set, then based on browser locale
      • If no matching localizaton was found, DEFAULT_LOCALE from config.php is used
  • Performance improvements (page loading time) of the stock overview page (thanks @fipwmaqzufheoxq92ebc)
  • The prerequisites checker now also checks for the minimum required SQLite version (thanks @Forceu)
  • Replaced (again, added before in v2.7.0, then reverted in v2.7.1 due to some problems) QuaggaJS (seems to be unmaintained) by Quagga2
  • More config.php settings (see the section Component configuration for Quagga2) to tweak Quagga2 (this is the component used for device camera for barcode scanning) (thanks @andrelam)
  • Some localization string fixes (thanks @duckfullstop)
  • Better error pages
  • Fixed that numeric and date-time sorting of table columns did not work correctly
  • Fixed that XSS / HTML injection was possible through some user input fields (low severity / not really a problem as this could not be abused unauthenticated)
  • New translations: (thanks all the translators)

API improvements/fixes

  • ⚠️ Breaking changes:
    • All prices are now related to the products stock quantity unit (instead of the products purchase QU)
    • All (product) amounts are now related to the products stock quantity unit (was related to the products purchase QU for the shopping list before)
    • The product object no longer has a field barcodes with a comma separated barcode list, instead barcodes are now stored in a separate table/entity product_barcodes (use the existing "Generic entity interactions" endpoints to access them)
    • The endpoint /objects/{entity}/search was removed (use the existing /objects/{entity} endpoint with the new filter capabilities mentioned below)
    • The output / field names of ProductDetailsResponse have slightly changed (endpoint /stock/products/{productId})
    • Endpoint /stock/volatile
      • The query parameter expring_days was renamed to due_soon_days
      • The field expiring_products was renamed to due_products
      • The field expired_products now only contains expired products (so them with Due date type = Expiration date)
      • The new field overdue_products contains only overdue products (so them with Due date type = Best before date)
    • The following endpoints now return all bookings of the transaction (so the response is now an array, was before a single stock booking - and a random one if the transaction affected multiple stock entries)
      • PUT /stock/entry/{entryId}
      • POST /stock/products/{productId}/add
      • POST /stock/products/{productId}/consume
      • POST /stock/products/{productId}/transfer
      • POST /stock/products/{productId}/inventory
      • POST /stock/products/{productId}/open
      • POST /stock/products/by-barcode/{barcode}/add
      • POST /stock/products/by-barcode/{barcode}/consume
      • POST /stock/products/by-barcode/{barcode}/transfer
      • POST /stock/products/by-barcode/{barcode}/inventory
      • POST /stock/products/by-barcode/{barcode}/open
      • (The response is the same as if you would fetch the stock transaction via /stock/transactions/{transactionId})
  • For better integration (apps), it's now possible to show a QR-Code for API keys (thanks @fipwmaqzufheoxq92ebc)
    • New QR-Code button on the "Manage API keys"-page (top right corner settings menu), the QR-Codes contains <API-Url>|<API-Key>
    • And on the calendar page when using the button "Share/Integrate calendar (iCal)", there the QR-Codes contains the Share-URL (which is displayed in the textbox above)
  • The output of the following endpoints can now be filtered (by any field), ordered and paginated (thanks for the initial work on this @fipwmaqzufheoxq92ebc)
    • /objects/{entity}
    • /stock/products/{productId}/entries
    • /stock/products/{productId}/locations
    • /recipes/fulfillment
    • /users
    • /tasks
    • /chores
    • /batteries
    • There are 4 new (optional) query parameters to utilize that
      • order The field to order by (use the separator : to specify the sort order - asc or desc, defaults to asc when omitted)
      • limit The maximum number of objects to return
      • offset The number of objects to skip
      • query[] An array of conditions, each of them is a string in the form of <field><condition><value>, where
        • <field> is a field name
        • <condition> is a comparison operator, one of
          • = equal
          • != not equal
          • ~ LIKE
          • !~ not LIKE
          • < less
          • > greater
          • <= less or equal
          • >= greater or equal
          • § regular expression
        • <value> is the value to search for
  • New endpoint /stock/shoppinglist/add-overdue-products to add all currently in-stock but overdue products to a shopping list (thanks @m-byte)
  • New endpoint /stock/shoppinglist/add-expired-products to add all currently in-stock but expired products to a shopping list
  • New endpoints GET/POST/PUT /users/{userId}/permissions for the new user permissions feature mentioned above
  • New endpoint /user to get the currently authenticated user
  • New endpoint DELETE /user/settings/{settingKey} to delete a user setting
  • New endpoint POST /stock/products/{productIdToKeep}/merge/{productIdToRemove} for the new product merging feature mentioned above
  • The following entities are now also available via the endpoint /objects/{entity} (only listing, no edit)
    • stock_log (the stock journal)
    • stock (the "raw" stock entries)
    • stock_current_locations (info how much of each product is currently stored at which location)
  • Performance improvements of the /stock/products/* endpoints (thanks @fipwmaqzufheoxq92ebc)
  • The endpoint /stock/products/{productId}/locations now also has an optional query parameter include_sub_products to optionally also return locations of sub products of the given product
  • The following endpoints now have an optional request body parameter allow_subproduct_substitution to consume/open any child product when the given product is a parent product and currently not in stock
    • /stock/products/{productId}/consume
    • /stock/products/by-barcode/{barcode}/consume
    • /stock/products/{productId}/open
    • /stock/products/by-barcode/{barcode}/open
  • Fixed that the endpoint /objects/{entity}/{objectId} always returned successfully, even when the given object not exists (now returns 404 when the object is not found) (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that the endpoint /stock/volatile didn't include products which are due today (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that the endpoint /objects/{entity} did not include Userfields for Userentities (so the effective endpoint /objects/userobjects)
  • Fixed that the endpoint /stock/consume returned the response code 200 and an empty response body when stock_entry_id was set (consuming a specific stock entry) but invalid (now returns the response code 400) (thanks @fipwmaqzufheoxq92ebc)
  • Fixed that the endpoint /user/settings/{settingKey} didn't return the default setting if it was not configured for the current user (same behavior as the endpoint /user/settings now)
  • Endpoint /calendar/ical: Fixed that "Track date only"-chores were always set to happen at 12am (are treated as all-day events now)
  • Fixed (again) that CORS was broken
  • Fixed that camera barcode scanning was broken
  • Fixed that the new prerequisites check handled things incorrectly in Docker images and in embedded mode

New feature: Price history per store

  • Define stores under master data
  • New product option to set the default store
  • Track on purchase/inventory in which store you bought the product (gets prefilled by the last store you purchased the product, or the default store of the product if you never bought it)
  • => The price history chart on the product card shows a line per store
  • (Thanks @immae and @kriddles)

Stock improvements/fixes

  • When creating a new product, the "QU id stock" is now preset by the "QU id purchase" (because most of the time that's most probably the same) (thanks @Mik-)
  • Clarified the row-button colors and toolips on the stock entries page
  • Added a camera-barcode-scanning-button to the barcode(s) field on the product edit page to be able to also scan barcodes by the device camera there
  • Added a new option (stock settings / top right corner settings menu) to show an icon on the stock overview if the product is already on the shopping list (next to the amount) (defaults to enabled)
  • Fixed that the aggregated parent product amount (displayed on the stock overview page and on the product card) did not respect quantity unit conversions when the parent/sub products had different stock quantity units (the unit conversion needs to be globally defined, or as an override on the sub product)
  • Fixed the conversion factor hint to display also decimal places on the purchase page (only displayed when the product has a different purchase/stock quantity unit)
  • Fixed that the stock entries page was broken when there were product userfields defined with enabled "Show as column in tables"
  • Fixed that best before dates were displayed on the stock overview and stock entries page even with disabled FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING
  • Fixed that when editing a stock entry and setting a decimal amount, the decimal part was ignored (only possible when the product option "Allow partial units in stock" is enabled)
  • Fixed that "Default best before days" and "Default best before days after opened" on the product edit page were always shown regardless of the feature flags FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING and FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING
  • Fixed that the form validation limits for the amount input and products with enabled tare weight handling were wrong
  • Fixed that the price was saved wrong for products with a different purchase/stock quantity unit when using "Total price" on purchase (resulted for example in wrong recipe costs)
  • Fixed that undoing "product-opened"-actions was not possible
  • Fixed/improved consuming from the stock overview page for products with enabled tare weight handling ("consume 1" button is now disabled for such products, "consume all" works again)

Shopping list improvements/fixes

  • It's now possible to collapse/expand the product group sections (by clicking on the grey group header)
  • Fixed that the "shopping list to stock workflow"-dialog was not visible in compact view
  • Fixed that when printing the shopping list, configured userfields were not included

Recipe fixes

  • Fixed that when editing an ingredient with "Only check if a single unit is in stock" set, the quantity unit was always set to the products stock quantity unit regardless if a different one was selected for that ingredient
  • Fixed a PHP notice on the recipes page when there are no recipes (thanks @mrunkel)

Chores fixes

  • Fixed that weekly chores, where the next execution should be in the same week, were scheduled always for the next week only

Calendar fixes

  • Fixed that the "Share/Integrate calendar (iCal)" button did not work (thanks @tsia)

API improvements/fixes

  • New endpoint /user/settings to get all user settings of the currently logged in user (key/value pairs)
  • New endpoint /system/config to get all config settings (config.php) (key/value pairs)
  • The endpoint /stock/products/{productId}/locations now also returns the current stock amount of the product in that loctation (new field/property amount) (thanks @Forceu)
  • The endpoints /objects/{entity} and /objects/{entity}/{objectId} now also include/return userfields of the object(s) (new field/property userfields per object, key/value pairs or null, when the object has no userfields)
  • Fixed that CORS was broken (there was no response to preflight OPTIONS requests)

General & other improvements/fixes

  • Optimized that sometimes the corresponding form was not validated when selecting a date from the datetimepicker
  • New config.php setting FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_FIELD_NUMBER_PAD which activates the number pad for best-before-date fields on (supported) mobile browsers (useful because of shorthands) (defaults to true) (thanks @Mik-)
  • Enhancements for the camera barcode scanner
    • Torch / light improvements (thanks @Mik-)
      • The light button is only displayed when the device has a flash light
      • New config.php setting FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA to always enable the flash light automatically
    • It's now possible to change the camera when the device has more than one (dropdown in the camera scanning dialog, only visible if there is more than one camera available) (thanks @MichaelMadsen)
    • Replaced QuaggaJS (seems to be unmaintained) by Quagga2
    • New user setting quagga2_numofworkers (config.php) to make the Quagga2 setting "numOfWorkers" adjustable (defaults to 4)
    • Various display/CSS improvements (thanks @Mik-)
  • Prerequisites (PHP extensions, critical files/folders) will now be checked and properly reported if there are problems (thanks @Forceu)
  • Improved the the overview pages on mobile devices (main column was hidden) (thanks @Mik-)
  • The general search field now searches accent insensitive (and table sorting is also accent insensitive)
  • Fixed that all number inputs are always prefilled in the browser locale number format
  • Optimized the handling of settings provided by data/settingoverrides files (thanks @dacto)
  • Optimized the update script (update.sh) to create the backup tar archive before writing to it (was a problem on Btrfs file systems) (thanks @shane-kerr)
  • Fixed (again) that the update.sh file had wrong line endings (DOS instead of Unix)
  • New translations: (thanks all the translators)

!! Important notice

If you run Grocy in a subdirectory, you need to set a new config.php setting (BASE_PATH, see config-dist.php)

Stock fixes

  • Fixed purchase/consume/inventory problems when FEATURE_FLAG_STOCK_LOCATION_TRACKING was set to false
  • Fixed that products on the Location Content Sheet were not ordered by the product name

Shopping list improvements/fixes

  • Added an option to hide the month-calendar (in the shopping list settings / top right corner settings menu) (defaults to disabled, so please enable this option if you still want to have the month-calendar on the shopping list)
  • Optimized the new compact view (there was a little too much white space at the sides of the page)
  • Added an option to not switch to the new compact view on mobile devices automatically (in the shopping list settings / top right corner settings menu) (defaults to false, so no changed behavior when not configured) (thanks @Forceu)
  • Fixed that the "Shopping list to stock workflow" did not work when FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING was set to false

Recipe improvements/fixes

  • Optimized the ordering of the inputs on the recipe ingredient edit page (moved "Only check if a single unit is in stock" before the amount)
  • Variable ingredient amounts are now marked accordingly on the renedered recipe
  • After selecting a recipe on mobile devices, the page now automatically scrolls to the recipe card
  • Added the recipes base servings to be displayed on the recipe card and properly named the servings column in the recipes list/table (thanks @kriddles)
  • Added that recipe ingredients can now also be displayed grouped by the products product group (additionally to the ingredient group, new option in the recipes settings / top right corner settings menu) (defaults to false, so no changed behavior when not configured) (thanks @kriddles)
  • Fixed that when editing a recipe ingredient which had "Only check if a single unit is in stock" set, not any quantity unit could be picked and the amount stayed empty
  • Fixed that when reloading the "new recipe"-page (or when it gets auto-reloaded due to "Auto reload on external changes" is enabled), for each reload a new recipe was created
  • Fixed that the recipe "fullscreen card" was not correctly displayed
  • Fixed that nested recipes showed all ingredients of the nested recipes twice
  • Fixed that when displaying or consuming a recipe from the meal plan the serving amount was maybe wrong (was the one from the recipe instead the one from the meal plan entry) (thanks @kriddles)
  • Fixed that the stock fulfillment counts on the recipe card were maybe wrong if that recipe was also added to the meal plan (thanks @kriddles)
  • Fixed that the recipe page was reloaded when expanding a collapsed row on mobile (thanks @Mikhail5555)

Meal plan improvements

  • Improved that all add-dialogs can be submitted by using ENTER and that the next input is automatically selected after selecting a recipe/product
  • Added an edit button to all types of meal plan entries
  • When adding a recipe, the serving amount is now prefilled with the one of the selected recipe (thanks @kriddles)
  • Fixed that the meal plan not used the full height on mobile devices

Calendar fixes

  • Fixed to only include events when the corresponding feature flag is enabled (e. g. don't show expiring products when FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING is set to false) (thanks @kriddles)
  • Fixed that the calendar not used the full height on mobile devices

API improvements/fixes

  • The endpoint /chores now also includes the chore name (new field chore_name) (thanks @DarienFord)

General & other improvements/fixes

  • Big backend performance improvements (thanks @zebardy)
  • Added a button to enable the device flash light on the camera barcode scanner popup (thanks @radim-ek)
  • Optimized the top navbar height and overall spacing to waste less space
  • Replaced the scan-mode-switch-button by a native button because it's less disturbing
  • Fixed that the "contextual time ago" of date/time pickers was not displayed
  • New translations: (thanks all the translators)

New feature: Transfer products between locations and edit stock entries

  • New menu entry in the sidebar to transfer products (or as a shortcut in the more/context menu per line on the stock overview page)
  • New button "Stock entries" in the header of the stock overview page (or as a shortcut in the more/context menu per line) to show the detail stock entries behind each product
    • From there you can also edit the stock entries
  • (A huge THANK YOU goes to @kriddles for the work on this feature)

New feature: Scan mode

  • Just scan one product after another, no manual input required and audio feedback is provided
  • New switch-button on the purchase and consume page
  • When enabled
    • The amount will always be filled with 1 after changing/scanning a product
    • If all fields could be automatically populated (means for purchase the product has a default best before date set), the transaction is automatically submitted
      • If not, a warning is displayed and you can fill in the missing information
    • Audio feedback is provided after scanning and on success/error of the transaction
  • => Quick video demo: https://www.youtube.com/watch?v=83dm9iD718k

New feature: Self produced products

  • To a recipe a product can be attached
    • This products needs a "Default best before date"
  • On using "Consume all ingredients needed by this recipe" and when it has a product attached, one unit of that product (per serving in purchase quantity unit) will be added to stock (with the proper price based on the recipe ingredients)
  • (Thanks @kriddles for the initial work on this)

New feature: Freeze/Thaw products

  • New product options "Default best before days after freezing/thawing" to set how the best before date should be changed on freezing/thawing
  • New location option "Is freezer" to indicate if the location is a freezer
  • => When moving a product from/to a freezer location, the best before date is changed accordingly
  • There is also a new sub feature flag FEATURE_FLAG_STOCK_PRODUCT_FREEZING to disable this if you don't need it (defaults to true)

Stock improvements/fixes

  • The product card gets now also refreshed after a transaction was posted (purchase/consume/etc.) (thanks @kriddles)
  • The product field calories (kcal) now also allows decimal numbers
  • On the inventory page, "New amount" is now prefilled with the current stock amount of the selected product
  • Fixed that entering partial amounts was not possible on the inventory page (only applies if the product option "Allow partial units in stock" is enabled)
  • Fixed that on purchase a wrong minimum amount was enforced for products with enabled tare weight handling in combination with different purchase/stock quantity units
  • Fixed that the product card did not load correctly when FEATURE_FLAG_STOCK_LOCATION_TRACKING was set to false (thanks @kriddles)
  • Fixed that the "Add as barcode to existing product" workflow did not work twice when not switching the page inbetween

Shopping list improvements/fixes

  • Added a compact view to have a better shopping list for shopping trips (new button "Compact view" in the header, additionally this is automatically enabled on mobile devices / when screen width is < 768 px)
  • It's now possible to filter for only undone (not striked through) items (new option in the "Filter by status" dropdown)
  • Fixed that when FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS was set to false, the shopping list appeared empty after some actions

Recipe improvements

  • When consuming a recipe and if an ingredient is not in stock, but that product has any subproduct which is in stock, this gets now consumed (before consuming was not possible in that case)
  • When adding or editing a recipe ingredient, a dialog is now used instead of switching between pages (thanks @kriddles)

Meal plan improvements/fixes

  • It's now possible to add notes per day (in the dropdown of the add button in the header of each day column)
  • It's now possible to products directly (also in the dropdown of the add button in the header of each day column, maybe useful in combination with the new "Self produced products" feature)
  • Added that the calories per serving are now also shown
  • Added that the total costs and calories per day are displayed in the header of each day column
  • Added a new config.php setting MEAL_PLAN_FIRST_DAY_OF_WEEK which can be used to start the meal plan on a different day (defaults to CALENDAR_FIRST_DAY_OF_WEEK, so no changed behavior when not configured)
  • Fixed that when FEATURE_FLAG_STOCK_PRICE_TRACKING was set to false, prices were still shown (thanks @kriddles)
  • Fixed that the week costs were missing for the weeks 1 - 9 of a year

Calendar improvements

  • Improved that meal plan events in the iCal calendar export now contain a link to the appropriate meal plan week in the body of the event (thanks @kriddles)

Task fixes

  • Fixed that a due date was required when editing an existing task

API improvements/fixes

  • The endpoint /stock now includes also the product object itself (new field/property product) (thanks @gsacre)
  • The endpoint /stock/products/{productId}/entries can now include stock entries of child products (if the given product is a parent product and in addition to the ones of the given product) - new query parameter include_sub_products (defaults to false so no changed behavior when not supplied)
  • New endpoints for the new stock transfer & stock entry edit capabilities
  • Fixed that the route /stock/barcodes/external-lookup/{barcode} did not work, because the barcode argument was expected as a route argument but the route was missing it (thanks @Mikhail5555 and @beetle442002)
  • Fixed the response type description of the /stock/volatile endpoint

General & other improvements/fixes

  • It's now possible to keep the screen on always or when a "fullscreen-card" (e. g. used for recipes) is displayed
    • New user options in the display settings menu in the top right corner (defaults to disabled)
  • Slightly optimized table loading & search performance (thanks @lwis)
  • Added that the currently active sidebar menu item is always in view
  • Reordered the sidebar menu items a little bit, grouped them by borders and made them a little smaller to waste less space
  • Changed/removed some animations (and replaced jQuery UI by Animate.css) to improve responsiveness
  • Fixed that also the first column (where in most tables only buttons/menus are displayed) in tables was searched when using the general search field
  • Fixed that the meal plan menu entry (sidebar) was not visible when the calendar was disabled (FEATURE_FLAG_CALENDAR) (thanks @lwis)
  • For integration: If a GET parameter closeAfterCreation is passed to the product edit page, the window will be closed on save (due to Browser restrictions, this only works when the window was opened from JavaScript) (thanks @Forceu)
  • Fixed that the update.sh file had wrong line endings (DOS instead of Unix)
  • Internal change: Demo mode is now handled via the setting MODE instead of checking the existence of the file data/demo.txt
  • There is now a RSS feed for the changelog, subscribe to get notified about new releases: https://grocy.info/changelog/feed
  • New translations: (thanks all the translators)

Stock fixes

  • Fixed that product specific quantity unit conversions (product overrides) were also displayed on the product edit page of other products with the same stock quantity unit

Recipe fixes

  • Fixed that recipes were displayed without ingredients if the total recipe count was > 100

Shopping list improvements

  • Added a new sub feature flag FEATURE_FLAG_SHOPPINGLIST_MULTIPLE_LISTS to disable multiple shopping lists if you only need one (defaults to true, so no changed behavior when not configured)

Chores improvements

  • Added a new period type "yearly" (for yearly schedules)
  • Added a "period interval" option per chore to have more flexible schedules (possible for the daily/weekly/monthly/yearly schedules, means "schedule this chore only every x days/weeks/months" to have for example biweekly schedules)

General & other improvements

  • New Input shorthands for date fields to increase/decrease the date by 1 month/year (shift + arrow keys, see the full list here)

Stock improvements/fixes

  • Fixed that barcode lookups now compare the whole barcode, not parts of it (e. g. when you have two products with the barcodes $1 and $10 and scan $1 maybe the product of $10 was found till now)
  • Fixed that the "X products are already expired" count on the stock overview page was wrong
  • Fixed that after product actions (consume/purchase/etc.) on the stock overview page the highlighting of the row was maybe wrong
  • After product actions (consume/purchase/etc.) on the stock overview page on a sub product, now also the parent product (row) is refreshed
  • It's now possible to accumulate min. stock amounts on parent product level (new option per product, means the sub product will never be missing then, only the parent product)
  • On the purchase page there is now an option to select that the price is the total price (for the whole amount) - below the price field, defaults to "Unit price" (as it was until now), when set to "Total price", the entered price will be divided by the amount before posting
  • "Average shelf life" on the product card now displays just "Unlimited" when the resulting value would be > 200 years (for products which never expire, as they have a best before date of 2999-12-31)

Shopping list improvements

  • When adding a product to the shopping list from the new context/more menu from the stock overview page and if the product is already on the shopping list, the amount of that entry will be updated acccordingly instead of adding a new (double) shopping list item
  • Added a "clear" button above the new notes field on the shopping list page to quickly clear the notes field with one click

Recipe improvements/fixes

  • Fixed a problem regarding quantity unit conversion handling for recipe ingredients of products with no unit relations, but only a different purchase/stock quantity unit
  • It's now possible to display a recipe directly from the meal plan (new "eye button") (thanks @kriddles)
  • Improved the responsiveness of the meal plan and calendar page by automatically switching to a day calendar view on smaller screens (thanks for the idea @kriddles)

Chores improvements

  • There is now a new sub feature flag FEATURE_FLAG_CHORES_ASSIGNMENTS to disable chore assignments if you don't need them (defaults to true, so no changed behavior when not configured)

Calendar improvements

  • The calendar now also contains all planned recipes from the meal plan on the corresponding day
  • Improved that dates in the iCal calendar export now include the server timezone

Custom lists/fields improvements

  • Optimized the custom lists page that it can be printed properly (search field etc. is hidden when printing the page)

General & other improvements/fixes

  • Fixed that the browser barcode scanner button was not clickable on iOS Safari & other small styles fixes/improvements for iOS Safari (thanks @DeeeeLAN)
  • It's now also possible to set the meal plan page as the default/entry page (config.php setting ENTRY_PAGE) (thanks @lwis)
  • Some UI detail-refinements
  • In the header of the product-/chore-/battery-card there is now also a button to directly jump to the journal of the current product/chore/battery

API improvements/fixes

  • The API Endpoint GET /files/{group}/{fileName} now also returns a Cache-Control header (defaults fixed to 30 days) to further increase page load times
  • Fixed that the API endpoint /stock/shoppinglist/add-product failed when a product should be added which was not already on the shopping list (thanks @Forceu)

New feature: Custom entities / objects / lists

  • Custom entities are based on Userfields and can be used to add any custom lists you want to have in Grocy
  • They can have an own menu entry in the sidebar
  • => See "Manage master data" -> "Userentities" or try it on the demo: https://demo.grocy.info/userobjects/exampleuserentity

New feature: Use the device camera for barcode scanning

  • Available on any barcode-enabled field (so currently only for picking products) - a new camera button at the right of side the text field
  • Implemented using QuaggaJS - camera stream processing happens totally offline / client-side
  • Please note due to browser security restrictions, this only works when serving Grocy via a secure connection (https://)
  • There is also a config.php setting DISABLE_BROWSER_BARCODE_CAMERA_SCANNING to disable this, if you don't need it at all (defaults to false)
  • I you have problems that barcodes are not recognized properly, there is a little "barcode scanner testing page" at /barcodescannertesting
  • => Quick video demo: https://www.youtube.com/watch?v=Y5YH6IJFnfc

Stock improvements/fixes

  • Products can now have variations (nested products)
    • 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
  • Quantity units can now be linked (related measurements / unit conversion)
    • On the quantity unit edit page default conversion can be defined for each unit
    • Products "inherit" the default conversion and additionally can have their own / override the default ones
  • 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 (thought to hang it at the location, note used amounts on paper and track it in Grocy later)
  • Stock overview page improvements
    • Options in the more/context-menu to directly open the purchase/consume/inventory pages prefilled with the current product in a popup/dialog
    • Option in the more/context-menu to add the current product directly to a shopping list
    • Option in the more/context-menu to search for recipes containing the current product
    • It's now possible to undo stock bookings ("Undo"-button in the success message, like it was already possible on the purchase/consume/inventory pages)
    • Improved that on any stock changes the corresponding product table row is properly refreshed
  • New config.php setting FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT to configure if opened products should be considered for minimum stock amounts (defaults to true, so opened products will now be considered missing by default - please change this setting if you want the old behavior)
  • The product description now can have formattings (HTML/WYSIWYG editor like for recipes)
  • Products now have a new field for calories (kcal, per stock quantity unit)
  • "Factor purchase to stock quantity unit" (product option) can now also be a decimal number when "Allow partial units in stock" is enabled
  • New "Sub feature flags" in config.php to disable some sub-features (hide the corresponding UI elements) if you don't need them (all new feature flags default to true, so no changed behavior when not configured)
    • FEATURE_FLAG_STOCK_PRICE_TRACKING to disable product price tracking
    • FEATURE_FLAG_STOCK_LOCATION_TRACKING to disable product location tracking
    • FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING to disable product best before date tracking
    • FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING to disable product opened tracking
  • Fixed/refined some things regarding purchase/consume/inventory of products with enabled tare weight handling (nothing was broken, but the success popups may not displayed the correct amount that was posted)
  • Fixed that "Spoil rate" and "Average shelf life" on the product card was wrong in most cases
  • When going to the product edit page, after saving the product, it will now always return to the previous page

Shopping list improvements

  • Shopping lists now have a notes field (HTML/WYSIWYG editor, just to save some notes per shopping list)
  • Shopping lists can now be printed (new button next to the add/delete shopping list button)

Recipe improvements

  • Based on the new linked quantity units, recipe ingredients can now use any product related unit, the amount is calculated according to the conversion factor of the unit relation
  • Based on the new calories field per product, the calories per recipe are now shown based on the selected servings (in the header, next to the costs)
  • New option "price factor" per recipe ingredient (defaults to 1) - the resulting costs of the recipe ingredient will be multiplied by that factor
    • Use this for example for spices in combination with "Only check if a single unit is in stock" to not take the full price of a pack of pepper into account for a recipe
  • The search field on the recipe overview page now also searches for product names of recipe ingredients (means it's possible to search a recipe by a product name)
  • Fixed a problem where the meal plan did not load when a recipe, which was already added to the meal plan, was deleted

Chores improvements

  • Chores can now be assigned to users
    • Option per chore, different "assignment types" like "Random", "Who least did first", etc.
    • On the chores overview page, the list can be filtered to only show chores assigned to the currently logged in user (or to any other user)
  • 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
  • New option "Consume product on chore execution" per chore to automatically consume a product when a chore execution is tracked
  • When tracking an execution from the chores overview page, filters are re-applied afterwards (means when you have filtered the page to only show overdue chores and after the execution the chore is not overdue anymore, it will now be immediately hidden)

Equipment improvements/fixes

  • Fixed that the delete button not always deleted the currently selected equipment item

Userfield improvements/fixes

  • New Userfield type "Select list" for a list of predefined values where a single or also multiple values can then be selected on the entity object
  • New Userfield type "Link" - a single-line-textbox where the content will be rendered as a clickable link
  • Userfields of type "checkbox" are rendered as a checkmark in tables when checked (instead of "1" as till now)
  • Product Userfields are now also rendered on the shopping list (for items which have a product referenced)
  • Fixed that the Userfield type "Preset list" had always the caption "Product group" instead of the configured one (thanks @oncleben31)

General & other improvements/fixes

  • Added a new config.php setting CALENDAR_SHOW_WEEK_OF_YEAR to configure if calendars should show week numbers (defaults to true)
  • Fixed that date/time pickers not considered the config.php setting CALENDAR_FIRST_DAY_OF_WEEK
  • Improved the handling which entry page to use with disabled feature flags (thanks @nielstholenaar)
  • Boolean settings provided via environment variables (so the strings true and false) are now parsed correctly (thanks @mduret)
  • All uploaded pictures (currently for products and recipes) are now automatically downscaled to the appropriate size when serving them to improve page load times (this requires the php-gd extension, if not installed, images will not be downscaled)
  • It's now possible to test plural forms of quantity units (button on the quantity unit edit page, only visible if the current language requires more than 2 plural forms)
  • On the login page the sidebar an all top-navbar menus is now hidden
  • New translations: (thanks all the translators)
  • Internal change for how the localizations for the demo instances are handled
    • For the pre-release demo now all currently supported languages are available (was already the case for the stable demo)
      • Additionally all language files which reached the completion limit of 80 % will now be automatically pulled from Transifex 10 minutes past every hour (to have a kind of instant preview of changed translations)
    • The URLs have changed, I'll try to keep all existing URLs redirecting properly for a long time

API improvements & non-breaking changes

  • New endpoint /objects/{entity}/search/{searchString} to search for objects by name (contains search)
  • 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)
  • New endpoint /chores/executions/calculate-next-assignments to (re)calculate next user assignments for a single or all chores
  • New endpoint /stock/products/by-barcode/{barcode}/add to add a product to stock by its barcode
  • New endpoint /stock/products/by-barcode/{barcode}/consume to remove a product to stock by its barcode
  • New endpoint /stock/products/by-barcode/{barcode}/inventory to inventory a product by its barcode
  • New endpoint /stock/products/by-barcode/{barcode}/open to mark a product as opened by its barcode
  • New endpoint /stock/bookings/{bookingId} to retrieve a single stock booking
  • Endpoint GET /files/{group}/{fileName} can now also downscale pictures (see API documentation on /api)
  • When adding a product (through stock/product/{productId}/add or stock/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 0 instead of null when the given product is not in stock (thanks @Forceu)
  • Fixed that /system/db-changed-time always returned the current time (more or less) due to that that time is the database file modification time and the database is effectively changed on each request because of session information tracking - which now explicitly does not change the database file modification time, so this should work again to determine if any data changes happened
  • It's now also possible to provide the API key via a query parameter (same name as the header, so GROCY-API-KEY)

Say thanks

Because there were some questions about that in the past: If Grocy is useful for you, say thanks!

  • Fixed that price data (last price & chart) was not taken from inventory correction bookings, only purchases
  • Fixed weekly chores were scheduled on the same day after execution
  • Fixed that undone chores were also included in "Last tracked"
  • Fixed the date-time-picker width was too narrow sometimes
  • Improved that execution dates of "Track date only" chores will never display the time part
  • Improved date display for products that never expire (again, there was a display problem after consuming an item on the stock overview page)
  • Fixed the messed up message/toast after consuming a product from the stock overview page
  • Fixed that "Track date only" chores were always tracked today, regardless of the given date
  • Fixed that the "week costs" were wrong after removing a meal plan entry
  • Fixed wrong recipes costs calculation with nested recipes when the base recipe servings are > 1 (also affected the meal plan when adding such a recipe there)
  • Fixed consuming recipes did not consume ingredients of the nested recipes
  • Improved recipes API - added new endpoints to get stock fulfillment information (thanks @Aerex)
  • Improved date display for products that never expires (instead of "2999-12-31" now just "Never" will be shown)
  • Improved date display for dates of today and no time (instead of the hours since midnight now just "Today" will be shown)
  • Improved shopping list handling
    • Items can now be switched between lists (there is a shopping list dropdown on the item edit page)
    • Items can now be marked as "done" (new check mark button per item, when clicked, the item will be displayed greyed out, when clicked again the item will be displayed normally again)
  • Improved that products can now also be consumed as spoiled from the stock overview page (option in the more/context menu per line)
  • Added a "consume this recipe"-button to the meal plan (and also a button to consume all recipes for a whole week)
  • Added the possibility to undo a task (new button per task, only visible when task is already completed) and also a corresponding API endpoint
  • Added a new config.php setting DISABLE_AUTH to be able to disable authentication / the login screen, defaults to false
  • Added a new config.php setting CALENDAR_FIRST_DAY_OF_WEEK to be able to change the first day of a week used for calendar views (meal plan for example) in the frontend, defaults to locale default
  • Fixed that deleting meal plan entries did not work
  • Fixed a problem that the user settings were not properly initialized for the frontend JS part when not logged only (so potentially affected only the login page)
  • Fixed an issue that the shopping list did not load when a plural translation for a quantity unit was missing
  • Fixed that tooltips were visible forever when consuming all products on the stock overview page
  • Fixed that login did not work when "Stay logged in permanently" was set and Grocy runs on a 32-bit system (thanks @matejdro)
  • Fixed page reloads when "Auto reload on external changes" is enabled and there is unsaved form data (the detection did not work for forms in modal dialogs, e. g. when adding a entry to the meal plan)
  • Fixed (again) that the product picker did not work properly when the product name contains single quotes
  • Fixed that a entered barcode on the product edit page was only saved when "adding" it to the barcodes list by pressing TAB (is now automatically added to the list also when just leaving the field)
  • Improved that errors/messages from the API are shown properly when undoing a stock booking is not possible (stock journal page)
  • Improved night mode CSS (done by @BlizzWave, thanks!)
  • A new localization for en_GB is now always included - nothing is really translated there, it's only about component "translations" that e. g. the first day of the week is correct for calendars
  • Fixed a performance problem for loading data tables related to the new Userfields feature
  • Fixed that when using single quotes in a product name did not trigger the workflow popup
  • New feature: Userfields
    • Attach any custom field to any entity (Products, Locations, Euqipment, etc.)
    • Userfields can have types (Text, Number, Date, etc.)
    • Will be shown / can be filled on the edit page of the corresponding entity and will also optionally show in the corresponding tables (inclcudes overview pages)
    • => Can be configured under Master data / Userfields
  • New feature: Meal planning
    • Simple approach for the beginning (more to come): A week view where you can add recipes for each day (new menu entry in the sidebar, below calendar)
    • Of course it's also possible to put missing things directly on the shopping list from there, also for a complete week at once
  • General improvements
    • The "expires soon" or "due soon" days (yelllow bar at the top of each overview page) can now be configured
      • => New settings page for each area under the settings icon at the top right
  • Stock improvements
    • It's now possible to have multiple / named shopping lists
      • Automations still use the default shopping list and also the default shopping list cannot be deleted
    • More information on the product card like "Spoil rate" or "Average shelf life"
    • It's now possible to set a price for added products during inventory
    • It's now possible to customize the default amount for purchase/consume (see stock settings under the settings icon on the top right)
  • Chores improvements
    • New recurrence patterns - chores can now also be "scheduled" to repat daily/weekly/monthly
    • It's now possible to track the day of a chore execution only (without the time, option per chore)
  • Recipe improvements
    • It's now possible to enter a "variable amount" (e. g. if a recipe needs "1 - 2 cups"), the original amount is still used for stock fulfillment checking (if enabled for that recipe ingredient)
  • New translations: (thanks all the translators)
  • Internal improvement: Localizations are now handled via gettext, both on server and client side
    • Mainly to properly handle languages with more than 2 plural forms
    • This involved some string changes which results in a needed (re)translation of about 20 strings (excluding demo data)
    • Also applies to quantity units, n-plural forms can be entered on the quantity unit edit page
    • It's not required to install the PHP gettext extension, on both, server and client, managed implementations of gettext are used (oscarotero/Gettext & oscarotero/gettext-translator)
  • Some other small fixes and improvements
    • The "Add as barcode to existing product" product picker workflow failed to add the barcode to the given product
    • Recipes can now be filter by stock availability
    • Added a feature flag (config.php setting) to also be able to hide all stock related UI elements and routes
  • Stock improvements
    • A different location can now also be set during inventory (as for purchases)
    • A partial minimum stock amount can now be set when "Allow partial units in stock" is enabled (product option)
  • Recipe improvements
    • There is now a default per product for "Disable stock fulfillment checking for this ingredient" (ingredient option, default can be defined as a product option)
  • Some small UI fixes & improvements
    • THe "Mark as open" button on the stock overview page was disabled when the current stock amount was exactly 1
    • The number in the "x products expiring within the next 5 days" badge was incorrect for products expiring exactly in 5 days
    • On the product groups page there is now a new column which displays the product count per group (+ a link to the products page filtered by that product group)
    • Added a message to clarify that in product dropdowns also something unknown can be entered to start a workflow
    • Some other small CSS fixes (context menus were not fully displayed when the parent container was to small, improved padding for text inputs)
  • As always: Updated translations (thanks all the translators)

Self promotion

grocy-desktop is now also available through the Microsoft Store

Get it from Microsoft

  • New API method to get a product by its barcode (/stock/products/by-barcode/{barcode}, thanks @matejdro)
  • The best before date on the purchase and inventory page can now also be today or earlier, but when so, a short hint is displayed
  • Fixed some UI bugs
    • When consuming a product with "Allow partial units in stock" enabled from the stock overview page, the displayed amount after the stock booking was wrong
    • The inventory form was not validated with certain click paths
  • Some small UI fixes & improvements
    • Recipe ingredient notes were not displayed
    • Edit/delete buttons on the equipment page had no icons
    • Improved the overview pages "action buttons column" (e. g. hide more rarely used actions behind a context/dropdown menu)
    • The "purchase to stock conversion factor" is now displayed on the purchase page when QU units are different (above the amount field)
    • Some JS files were not loaded correctly on case sensitive file systems
    • The changelog is now included as markdown files (in /changelog directory, one file per release with a filename in format <ReleaseNumber>_<Version>_<ReleaseDateIso>.md) and shown in the about dialog
    • Please review your CURRENCY setting in data/config.php, see also config-dist.php - this should be the ISO 4217 code of the currency to properly work with the JS toLocaleString function
  • New translation: (thanks all the translators)
  • Breaking change: The API has been completely reworked, please review the documentation before updating when you are using the API
  • New feature: Tare weight handling
    • An option per product
    • Imagine this: You have flour in jars, the jar weighs 500 grams, currently there are 1000 grams in stock, the new weight including the jar is 1100 grams - grocy can now calculate the used amount on consume/purchase/inventory automatically, you only have to enter the weighed amount including the jar (demo product to showcase this "Flour")
  • Recipe improvements
    • Recipes are now scalable - define per recipe for how much servings it is, change the desired servings on the fly when the recipe is displayed, ingredient amounts are scaled accordingly
    • The cost of a recipe is now displayed based on the last purchase price per ingredient (recipe scaling also applies)
    • When putting all missing recipe ingredients on the shopping list, it is now possible to ignore certain ingredients (in the popup when clicking the "Put missing items on shopping list" button)
    • A new option per recipe to not check against the amount already on the shopping list when putting all missing ingredients on it (by default, only the amount not already on the shopping list is added, when this is enabled, always the whole missing amount will be put on the shopping list)
    • On consume, there can now be tracked for which recipe it was, this is also tracked automatically when using the "Consume all ingredients needed by this recipe" button (for future statistical purposes)
    • Recipes can now have pictures
    • New "gallery view" for recipes (demo available at https://demo.grocy.info/recipes?tab=gallery)
  • Stock improvements
    • It is now optionally possible to have partial units in stock (option per product)
    • On purchase, a different location can now be assigned (imagine you have two freezers, by default you store your pizza there, but sometimes there)
  • New translations: (thanks all the translators)
  • Other improvements
    • The calendar can now be shared/integrated in iCal format (button in the header on the calendar page)
    • Added feature flags to hide/disable certain parts of grocy when you don't use them (for example hide "Chores" and all related UI elements, when you don't use it, see config-dist.php)
    • Added a "Apple Touch Icon" and a "Web App Manifest" which should improve Grocy on mobile devices and also enables "Add to Home screen" on major mobile browsers
    • A lot of other minor small and bigger UI improvements
  • Fixed a SQL error during database migration when using SQLite >= 3.25.2
  • Improved data tables loading time
  • Location edit form did not work (master data)
  • Quantity unit "purchase to stock factor" was not respected when putting a recipe on the shopping list or when comparing the already on the shopping list amount
  • Better API response for POST routes when there is no or invalid JSON request body content
  • All config.php settings can now also be set via environment variables (for grocy-docker)
  • Added a skip button when adding all shopping list items in "Shopping list to stock workflow"
  • Fixed some minor UI related bugs
  • New feature: "Shopping list to stock workflow"
    • Add a single shopping list item or all at once to stock directly from the shopping list
    • There are new "stock settings" under settings menu in the top right corner
    • You can enable there, that all products which have "Default best before days" set, are added without confirmation in this workflow
    • => This means, you can add the whole shopping list to stock with one click, if you want
  • Improved stock handling
    • On consume, a specific stock item can now be picked
    • A stock item can now be marked as "opened" (on the consume page or directly from stock overview, visible in the product card and on the stock overview page)
  • New feature: Calendar
    • Shows all upcoming product expirations, due chores, due tasks and due battery charge cycles
  • New translation: French (thanks all the translators)
  • Small other improvements
    • Allow fraction numbers for recipe ingredients when not checked against stock and add an option to not check stock for a recipe position
    • The current time can now be shown in the header (see the settings menu next to the user icon)
  • Changed: Docker related things are now in a separate repository: https://github.com/grocy/grocy-docker
  • Changed: Translations are now managed with Transifex: https://www.transifex.com/grocy/grocy
  • Added a journal for stock bookings, chore executions and battery charge cycles
    • => Button in each line on the overview pages or the "Journal" button next to the headline on every overview page
  • Added the possibility to undo any stock booking, chore execution and battery charge cycle
    • => Button in the success popup while booking a purchase/consume/etc. or on the new journal pages (see above)
  • Presets for new products are now configurable
    • => "Presets for new products" button next to the headline on the products list page
  • Recipes can now be nested (include a recipe into another one)
  • Recipe ingredients can now be grouped together which will result in headlines per group in the rendered recipe
    • => Group can be set on the recipe position edit page, demo recipe is "Pizza")
  • On the stock overview page, the product card is now shown when clicking the product name
  • Added option to filter by product group on stock overview page
  • When auto reloading on external changes is enabled, the page is not reloaded when there is a fullscreen card active (recipe/equipment instruction manual)
  • On the product-/chore-/batterycard there is now a link to the edit page of the corresponding item
  • Some other minor bug fixes
  • New feature: Equipment
    • Manage all your household equipment/devices in one place and have the information/instruction manual at hand when needed
  • New feature: Products can now have pictures
    • Add them in the product edit page
    • Will be shown in the product card (purchase/consume/etc. pages) and when you click the product name on the stock overview page (a little image icon next to the product name indicates if the product has an image)
  • Recipes and the new equipment edit page now have a little editor with text formatting capabilities
  • New optional "Night Mode" (thanks a lot @BlizzWave, can also be activated automatically by a time range - see the new dropdown menu next to the user menu)
  • Docker support (thanks @talmai)
  • Fixed some minor UI bugs
  • Important bug fix: All forms were submitted twice when using ENTER instead of the OK/Save button
  • Norwegian translation updates (thanks @BlizzWave )
  • The colored info bars on top of all (overview)pages can now be clicked to filter the table accordingly
  • Fixed some minor mostly UI related bugs
  • New feature: Tasks / To-do list
  • Renamed habits to chores as this is more what it is about
  • Products can now be organized in product groups, this group is also used to group the items on the shopping list (you can use this to optimize your way in the supermarket for example)
  • Added an option to stay logged in permanently (checkbox on the login page)
  • When the database was changed externally, the current page is automatically reloaded when there was no input for at least 50 seconds
  • Fixed some minor UI bugs
  • Some smaller UI bug fixes and enhancements (thanks again for all the testing @BlizzWave)
  • The complete row is now refreshed on changes on all overview pages
  • Added a checkbox to set the "never expires date" in best before date inputs (alternative to shortcut "x")
  • Recipes can now have arbitrary quantity units and stock is only checked for one unit then (imagine you have sugar in "Packs" in stock but your recipe "Pancakes" needs 200 grams)
  • Added a "consume this recipe button" to remove all ingredients of a recipe from stock with one click
  • Other small UI changes/improvements
  • Basic product price tracking (can be entered on purchase, a little price history chart is shown in the product card - right side on purchase/consume/etc. pages)
  • Proper pluralization of everything (for quantity units you can enter the plural form in master data)
  • On all overview pages the statistics shown in the header are now updated when doing changes directly on the page (e. g. consuming a product)
  • Lots of small fixes and improvements (form validation, translations - thanks for keeping the norwegian translation always updated @BlizzWave, other small bugs)
  • Replaced the single user (so far defined in /data/config.php) with a multi-user management
    • The currently defined user will automatically be migrated, please remove HTTP_USER and HTTP_PASSWORD from your config file afterwards
    • For this it was necessary to delete all sessions and API keys during the migration
  • Added an update script (/update.sh) to make updates (on Linux machines) easier
  • Added the possibility to track who did a habit
  • Added a rudimentary habit analysis possibility
  • Different small UI, code and translation improvements
  • New related project: grocy-desktop
  • New datepicker shorthands and improvements
    • YYYYMMe or YYYYMM+ gets expanded to the end of the given month in the given year in proper notation
    • Changed: MMDD will be expanded to the given day next year if > today
    • see README
  • Some other small bug fixes
  • New feature: Recipes
    • Organize a list of products, amounts and a description into recipes and see at a glance if everything needed is in stock or put the missing things with one click on the shopping list
    • Try it live on the demo page: => https://demo.grocy.info/recipes
  • Added norwegian translation (thanks @BlizzWave)
  • A lot of small UI improvements
    • Columns in tables can now be reordered
    • Show a calendar on the shopping list page (useful, at least for me)
    • Table column ordering and sorting is now remembered
    • Sidebar collapse state is now remembered
    • Fixed datetimepicker border
    • Keep the parent sidebar menu item expanded if the active page is a sub menu item
  • Custom JS/CSS file names have changed see README

This was released shortly after the last release to fix a small regression bug, original changes from Version 1.13.0:

  • Upgraded Bootstrap and some other dependencies (Grocy now looks even better!)
  • Added Italian translation (thanks @davidoskky)
  • Upgraded Bootstrap and some other dependencies (Grocy now looks even better!)
  • Added Italian translation (thanks @davidoskky)
  • Bug fix for location filtering on stock overview page did not work in all browsers
  • On the stockoverview it's now possible to filter the products by location
  • All dropdowns are now sorted alphabetically
  • Added an option to not use URL rewriting (for webservers which, however, don't support URL rewriting)
  • It's now possible to consume products directly from stock overview with one click
  • Added due/overdue info on bateries- and habits overview (like on stock overview)
  • Reworked general page layout and improved responsiveness (see #9 and thanks @d-Rickyy-b)
  • Translations fixes
  • Added a plugin system for looking up products against external services by barcode, see #6 for reference
  • Added validation of all API requests and improved Swagger/OpenAPI description
  • Documented the REST API and data model, see the integrated instance of Swagger UI at /api
  • Fixed login form didn't respect the configured BASE_URL
  • New configuration option "BASE_URL" to define base installation URL (should make subdirectory installations possible, see #3)
  • Added some missing translations
  • Grocy is now fully localizable and ships by default with English and German translations
  • Allow to add anything to the shopping list, not only products
  • Major project refactoring
  • Improved sidebar responsiveness
  • New feature: Rechargeable battery management
  • Improved productivity of input forms
  • New feature: Habit tracking
  • Fixed an issue which prevented that the databse is correctly created on unix systems
  • Added a login screen and switched to cookie/session based authentication instead of HTTP-basic-auth
  • Added a favicon and more productivity improvements
  • Added a flow to add a new product with prefilled barcode
  • New feature: Shopping list (which is also automatically filled based on defined min. stock amount)
  • Small UI changes for better productivity
  • Added flow to directly add products and barcodes from purchase and inventory view
  • Add possibility to have multiple barcodes per product
  • Form validation and barcode input handling improvements
  • General improvements, the work goes on...
  • Basic features, mainly about a interface to record grocery purchases and consumptions