Runtime/Behavior Changes

Changed: extend public double price(DsiPData data)

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 → New behavior

Old:

  • Previously, the method attempted to retrieve a ProductCatalog (data.prdCatalog()) before resolving the PricelistType
  • If no ProductCatalog was found, the logic would not proceed to pricing.

New:

  • The ProductCatalog check has been removed.
  • The method now only validates that a PricelistType exists.
  • If present, it retrieves the price and applies factors via addPriceFactors.