Hi,
I would like to know how this is achievable. Let me explain the situation:
- I have custom code overriding pricings on opportunityproduct.
- I also have custom code overriding quotedetail priceperunit and it matches everything with the opportunity amounts (they are the same as are all the products).
- For salesorderdetail I don't need to do any logic so I would just assume it passes the values straight from the quotedetail pricepeunit field directly to its salesorderdetail counterpart. And actually it does but it rounds the number in the DB(which has 4 decimal places) to just 2 and this will turn my total amount wrong by cents.
IE priceperunit for a random quotedetail product is 23,4568 and it gets rounded to 23,46 when I create the salesorder.
Well obviously I cant change the precision of those since they are system attributes and even tried affecting this behavior on a preupdate prestage handler but to no avail.
Can someone give me some hints on what might be happening and what I could do to solve this?
Maybe what the priceperunit formula is (since I tried changing it in the DB just for testing and it gets reverted)?
Thank you for your time.