{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Stock Transfer Note","description":"Inter-warehouse stock transfer note documenting the movement of goods between two company-owned warehouses. Not a VAT-relevant supply; used for internal traceability, inventory accuracy and loss-prevention. Retention aligned with accounting records obligations (BE VAT Code art. 60 — 10 years) and with ISO 9001:2015 clause 8.5.4 (preservation).","type":"object","additionalProperties":false,"required":["transfer_number","transfer_date","from_warehouse","to_warehouse","items","reason","authorised_by","dispatched_by"],"$defs":{"warehouse":{"type":"object","additionalProperties":false,"required":["name","address"],"properties":{"name":{"type":"string"},"address":{"type":"string"}}},"item":{"type":"object","additionalProperties":false,"required":["sku","description","quantity","unit"],"properties":{"sku":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"number","minimum":0},"unit":{"type":"string"},"lot_or_batch":{"type":"string"},"unit_cost":{"type":"number","minimum":0}}},"discrepancy":{"type":"object","additionalProperties":false,"required":["sku","expected","received","note"],"properties":{"sku":{"type":"string"},"expected":{"type":"number"},"received":{"type":"number"},"note":{"type":"string"}}}},"properties":{"transfer_number":{"type":"string"},"transfer_date":{"type":"string","format":"date"},"from_warehouse":{"$ref":"#/$defs/warehouse"},"to_warehouse":{"$ref":"#/$defs/warehouse"},"carrier":{"type":"string"},"items":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/item"}},"reason":{"type":"string","enum":["rebalancing","customer_fulfilment","consolidation","disposal","other"]},"reason_note":{"type":"string"},"authorised_by":{"type":"string"},"dispatched_by":{"type":"string"},"received_by":{"type":"string"},"received_on":{"type":"string","format":"date"},"discrepancies":{"type":"array","items":{"$ref":"#/$defs/discrepancy"}}}}