Developer forum

Forum » Development » Setting price to 0,000001 causes error in some price properties

Setting price to 0,000001 causes error in some price properties

Mikkel Hammer
Mikkel Hammer
Reply

Hi DW,

We have a solution where we set the price to 0,00001 to act as a free product, taken from here (forum post).
But after upgrading to 9.14.3, some of the properties on our orderline.UnitPrice breaks, shown here below.


Hope you can help

Best regards,
Mikkel Hammer


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

We did make some changes related to vat calculations - seems like it could be related to that.

What happens if you set the amount to 0.001?

And what is your rounding settings under prices in settings->ecommerce->advanced?

Votes for this answer: 1
 
Mikkel Hammer
Mikkel Hammer
Reply

Hi Nicolai,

It seems that 0.0001 (3 extra zeroes) is the magic number that works, 0.00001 (4 extra zeroes) is where it begins to break.
And we have no rounding settings setup in settings->ecommerce->advanced :)

Thanks for the help

Best regards,
Mikkel Hammer

 

You must be logged in to post in the forum