Margin per day
margeparjour · v1.0.2
You see what a working day brings in before you accept the quote.
dolixcalc · version 1.0.0
An extra field computed by a formula written without PHP, with its value stored: right in the lists, sortable, filterable and printable on PDFs.
Sold directly to businesses in France
Direct purchase, with immediate download and an invoice by email, is open to businesses and associations established in France, on the French page of this module. From elsewhere, write to support@dolix.fr.
Try it without installing anything: the online demo (login demo, password demo; sample data, reset every night; the demo is in French).

Dolibarr's computed fields are not stored in the database: a list cannot be sorted or filtered on them, and the value shown in a list can differ from the one on the record. In recent versions, the security rules for formulas prevent sums and reading another record, and the allowed functions are set in conf.php. As for the hidden option that stores these fields, it blocks saving the whole record as soon as a formula is in error.
Price including tax of a product, number of cartons of a line, total of an order, trade name of the third party on a contact: Dolibarr can display a computed field, but it does not store it.
conf.php.The details, with formulas tried on Dolibarr 24: our note Computed fields in Dolibarr.
Who it is for: Dolibarr administrators who need a computed value that can be sorted, filtered or printed: price including tax of a product, number of cartons of a line, total cartons of an order, trade name of the third party on a contact, total subscriptions of a member, overdue invoice.
This section appears on all 29 module pages, without exception.
A rule says which extra field to compute, and with which formula. The module computes the value and stores it in the field, which remains an ordinary Dolibarr extra field.
Products and services, third parties, contacts, members, commercial proposals, sales orders, customer invoices, and the lines of proposals, orders and invoices.
The field that receives the result is an extra field you create in Dolibarr: integer, decimal, price, text, date or checkbox. Dolibarr’s native computed fields are not offered as a target.
They are written without PHP or SQL. A list inserts a field or a function at the cursor.
+ - * /, comparisons, and, or, not.qty, total_ht, price…), extra fields with options_ in
front.produit.xxx for the product of a line, document.xxx for its document,
tiers.xxx for the third party of a contact, a document or a line.sum(lines.qty; lines.product_type = 0); also count, avg, minimum, maximum. Over the
subscriptions of a member: sum(subscriptions.amount).if, round, ceil, floor, min, max, abs, today, days_between, year,
month, upper, lower, len, empty, concat. A date plus a number adds days. French names
work too (si, arrondi, somme…).A few examples from the module’s help:
| Value | Record | Formula |
|---|---|---|
| Price incl. tax | Product | round(price * (1 + tva_tx / 100); 2) |
| Cartons | Order line | ceil(qty / produit.options_cond) |
| Trade name | Contact | tiers.name_alias |
| Total subscriptions | Member | sum(subscriptions.amount) |
| Total cartons | Order | sum(lines.options_cartons) |
| Overdue invoice | Invoice | if(paye = 0 and date_lim_reglement < today(); "Overdue"; "") |
The “Cartons” rule of order lines: the formula reads the packaging of the line’s product. The test on an existing line gives 3, with the values read, without saving anything.
On the order, each line carries its number of cartons, computed and stored.
In the header of the same order, the total cartons and the number of lines are computed from the lines.
The product list sorted on the computed price including tax: the value is in the database, so Dolibarr’s sorting works.
The Help tab explains how to write a formula and gives examples.




Everything is set in SetupModules/Applications“Stored computed fields”, in three tabs.
| Tab | Content |
|---|---|
| Rules | The list of rules (kind of record, computed field, formula, status, last error); “New rule”, edit, enable or disable, delete. Inside a rule: the formula, the position, the test on a record and “Recompute now”. |
| Error log | Formula errors: date, rule, kind of record, record id, message. “Clear the log” button. |
| Help | How to write formulas, examples, and when the value is computed. |
Deleting a rule leaves the values already computed in the field; they are no longer updated. The module adds no setting constant.

