Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5689 Vistas

For instance: 0.09975 which should be 9.975% in Quebec, but currently rounds to 9.98, causing calculations to be off.

Avatar
Descartar
Autor Mejor respuesta

In order to avoid the annoying decimal rounding, open the tax in form view. In the Tax Definition tab, Tax Computation section, set the Tax Type to Python Code.

Following the example aboe, in the Python Code field, enter:

result = price_unit * 0.09975

And in the Python Code (reverse) field:

result = price_unit / 0.09975
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 24
9502
3
sept 24
21756
5
dic 24
53042
4
jul 24
10612
7
ago 23
11007