Implement feature setting stock count opened products against minimum stock amount (#151)

* Implement FeatFEATURE_SETTING_STOCK_COUNT_OPENED_PRODUCTS_AGAINST_MINIMUM_STOCK_AMOUNTre

* Added documentation for stock_count_opened_products_against_minimum_stock_amount

* Added documentation for Barcode Buddy

* Fix MD013 Line length

* Fix MD009 Trailing spaces

* Prettified Code!

* Apply suggestions from code review

* Update grocy/DOCS.md

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
tringler 2021-04-05 17:20:59 +02:00 committed by GitHub
parent d3e842e44e
commit c6b62c5025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -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.

View file

@ -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",

View file

@ -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')