The logic for retrieving prices in the price method has been simplified by removing an unnecessary ProductCatalog reference check.
extend public double price(DsiPData data) { ... if (data and prices and prices.seq.any) { Old: if (ProductCatalog prdCat = data.prdCatalog()) { if (PricelistType pricelist = data.pricelist()) { ... } } return -0.0001; } return 0.0; }
Old:
ProductCatalog (data.prdCatalog()) before resolving the PricelistTypeProductCatalog was found, the logic would not proceed to pricing.New:
ProductCatalog check has been removed. PricelistType exists. addPriceFactors.