Hi, I need to make some adjustments in the calculation of the totals in a sales order, I've been debugging and noticing that the container displayFields contains all the values that I need to change (amount, discount, percent, etc) this in the method:
Classes\TradeTotals\displayFields
For example, I am able to recalculate the discount, but no matter what I do, in that method, at this point:
case TradeTotals::posEndDisc() : displayFields = conpoke(displayFields, TradeTotals::posEndDisc() , this.totalEndDisc());
I always get the old discount. Where do I have to set my new discount in order to see it properly in the sales order summary?
Thanks!
*This post is locked for comments
I have the same question (0)