diff --git a/app/components/inventory/InventoryCard.vue b/app/components/inventory/InventoryCard.vue index 242fd0d..b63fbd1 100644 --- a/app/components/inventory/InventoryCard.vue +++ b/app/components/inventory/InventoryCard.vue @@ -72,6 +72,18 @@ {{ expiryText }} + + +
+ + + Low stock ({{ item.quantity }}/{{ item.low_stock_threshold }}) + +
@@ -145,4 +157,10 @@ const expiryText = computed(() => { if (daysUntilExpiry.value === 1) return 'Expires tomorrow' return `Expires in ${daysUntilExpiry.value} days` }) + +// Low stock detection +const isLowStock = computed(() => { + if (!props.item.low_stock_threshold) return false + return Number(props.item.quantity) <= Number(props.item.low_stock_threshold) +})