dolibarr icon indicating copy to clipboard operation
dolibarr copied to clipboard

Script to calculate invoice totals from invoice lines

Open vdegrandpre opened this issue 9 months ago • 0 comments

Feature Request

When importing data from legacy system, I want to have a tool to calculate the facture totals after importing facture and facuredet objects to avoid complexity of ETL scripting.

Use case

Using an ETL tool to import data exported in CSV from legacy system to Dolibarr, import process leaves the facture with totals 0, because facturedet created after.

Suggested implementation

A successful scenario is to run a Dolibar script that calculate total amounts and taxes on facture that have invoice line totalizing amounts greater than zero.

Suggested steps

Done.

vdegrandpre avatar Apr 30 '24 22:04 vdegrandpre