This plugin helps you monitor the stock levels in two ways:
vendure-config.ts to expose a productVariantsWithLowStock query in the admin API.For more configuration options regarding the admin ui, check the docs.
When you start the server and login, you can find stock-levels under the add widgets button.
StockLocationStrategy because of performance reasons. Instead, it fetches the stock level for each variant from the database and calculates its absolute stock based on the stockOnHand and stockAllocated fields.trackInventory query filter to use correct boolean string valueStockLevelBelowThresholdEvent.column "stockonhand" does not exist on PostgresreduceSum function call bugStockWidgetComponent standalone and removed StockWidgetSharedModule and StockWidgetModule