Dolibarr has functionality builtin for stock management. It is called warehouse. Warehouse is used for maintaining company's stock. Now we need to develop a new module called, Customer Locker. The functionality of Customer Locker are given below.........
Upon installing Customer Locker module, a menu entry will be added at individual customer card. We will called that menu entry Customer Locker.
Dolibarr employee can access the customer locker at any time, who has the permission to access that page. Initially employee can transfer products from main warehouse to Customer Locker using the quantity 0. Price will be the same as main warehouse. If the main warehouse don't have any products left, the employee can also transfer products using quantity 0. There will be search box for searching products from main warehouse at Customer Locker page.
A locker can be filled or not filled with products. The stock of products of a locker can be 0 or greater than 0. When an employee creates an order, first the products whose numbers are greater than 0 must be subtracted from the locker. Products whose stock from the locker is equal to 0 must be updated from the main warehouse.
When canceling an order, the stock of the products that were reserved must be returned in the locker, not return to the main warehouse. You will have to remember somewhere that certain products were reserved. So the reserved products have to be marked "reserved" and no longer available for other customers. We suggest that when you add products to the locker, there has to be a checkbox to mark the product "reserved". Otherwise it is a listed product. Reserved products stay in the locker at all the times and can only be used for orders for that particular customer.
When quantity is 0 in main warehouse, it still is available for customer lockers, but the transferred quantity can not be greater then 0. It can only be listed. When employee needs reservations for the customer lockers and want's to increase amount in the locker, and main warehouse does not has product, it has to say: "no stock available in main warehouse", or: "stock in main warehouse is not sufficient" so employee knows they have to order that product.
Try to follow the flow of Dolibarr in order to prevent too many modifications in the core. It is important that you provide your code with comments.
Hello MAn, i'm dolibarr expert having more then 9 years experience i have already participate in many dolibarr projects more then 200 dolibarr freelance jobs trust me i can give a perfect jobs Regards Omar