diff --git a/grocy/DOCS.md b/grocy/DOCS.md index aab68ee..84f5999 100644 --- a/grocy/DOCS.md +++ b/grocy/DOCS.md @@ -50,8 +50,9 @@ tweaks: stock_best_before_date_tracking: true stock_location_tracking: true stock_price_tracking: true - stock_produc_freezing: true + stock_product_freezing: true stock_product_opened_tracking: true + stock_count_opened_products_against_minimum_stock_amount: true log_level: info ssl: false certfile: fullchain.pem @@ -180,6 +181,7 @@ The following sub features can be enabled or disabled: - `stock_price_tracking` - `stock_product_freezing` - `stock_product_opened_tracking` +- `stock_count_opened_products_against_minimum_stock_amount` Set it `true` to enable it, `false` otherwise. diff --git a/grocy/config.json b/grocy/config.json index 8074229..4076b3b 100755 --- a/grocy/config.json +++ b/grocy/config.json @@ -35,7 +35,8 @@ "stock_location_tracking": true, "stock_price_tracking": true, "stock_product_freezing": true, - "stock_product_opened_tracking": true + "stock_product_opened_tracking": true, + "stock_count_opened_products_against_minimum_stock_amount": true }, "ssl": true, "certfile": "fullchain.pem", @@ -65,7 +66,8 @@ "stock_location_tracking": "bool", "stock_price_tracking": "bool", "stock_product_freezing": "bool", - "stock_product_opened_tracking": "bool" + "stock_product_opened_tracking": "bool", + "stock_count_opened_products_against_minimum_stock_amount": "bool" }, "ssl": "bool", "certfile": "str", diff --git a/grocy/rootfs/etc/services.d/php-fpm/run b/grocy/rootfs/etc/services.d/php-fpm/run index d703fa5..2267778 100644 --- a/grocy/rootfs/etc/services.d/php-fpm/run +++ b/grocy/rootfs/etc/services.d/php-fpm/run @@ -81,6 +81,10 @@ if bashio::config.false 'tweaks.stock_product_opened_tracking'; then export GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING=0 fi +if bashio::config.false 'tweaks.stock_count_opened_products_against_minimum_stock_amount'; then + export GROCY_FEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNT=0 +fi + GROCY_CULTURE=$(bashio::config "culture") GROCY_CURRENCY=$(bashio::config "currency") GROCY_ENTRY_PAGE=$(bashio::config 'entry_page')