PriceDiscPolicyFindOrCreate.updatePriceSystemDiscPolicyEntry Method [AX 2012]

Updates system based policies to avoid redundancy to manual based policies.

protected PriceDiscPolicySystem updatePriceSystemDiscPolicyEntry(PriceDiscPolicySystem _priceDiscPolicySystem, RefFieldId _policyField)

Run On

Called

Parameters

_priceDiscPolicySystem
Type: PriceDiscPolicySystem Extended Data Type
A PriceDiscPolicySystem data type value that represents the record ID of a record in the PriceDiscChangePolicy table.
_policyField
Type: RefFieldId Extended Data Type
The field ID that will be removed from the policy.

Return Value

Type: PriceDiscPolicySystem Extended Data Type
A PriceDiscPolicySystem data type value that represents the record ID of a record in the PriceDiscChangePolicy table.

If a field ID exists in a system based policy, and a new manual policy is created for the same field, it should be excluded from the system based policy.

Community Additions

ADD
Show: