Summary: Deduct consumed components from workshop stock by location, so stock levels at each workshop/storage location reflect what production has used.
Requirements: Track stock per location; when consumption is recorded, deduct from the correct workshop location; prevent negative stock or flag it according to policy; keep an auditable movement record per deduction.
Acceptance Criteria: Recording consumption decreases stock at the correct location; movements are auditable; stock cannot silently go negative (blocked or flagged per policy); tests cover deduction, location selection and an insufficient-stock case.
Summary: Deduct consumed components from workshop stock by location, so stock levels at each workshop/storage location reflect what production has used.
Requirements: Track stock per location; when consumption is recorded, deduct from the correct workshop location; prevent negative stock or flag it according to policy; keep an auditable movement record per deduction.
Acceptance Criteria: Recording consumption decreases stock at the correct location; movements are auditable; stock cannot silently go negative (blocked or flagged per policy); tests cover deduction, location selection and an insufficient-stock case.