Jump to content

Edit History

hakeryk2

hakeryk2


Solved

Hello community,

I found out that in ps_order_detail  values in total_price_tax_excl column are not correct because they are rounded for 2 places after delimeter even that they are stored with 6 places after delimeter.
Example: bad values is 430.890000 (4 zeros) instead of proper one 430.894309.
Column structure is set to 6 places after delimeter but script is passing rounded only to 2.

It is bad for me because some modules are taking values from this column and if they are multiplied by tax values I received some weird roundings.
Anyone knows where I can the code responsible for this? Which function or file?

Prestashop 1.6.1.23

hakeryk2

hakeryk2

Hello community,

I found out that in ps_order_detail  values in total_price_tax_excl column are not correct because they are rounded for 2 places after delimeter even that they are stored with 6 places after delimeter.
Example: bad values is 430.890000 (4 zeros) instead of proper one 430.894309.
Column structure is set to 6 places after delimeter but script is passing rounded only to 2.

It is bad for me because some modules are taking values from this column and if they are multiplied by tax values I received some weird roundings.
Anyone knows where I can the code responsible for this? Which function or file?

Prestashop 1.6.1.23

hakeryk2

hakeryk2

Hello community,

I found out that in ps_order_detail  values in total_price_tax_excl column are not correct because they are rounded for 2 places after delimeter even that they are stored with 6 places after delimeter. Example: bad values is 430.890000 (4 zeros) instead of proper one 430.894309.
Column structure is set to 6 places after delimeter but script is passing rounded only to 2.

It is bad for me because some modules are taking values from this column and if they are multiplied by tax values I received some weird roundings.
Anyone knows where I can the code responsible for this? Which function or file?

Prestashop 1.6.1.23

×
×
  • Create New...