Contract Price Record (CPR)
In a Contract Agreement, you have the flexibility to define conditions for a set of products and customers to establish guidelines or net prices. The Contract Price Record entity allows us to convert a contract line item condition (which is applied potentially to multiple products and multiple customers) into individual Contract Price Records for each product and customer. The Contract Price Record acts as a repository for these detailed breakdowns, storing prices specific to each product and customer.
Fields
uniqueName – A generated identifier for the record. Together with sourceId and lineId, it forms a unique constraint.
sourceId – The unique name of the contract document to which it belongs.
lineId – The line number of the contract line item to which it belongs.
name – A name assigned for the record when it is created in the logic.
label – Contains the label of the ContractTermType used. It is set when the Contract Price Record is generated in the Promotions module.
priority – An integer representing the priority of the record. Useful when multiple records overlap (e.g., valid on the same day, with the same productGroup and customerGroup). The priority must be set on the contract line item.
attribute1..30 – Values calculated and stored by the contract item logic during the creation of the Contract Price Record.
attributeExtension – Values calculated and stored by the contract item logic during the creation of the Contract Price Record.
status – See PriceRecordStatus.
externalRef – External reference number, a copy of the External Reference from the Contract header.
validAfter – The first date of validity for the conditions stored on the record.
expiryDate – The last date of validity.
sku – SKU of the product for which results are kept in the record. A record will use either SKU or productGroup, but not both.
customerId – ID of the customer for whom results are kept in the record. A record will use either customerId or customerGroup, but not both.
productGroup – Group of products for which results are stored in the record. A record will use either SKU or productGroup, but not both.
customerGroup – Group of customers for whom results are stored in the record. A record will use either customerId or customerGroup, but not both.
Found an issue in documentation? Write to us.
Â