A MySQL-based Purchase-to-Pay (P2P) Management System developed as a SQL Mini Project. The project automates the procurement process from Purchase Requisition to Vendor Payment using relational database concepts and SQL programming.
The Purchase-to-Pay (P2P) Management System manages the complete procurement lifecycle within an organization. It demonstrates database design, SQL programming, stored procedures, triggers, views, and reporting in a real-world business scenario.
The system helps:
- Reduce manual effort
- Improve transaction accuracy
- Track procurement activities
- Generate business reports
Purchase Requisition
↓
PR Approval
↓
Purchase Order
↓
Product Receipt
↓
Vendor Invoice
↓
Vendor Payment
↓
Reports
- Company Management
- Department Management
- Employee Management
- Vendor Management
- Product Management
- Purchase Requisition
- Purchase Order
- Product Receipt
- Vendor Invoice
- Vendor Payment
- Company
- Department
- Employee
- Warehouse
- Payment Terms
- Product Group
- Tax Information
- Vendor
- Product
- Purchase Requisition
- Purchase Order
- Product Receipt
- Vendor Invoice
- Vendor Payment
- CREATE DATABASE
- CREATE TABLE
- Primary Keys
- Foreign Keys
- Constraints
- INSERT
- UPDATE
- Stored Procedures
- Triggers
- Views
- Aggregate Functions
- GROUP BY
- HAVING
- ORDER BY
- LIKE
- BETWEEN
- DISTINCT
- LIMIT
- INNER JOIN
- LEFT JOIN
- Multi-table JOIN
Purchase Requisition Approval & Purchase Order Creation
The stored procedure:
- Approves Purchase Requisition
- Calculates GST
- Calculates Total Purchase Value
- Automatically creates the Purchase Order
Updates Purchase Order Status after Product Receipt.
Updates Purchase Order Status after Vendor Invoice creation.
Updates Vendor Invoice Status after Vendor Payment.
- Purchase Report
- Open Vendor Invoices
- Vendor Wise Purchase Summary
- Monthly Purchase Summary
The project includes SQL queries demonstrating:
- Filtering (WHERE)
- Sorting (ORDER BY)
- DISTINCT
- BETWEEN
- LIKE
- Aggregate Functions
- GROUP BY
- HAVING
- COUNT
- SUM
- INNER JOIN
- LEFT JOIN
- Multi-table JOIN
- LIMIT
- MySQL
- SQL
The complete project documentation is available in this repository.
Ashwini Selvanathan
SQL Mini Project – Purchase-to-Pay (P2P) Management System