diff --git a/app/components/inventory/EditItemModal.vue b/app/components/inventory/EditItemModal.vue index 2d4e270..baa2115 100644 --- a/app/components/inventory/EditItemModal.vue +++ b/app/components/inventory/EditItemModal.vue @@ -55,6 +55,21 @@ /> + + + + + props.item, (newItem) => { form.quantity = Number(newItem.quantity) form.unit_id = newItem.unit_id form.expiry_date = newItem.expiry_date || '' + form.low_stock_threshold = newItem.low_stock_threshold || null form.notes = newItem.notes || '' isOpen.value = true } @@ -168,6 +185,7 @@ const handleSubmit = async () => { quantity: form.quantity, unit_id: form.unit_id, expiry_date: form.expiry_date || null, + low_stock_threshold: form.low_stock_threshold, notes: form.notes.trim() || null })