Skip to content

Commit

Permalink
Implement feature setting stock count opened products against minimum…
Browse files Browse the repository at this point in the history
… 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 <[email protected]>
  • Loading branch information
tringler and frenck authored Apr 5, 2021
1 parent d3e842e commit c6b62c5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion grocy/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
6 changes: 4 additions & 2 deletions grocy/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions grocy/rootfs/etc/services.d/php-fpm/run
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c6b62c5

Please sign in to comment.