dolibarr
dolibarr copied to clipboard
Script to calculate invoice totals from invoice lines
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.