Purchase Order
What It Models
A purchase order records stock requested from a supplier. Its related receipts and cost records explain acquisition value, later cost relief and restoration, and the facts Accounting needs to post. Vendor details and business-unit costing choices support that work.
Identity and Attributes
Display numbers identify purchase orders and receipts for staff; receipt keys also identify repeated requests. Line quantities determine the outstanding remainder. Layers retain acquisition cost, and relief and restore records identify which cost was consumed or returned.
Relationships
Receiving allocates sellable stock to backorders within the receipt transaction. Inventory movements and shipping call the cost boundary when stock leaves, changes or returns. Accounting consumes posting facts and supplies the posted reference.
Invariants
Receipt replay, quantity limits and transactional stock-and-cost writes protect receiving. Database checks protect layer and relief arithmetic. Posting stamps reject conflicting references; method changes preserve historical costing, and referenced suppliers cannot be deleted.
How It Is Stored and Shared
Purchasing owns commercial acquisition and cost records. Inventory and shipping own physical stock, warehouse, allocation and shipment records. Their in-process calls share transactions with costing. Moving purchasing into fulfilment remains an unresolved ownership choice.
Open Design Questions
Cancelling every outstanding unit can label an untouched issued order received. Purchasing and costing have no console administration screens. Replacement schemas can clear omitted values, and the future ownership boundary remains undecided.