I need to set up rounding to closest 0.05 like you see parameters under.

But when i make order this happens

error.pdf (149 KB)

And whitout rounding

Whitoutrounding.pdf (149 KB)

look at total net of tax

Limits/Precision setup

You can define limits, precisions and optimisations used by Dolibarr here

Parameter Value

Max decimals for unit prices

5

Max decimals for total prices

2

Max decimals for prices shown on screen (Add … after this number if you want to see … when number is truncated when shown on screen) 8

Size of rounding range (for rare countries where rounding is done on something else than base 10)

0.05

Modify

Examples with current running setup:

Net unit price of a product: 0.28571 x Quantity: 1 - Sales tax: 0% -> Total price (net/vat/incl tax) after rounding: 0.3 / 0 / 0.3

Net unit price of a product: 3.33333 x Quantity: 1 - Sales tax: 0% -> Total price (net/vat/incl tax) after rounding: 3.35 / 0 / 3.35

Net unit price of a product: 3.33333 x Quantity: 2 - Sales tax: 0% -> Total price (net/vat/incl tax) after rounding: 6.65 / 0 / 6.65

Net unit price of a product: 3.33333 x Quantity: 1 - Sales tax: 24% -> Total price (net/vat/incl tax) after rounding: 3.35 / 0.8 / 4.15

Net unit price of a product: 3.33333 x Quantity: 2 - Sales tax: 24% -> Total price (net/vat/incl tax) after rounding: 6.65 / 1.6 / 8.25

-Tomi-