ERP Order Management
This documentation outlines the order management process for both purchase and sale transactions in our ERP system.
Purchase Order Management
Purchase Orders Table
The purchase_orders
table manages purchase orders placed by the company.
Fields:
purchase_order_id
: Unique identifier for the purchase order (Primary Key)vendor_id
: Foreign key referencing the vendor supplying the goodsorder_date
: Date when the purchase order was createdexpected_delivery_date
: Expected delivery date for the orderstatus
: Current status of the purchase order (e.g., pending, delivered, canceled)total_amount
: Total amount of the purchase order
Purchase Order Items Table
The purchase_order_items
table lists the items included in each purchase order.
Fields:
item_id
: Unique identifier for the item (Primary Key)purchase_order_id
: Foreign key referencing the associated purchase orderproduct_id
: Foreign key referencing the product being purchasedquantity
: Quantity of the product orderedunit_price
: Unit price of the product at the time of purchase
Sale Order Management
Sales Orders Table
The sales_orders
table manages orders received from customers.
Fields:
sales_order_id
: Unique identifier for the sales order (Primary Key)customer_id
: Foreign key referencing the customer placing the orderorder_date
: Date when the sales order was createddelivery_date
: Expected delivery date for the orderstatus
: Current status of the sales order (e.g., processing, shipped, delivered)total_amount
: Total amount of the sales order
Sales Order Items Table
The sales_order_items
table lists the items included in each sales order.
Fields:
item_id
: Unique identifier for the item (Primary Key)sales_order_id
: Foreign key referencing the associated sales orderproduct_id
: Foreign key referencing the product being soldquantity
: Quantity of the product ordered by the customerunit_price
: Unit price of the product at the time of sale
Order Workflow
- Creation: Orders are created based on customer demand or procurement requirements.
- Processing: Orders move through processing stages, including approval, fulfillment, and scheduling.
- Fulfillment: Goods are dispatched (for sales) or received (for purchases).
- Delivery/Receipt: Orders are delivered to customers or received from vendors.
- Completion: Orders are marked as complete upon successful delivery or receipt.
This documentation provides an overview of the main tables and workflow for managing both purchase and sales orders in our ERP system. Additional tables and functionalities may exist to support order management processes.