Merge Sales Orders – combine customer orders in one click for Dolibarr
Customers rarely order everything at once. Merge Sales Orders groups their draft orders into a single order in a few clicks, with full control over what happens to the originals and a complete trace of every merge.
The problem
A customer calls on Monday for laptops, e-mails on Tuesday for accessories and adds a support contract on Wednesday. Standard Dolibarr leaves you with three orders to ship and invoice separately, and copying lines by hand from one order to another is slow and error-prone.
The solution
Tick the orders in the list, choose Merge orders and pick how to merge. The module builds the resulting order, keeps track of where each line came from and cancels or deletes the originals, all in a single database transaction: if anything fails, nothing is changed.
Four merge types
- New order and cancel selected – a new draft order receives all the lines; the selected orders are cancelled.
- New order and delete selected – same, but the selected orders are deleted.
- Merge into existing selected order and cancel others – choose the order that receives the lines of the others.
- Merge into existing selected order and delete others – same, the others are deleted.
Key features
- Mass action “Merge orders” on the customer orders list, plus a button on the draft order card.
- Merge with a different customer: create the merged order for any customer you choose.
- Merge Sale for Same Customer menu: select a customer and all its draft orders are loaded and ticked.
- Merge order lines: lines with the same product are combined and quantities summed, with a preview before you confirm.
- Auto merge order lines setting: duplicate product lines are merged when a line is added or edited (screens, API, imports).
- Source tracking: the original order is written on each copied line, orders are linked together and a note is added to each order.
- Safety controls: confirmed, done and cancelled orders are refused; orders of different customers or currencies are refused unless allowed.
- Dashboard and history: colourful tiles, merges per month, merge types used, searchable history with the source and resulting orders.
- Permissions for reading the history, merging orders, merging lines and deleting.
- Setup page to switch every behaviour on or off and to choose the default merge type.
- Demo data: customers, products, orders and history, loaded at activation on demo platforms only.
Compatibility and quality
- Dolibarr 15 up to the latest version, PHP 7.0 and later.
- Translated into all the languages shipped with Dolibarr.
- Follows the Dolibarr module standards: descriptor, hooks, triggers, SQL files, permissions, menus, language files.
- Training manual in English and French included on request.
