Package net.pricefx.server.dto
package net.pricefx.server.dto
Typed records that describe price list items, product references and tiered values.
A logic uses these records to work with three kinds of data. It reads the items of a product in approved price lists, with header information from their price list. It finds the Quote and Rebate Agreement line items that reference a set of products. It works with the tiers of a multi-tier input, where each tier is a target and a value.
// the items of one product in approved price lists, with price list header information
def items = api.findApprovedPricelistItems("MB-0001")
// the Quote line items that reference these products
def references = api.getProductReferences("Q", ["MB-0001", "MB-0002"] as Set)
Reference
SummaryCalculableObjectItemis a price list item with header information from its price list. It comes fromPublicGroovyAPI.findApprovedPricelistItems(String).ProductReferenceRecordis a Quote or Rebate Agreement line item that references a product, with the ID and label of its document. It comes fromPublicGroovyAPI.getProductReferences(String, java.util.Set).TieredValueholds the tiers of a multi-tier input, each a target and a value.TieredValue.fromMap(java.util.Map)builds one from a map of targets to values.
-
ClassesClassDescriptionA DTO that describes a product referenceThis class acts as a DTO for PricelistItems that are enriched by some price list header information.