eval. A
formula is limited to 2,000 characters and 50 levels of parentheses.| Database tables created | Two tables. llx_dolixcalc_rule: the rules (kind of record, computed field, formula, enabled or not, position, last error and its date). llx_dolixcalc_log: the error log (rule, kind of record, record id, message, date); the module keeps its last 1,000 lines. Computed values are written to Dolibarr's extra field tables (llx_product_extrafields, llx_commandedet_extrafields…), in the fields you chose as targets. The module adds no setting constant. |
|---|---|
| Permissions | The descriptor declares rights = array(): the module adds no permission. Rules, testing a formula, recomputing and the log are reserved for Dolibarr administrators. Computed values are ordinary extra fields: whoever sees the record sees the field, according to that field's visibility settings in Dolibarr. |
| Uninstalling |
|
The dolixcalc folder, in readable PHP, under the GPL v3 or later licence: the module descriptor,
the trigger that computes the values, the formula engine, the three setup tabs, the batch recompute
page, the SQL files of the two tables and the icons.
fr_FR), English (en_US) and German (de_DE).README.md and a ChangeLog.md.conf.php.llx_dolixcalc_rule (the rules) and llx_dolixcalc_log (the error log, of which
the module keeps the last 1,000 lines).llx_product_extrafields,
llx_commandedet_extrafields…), only in the fields chosen as a target. No other field is changed.The module descriptor only declares a minimum version. No upper bound is written in the code: the versions below are those on which the module has actually been run.
| Dolibarr versions | Dolibarr 19.0 minimum. Installed and run on 19.0.4, 20.0.4, 21.0.4, 22.0.5, 23.0.4, 24.0.2 and 24.0.3. |
|---|---|
| Minimum PHP | 7.1 |
| Dolibarr modules to enable | None |
| Licence | GPL v3 or later, full source code |
| Languages | French, English, German |
| Menu | No menu entry. Rules are managed in SetupModules/Applications“Stored computed fields”, in three tabs: Rules, Error log, Help. Values are shown in the extra fields of records and lists. |
The test results, Dolibarr version by version, are on the Compatibility tested page.
The details — permissions on the custom folder, shared hosting, upgrades, uninstalling — are on the page Installation and upgrades.
The descriptor requires Dolibarr 19.0 minimum. The module has been installed from its zip and run on 19.0.4, 20.0.4, 21.0.4, 22.0.5, 23.0.4 and 24.0.2 with PHP 8.2, and on 24.0.3 with PHP 8.5, with 39 tests out of 39 on each version, MariaDB. If you have any doubt about your installation, write before buying.
Dolibarr's computed field is recomputed at display time and is not stored: no sorting or filtering in lists, and the value in the list can differ from the one on the record. Here, the value is stored in an ordinary extra field. The formula is not PHP: no list of functions to set in conf.php, and a formula in error does not block saving. Native computed fields are not changed by the module.
Dolibarr's import writes straight into the database without telling the modules: the values of imported records are not computed. Then click “Recompute now” in the rule, or enable the nightly scheduled job.
Not immediately. When a linked record changes (the product of a line, the third party of a contact), the value follows at the next recompute, at the next change of the record, or every night if the scheduled job is enabled.
No. The field keeps its value, the record is saved normally, and the error (division by zero, unknown field…) is shown on the rule and noted in the Error log tab. The log keeps the last 1,000 errors.
Only Dolibarr administrators: the module's pages (rules, test, recompute, log, help) are refused to other users. The module adds no permission. Computed values are then shown like any other extra field.
It only writes into the extra fields you chose as the target of a rule. It touches no other field, and no Dolibarr file is modified. The value is written directly to the extra field table, without running Dolibarr's triggers again.
Support is provided by the person who wrote the module, at support@dolix.fr. After buying on dolix.fr, the latest version can be downloaded for two years at dolix.fr/telecharger/, with the invoice number and the email address of the order. Direct purchase is reserved for businesses and associations established in France; otherwise, write to support@dolix.fr.
Taken from the module’s ChangeLog.md file: a single source.
1.0.025 October 2026
First version: rules that compute an extra field with a formula without PHP or SQL, on products, third parties, contacts, members, proposals, orders, invoices and their lines; linked records (product, document, third party); sums, counts, averages, minimums and maximums over lines and subscriptions; computed at each creation or modification (screen, REST API) and at each change of a line or a subscription; a formula in error never blocks, error in the log; test on a record without saving; recompute by batches and nightly job (disabled by default). Interface in French, English and German.
Write to support@dolix.fr. The person who wrote the module is the one who replies.
Reply within two working days. This is not an on-call service.
To include in your message
Sold directly to businesses in France
Direct purchase, with immediate download and an invoice by email, is open to businesses and associations established in France, on the French page of this module. From elsewhere, write to support@dolix.fr.
margeparjour · v1.0.2
You see what a working day brings in before you accept the quote.
dolixdomaine · v1.0.8
A customer changes its name: its addresses move to the new domain in a single operation.
dolixmasse · v1.0.9
You change a field across a series of records without writing an SQL query.
dolixtaches · v1.0.5
A task was created in the wrong project: you move it, with its subtasks, its time spent and its documents.
dolixdoublons · v1.1.8
You find records entered twice and merge them: third parties, contacts and members.
dolixprix · v1.1.4
Your draft quotes and template invoices pick up the catalogue prices, one by one or all at once.
dolixapproche · v1.0.6
You spread freight, customs and the other costs of a shipment over the cost of products and their weighted average price.
dolixresteafacturer · v1.0.3
You see what remains to be invoiced on each customer order, line by line, in quantity and in amount excluding tax.
dolixmaj · v1.1.2
Before upgrading Dolibarr, you know how far you can go, what will stop working and what to do first. The module changes nothing.
dolixtva · v1.0.1
The mandatory VAT statement is printed on your invoices by itself: small business exemption, intra-Community supply, reverse charge, export.
dolixjustif · v1.0.1
The expense report PDF also contains its receipts, photos and PDFs, page by page: one single document to hand over.
dolixportemonnaie · v1.1.1
Your customers or members pay an amount in advance, and TakePOS spends it at each visit to the till, until it runs out.
dolixmondialrelay · v1.0.2
You choose the recipient's Point Relais® or Locker on the shipment, and the module creates the Mondial Relay label with your Sendcloud account.
dolixdlc · v1.0.1
You see in time the lots in stock whose sell-by or eat-by date is near or past, and you can prevent the validation of a shipment that contains a lot past its sell-by date.
dolixhabillage · v1.0.3
Make TakePOS look like a modern till: category tabs, large product grid, basket on the right, Charge button, trade looks or your logo colours.
dolixtags · v1.0.1
The tags of your proposals, orders, invoices, third parties, contacts, products and projects are shown in colour in a column of the list, without opening each card.
dolixcotisations · v1.0.4
A membership fee for each member, and all subscriptions renewed at once, with invoice, payment and email.
dolixconsignes · v1.0.2
You see how many returnable kegs, crates or pallets each customer holds, what those deposits are worth, and which ones have not come back in time.
dolixdepotvente · v1.0.4
For each consignor, you see what was sold and your commission, and the statement prepares the invoices as drafts.
dolixblgroupe · v1.0.3
One single PDF delivery note for several shipments of the same customer, signed only once.
dolixdernierprix · v1.0.2
You pick a product on a proposal, order or invoice: the last price and discount granted to that customer are shown, and applied in one click.
dolixmultibarcode · v1.0.1
Several barcodes for one product: supplier code, old code, in-store label, pack code. Scanned in TakePOS, each code adds the product to the ticket with its quantity: the code of a pack of 6 adds 6 units.
dolixretrait · v1.0.2
The customer comes to collect a pre-order: one click in TakePOS copies it into the ticket, and after payment the order is classified billed, even if the weight changed.
dolixcloture · v1.0.0
Bank deposits, withdrawals to the safe, cash in and cash expenses recorded from TakePOS, a count by notes and coins, and the discrepancy booked so that the cash account matches the drawer.
dolixoss · v1.0.0
For your sales of goods to consumers in other EU countries: the VAT rate of the customer's country, found from the product's customs code and the European Commission's official rates, draft invoices fixed in one click, tracking of the €10,000 threshold and the quarterly OSS return.
dolixshortcuts · v1.0.0
Ctrl+S (Cmd+S on Mac) saves the record you are filling in, without scrolling down to the button. g then a letter opens third parties, proposals, orders, invoices or products. ? shows the help.
dolixgcontacts · v1.0.0
Dolibarr contacts and Google Contacts synced both ways, for each user. Only the contacts with the “Dolibarr” label in Google are involved, and a field changed on both sides is settled by the rule you chose.
dolixcoop · v1.0.0
For cooperative and community grocery stores: shelf labels with the price per kilo or per litre, the customer's membership status in the TakePOS checkout, a simplified home page and menu for volunteers, a quick inventory on the phone.