-
Material Request for Dolibarr
Employee based material and product request management: internal requisitions, multi level approval, automatic purchase orders and internal stock transfers.
Version 1.0 Dolibarr 16.0 and above PHP 7.1+ GPL v3 116 languagesWhat this module does
Most companies still handle internal material requisitions with paper forms, e-mails or spreadsheets. Material Request brings the whole circuit into Dolibarr.
Every employee asks for the material they need directly in Dolibarr. The request follows a two level approval circuit – the manager of their department, then the requisition manager. Once approved, Dolibarr generates the purchase orders and the internal stock transfers automatically, and the employee simply confirms the reception.
For the employee
Create a request with as many lines as needed, justify it, confirm it, print the PDF and flag it as received.
For the department manager
See only the requests of your department and approve or reject them with a reason.
For the requisition manager
Give the final approval, set the vendors and the source warehouses, then generate the orders and the transfers in one click.
The workflow
- Draft – the employee is still editing the request.
- Confirmed by the employee – waiting for the department approval.
- Approved by the department – waiting for the final approval.
- Approved – purchase orders and internal transfers can be generated.
- Purchase order and/or internal transfer created.
- Received – the material has been handed over to the employee.
At any approval step the request can be rejected with a reason, and before reception it can be canceled and re-opened. The department step can be switched off from the setup for a single level circuit.
Key features
- Multi line requests based on the products of your catalogue or on free text lines (free lines can be forbidden).
- Procurement mode per line: Purchase order (bought from a vendor) or Internal transfer (taken from one of your warehouses).
- Automatic purchase orders: one supplier order per vendor found on the lines, linked back to the material request; the lines are then flagged as processed.
- Automatic internal transfers: stock movements from the source warehouse of each line to the destination warehouse of the request, labelled with the request reference.
- Departments with a manager and a default warehouse, managed from a dedicated setup page.
- Employee settings added to the Dolibarr user card: department and destination warehouse, plus a tab listing all the requests of that employee.
- Nine granular permissions: read own requests, read all requests, create, delete, approve as a department manager, approve as a requisition manager, generate the orders and the transfers, flag as received, export.
- E-mail notifications to the approvers when a request is confirmed and to the employee when it is approved or rejected.
- PDF document of the request with a standard template, plus support of your own ODT templates.
- Dashboard with statistics per status, the requests waiting for your approval and the last requests, plus a widget for the Dolibarr home page.
- Priorities (low, normal, high, urgent) and a date needed to organise the procurement.
- Numbering rules (standard and customizable mask), extra fields on the requests and on their lines, export and import profiles, agenda events, documents, notes and contacts tabs, and a scheduled job.
- Multi-company ready and translated into the 116 languages and variants shipped with Dolibarr.
Permissions
Permission Typical holder Read the material requests (own requests only) Every employee Read the material requests of all the employees Managers, controllers Create/Update the material requests Every employee Delete the material requests Requisition manager Approve the material requests as a department manager Department managers Approve the material requests as a requisition manager Requisition manager Generate the purchase orders and the internal transfers Requisition manager, purchasing Flag a material request as received Employee and warehouse staff Export the material requests Controllers Without the « read all » permission a user only sees their own requests; a department manager additionally sees the requests of the departments they are responsible for.
Setup options
Option Effect Skip the department approval step A confirmed request goes directly to the final approval step. Notify the approvers by e-mail An e-mail is sent to the department manager, then to the requisition managers. Notify the employee by e-mail The employee is informed when the request is approved or rejected. Allow the materials without a predefined product Enables free text lines. Flag the request as received on transfer Closes the request as soon as the internal transfer is done. Hide the prices Removes the price columns and the totals from the requests. Default destination warehouse Used when neither the employee nor the department has a warehouse. Installation
From the ZIP archive. Log in as an administrator, open Home → Setup → Modules/Applications, select the tab Deploy/install external app/module, upload
module_MaterialRequest-1.0.zipand confirm. Then find Material Request in the module list (family DoliMarketPlace) and enable it.Manually. Unzip the archive into the
customdirectory of your Dolibarr installation so that you getcustom/materialrequest, check that$dolibarr_main_url_root_altand$dolibarr_main_document_root_altare set inconf/conf.php, then enable the module.Enabling the module creates the database tables, the menus, the permissions, the extra fields of the user card, the ODT template directory and eight default departments.
Demonstration dataset
A ready to use dataset is provided to discover the module or to train your teams:
cd custom/materialrequest/scripts php materialrequest_demodata.php create
It creates three warehouses, three vendors, eight products, four users (two employees, a department manager and a requisition manager) and six material requests covering every status of the workflow, with their purchase orders and their stock movements. Everything it creates is prefixed with
MRDEMOand can be removed again withphp materialrequest_demodata.php delete.Requirements
- Dolibarr 16.0 or higher (tested with Dolibarr 22.0).
- PHP 7.1 or higher.
- The modules Products, Stock and Vendor orders are optional but required to use the internal transfers and the automatic purchase orders.
Technical notes
The module follows the official Dolibarr module architecture: a module descriptor in
core/modules/, CRUD classes extendingCommonObjectandCommonObjectLine, SQL installation files, numbering and document model classes, triggers, a widget, a hook class, language files and an API class. It declares the following triggers, usable by your own developments or by the Workflow module:MATERIALREQUEST_CREATE / MODIFY / DELETE MATERIALREQUEST_VALIDATE (confirmed by the employee) MATERIALREQUEST_APPROVE_DEPT (approved by the department) MATERIALREQUEST_APPROVE (final approval) MATERIALREQUEST_REJECT MATERIALREQUEST_CREATE_SUPPLIER_ORDER MATERIALREQUEST_CREATE_TRANSFER MATERIALREQUEST_RECEIVE / CANCEL / REOPEN
