No products
* Prices may vary depending on your country.
* An additional contribution can be added at the time of payment.
New products
Learn German, English and Spanish in Dolibarr with short lessons in the style of the language apps: multiple choice, translation, words in order and matching pairs, with pronunciation, XP, streaks, medals and a weekly ranking. 18 courses from A1 to C2 included, for French speakers.
Dolibarr rental module: fleet and availability, pricing by duration, tiers and seasons, contracts, condition reports, deposits, deliveries and returns.
mp23910d20260902120151
Apply a multiplier to unit prices on quotes, orders and invoices — without breaking Dolibarr's own totals or your Factur-X output.
|
|
Some businesses sell at a catalogue price multiplied by a coefficient: a day rate times a
difficulty factor, a base price times a margin, a rental times a duration bracket.
Doing this with an extrafield is tempting, and it is where most implementations go wrong.
Dolibarr assumes everywhere that total_ht = qty x subprice x (1 - discount/100). If you keep
the catalogue price in subprice and write the coefficient into the line total yourself, that
assumption is now false, and everything downstream that recomputes from subprice quietly
disagrees with your invoice. Electronic invoicing is the worst case: the generator rebuilds
each line from subprice, so the XML ends up internally consistent, passes business rule
validation, and declares an amount several times lower than the invoice you actually sent.
Nothing warns you.
This module takes the opposite route. The coefficient is carried by the price: subprice stores
the price actually invoiced, and the catalogue price you typed is kept alongside it. Dolibarr's
own formula stays true, so update_price(), the REST API, document cloning, imports and Factur-X
generation all keep working with no special handling.
What you see on screen: one extra field, the coefficient. You still type your unit price in the
unit price field, and that is the value you see again when you reopen the line.
On PDFs: unit price, coefficient, quantity, discount, total. The line can be checked by hand.
Works with the maintained core models — cyan for quotes, eratosthene for orders, sponge for
invoices.
Not supported, on purpose and blocked with a clear message rather than silently mishandled:
foreign currency lines, progress (situation) invoices, the supplier cycle, recurring invoice
templates.
Coming from an older coefficient module? A migration script is included as a courtesy. It moves
your existing lines to the new model without changing a single amount, and it refuses to run
rather than guess. It was tested on our data, never on yours: take a backup you have actually
restored before running it.
Free, community, no support. GPL v3+.