Need a web application where an admin can create users based on role wholesale, distributor, retailer. The wholesale user would purchase the product from admin, the distributor would purchase the product from wholesale user and the retailer would purchase the product from distributor. On each tier they can set their own price and profit margins.
On each tier they should have a different inventory and when they sell the inventory to the below tier, the below tier should only have visibility of the inventory they purchased from the upper tier.
E.g. If the admin have 1000 unit of Item A, 1000 unit of Item B and the wholesale user purchases 500 unit of Item A, 200 unit of Item B. The distributor purchases 100 unit of Item A and 20 unit of Item B, then the distributor and wholesale user should only see what they purchased. They should not see the each upper tier's inventory.
All the access should be based on roles and reports should be fetched and available as role based. E.g. admin would see all the reports, the wholesale user would see all the reports of all the distributors he sold to, the distributor should see all the reports of the all the retailer he sold to.
All the products are digital product i.e. pre-defined vouchers/keys which are sold from admin to wholesale to distributor to retailer to customer.
Only the admin can add the new vouchers (products), the wholesale user should move the inventory to distributor (only what was purchased by distributor) and so on.
That way the admin's inventory after moving to wholesale user (the user would only see the moved inventory and not all the available products and their variants), similarly the distributor should only see the inventory that was pushed by the wholesale user (purchased by distributor) and so on.
There are multiple products which would be categorized under vendor name (only admin can categorize). Retailer need a POS like solution which once purchase is done should send the voucher or the digital product to their email or through SMS.
The end user (customer) should be able to login to the website and check his/her all past purchases with a provision to download the already purchased vouchers.
For more details see the attached document.
Drop me a message if you need further clarification.