pdt256/dolibarr — comment on commit 949961feb66bd2b055824ee52d41097da70c0b7d
File:  line 0
By eldy:

Introducing this will add another bug (total will not match detail).
So correct fix must be done by completing empty part of code found some line later with content

// TODO
if ($roundingadjust)
{
// For each vatrate, calculate if two method of calculation differs

// If it differs
if (1==2)
{
// Adjust a line and update it

}
}

The goal is to calculate rounding each vatrates with second method. And if totals with first method differs, we adjust detail of lines. To avoid database difference between total of invoice and total of lines, we must work like this. Also this must be an "option" as some countries need to have only total of rounding details and not rounding of total.