On the opportunities product page, when I select a product, the price is filled in automatically. However, I've deleted the business rules and scripts on the opportunity product page.
My problem is that this price includes tax, even though the PriceWithTaxes parameter is unchecked in the system settings.
I've set up a script to enter the price excluding tax but from time to time it's the price including tax that appears (probably an asynchronism problem).
I'd like to know where the script that enters the price of the opportunity products on the page is and how I can change the behaviour.
Finally we found the problem: the OpportunityProductPageV2 source page in the Opportunity package contains a method that calculates the price of the product including VAT: calculatePrice.
I've overridden the method and the problem is solved.
I thought that creating the OpportunityProductPageV2 page in the Custom package replaced the view model, but in fact it's an extension.
Finally we found the problem: the OpportunityProductPageV2 source page in the Opportunity package contains a method that calculates the price of the product including VAT: calculatePrice.
I've overridden the method and the problem is solved.
I thought that creating the OpportunityProductPageV2 page in the Custom package replaced the view model, but in fact it's an extension.