7.0.0-dev.126
Product Model - Fixes to datedValue
Background
It was possible for datedValue entries to be created without a date or a value.
What is being released?
These changes fix issues with how datedValue elements are created:
- Function
UpdateDatedValue- The cardinality of the
changeAmountandeffectiveDateinputs have been updated to be mandatory. This preventsdatedValueentries from being created without a date or a value. - The creation of the
newdatedValuesoutput has been streamlined by callingUpdateAmount.
- The cardinality of the
- Function
UpdateDatedValues- The same changes that were made to
UpdateDatedValuehave been made to this function too.
- The same changes that were made to
- Function
UpdatePriceAmountForEachMatchingQuantity- The setting of
changeEffectiveDateandcontainsEffectiveDatehave been moved to before the setting ofchangeAmount. - When setting
changeAmount, the existence ofchangeEffectiveDateis now tested, aschangedAmountshould not be set if a date is present. - When setting
updateDatedValuesthe existence ofchangeEffectiveDateis also now tested, asnewdatedValuesshould only be set if a date is present.
- The setting of
- Missed changes from PR 4693
Review Directions
Changes can be reviewed in PR: #4795