You can create Purchase Orders and send to Vendors
Vendors will deliver the products to your warehouse.
Once you receive the items in your Purchase Order you can generate the Bill
You can add payments to Bill
PurchaseOrderController.php file has the all code to work with PurchaseOrder.
Next PO number is generated inside the