mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 19:21:24 +00:00
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:
parent
d3e842e44e
commit
c6b62c5025
3 changed files with 11 additions and 3 deletions
|
@ -50,8 +50,9 @@ tweaks:
|
||||||
stock_best_before_date_tracking: true
|
stock_best_before_date_tracking: true
|
||||||
stock_location_tracking: true
|
stock_location_tracking: true
|
||||||
stock_price_tracking: true
|
stock_price_tracking: true
|
||||||
stock_produc_freezing: true
|
stock_product_freezing: true
|
||||||
stock_product_opened_tracking: true
|
stock_product_opened_tracking: true
|
||||||
|
stock_count_opened_products_against_minimum_stock_amount: true
|
||||||
log_level: info
|
log_level: info
|
||||||
ssl: false
|
ssl: false
|
||||||
certfile: fullchain.pem
|
certfile: fullchain.pem
|
||||||
|
@ -180,6 +181,7 @@ The following sub features can be enabled or disabled:
|
||||||
- `stock_price_tracking`
|
- `stock_price_tracking`
|
||||||
- `stock_product_freezing`
|
- `stock_product_freezing`
|
||||||
- `stock_product_opened_tracking`
|
- `stock_product_opened_tracking`
|
||||||
|
- `stock_count_opened_products_against_minimum_stock_amount`
|
||||||
|
|
||||||
Set it `true` to enable it, `false` otherwise.
|
Set it `true` to enable it, `false` otherwise.
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,8 @@
|
||||||
"stock_location_tracking": true,
|
"stock_location_tracking": true,
|
||||||
"stock_price_tracking": true,
|
"stock_price_tracking": true,
|
||||||
"stock_product_freezing": 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,
|
"ssl": true,
|
||||||
"certfile": "fullchain.pem",
|
"certfile": "fullchain.pem",
|
||||||
|
@ -65,7 +66,8 @@
|
||||||
"stock_location_tracking": "bool",
|
"stock_location_tracking": "bool",
|
||||||
"stock_price_tracking": "bool",
|
"stock_price_tracking": "bool",
|
||||||
"stock_product_freezing": "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",
|
"ssl": "bool",
|
||||||
"certfile": "str",
|
"certfile": "str",
|
||||||
|
|
|
@ -81,6 +81,10 @@ if bashio::config.false 'tweaks.stock_product_opened_tracking'; then
|
||||||
export GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING=0
|
export GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING=0
|
||||||
fi
|
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_CULTURE=$(bashio::config "culture")
|
||||||
GROCY_CURRENCY=$(bashio::config "currency")
|
GROCY_CURRENCY=$(bashio::config "currency")
|
||||||
GROCY_ENTRY_PAGE=$(bashio::config 'entry_page')
|
GROCY_ENTRY_PAGE=$(bashio::config 'entry_page')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue