MGCWardenSalesGovThresholdEntity
One threshold line of a sales governance policy version: the measure, the customers and items it applies to, the threshold value and a priority. A policy without thresholds governs nothing, so import these with WardenSalesGovPolicies, header first. Lines cannot change while their version is active or pending activation.
- Public collection name:
WardenSalesGovThresholds
- Primary key:
PolicyCode, PolicyVersion, Measure, CustomerSelector, CustomerValue, ItemSelector, ItemValue
Fields
| Name | Type | Mandatory | Description |
|---|
PolicyCode | MGCWardenPolicyCode | Yes | Guard control policy identifier. One active version per policy code. |
PolicyVersion | MGCWardenPolicyVersionNum | No | Effective-dated policy version number; read-only counter incremented by New version. |
Measure | MGCWardenSalesMeasure | No | |
CustomerSelector | MGCWardenScopeSelector | No | |
CustomerValue | str | No | Customer account (Table) or customer group (Group); blank for All. |
ItemSelector | MGCWardenScopeSelector | No | |
ItemValue | str | No | Item number (Table) or item group (Group); blank for All. |
ThresholdValue | real | No | Value at which the measure trips governance: a percent for margin and discount measures; for credit exposure and order value, an amount in the legal entity's accounting currency, into which every document is converted before comparison. |
Priority | int | No | Tie-break among equally specific threshold lines; lower wins. Two lines of one version for the same measure at the same customer and item scope cannot share a priority: the second is refused when it is saved. |
Mappings
| Entity field | Data source | Field |
|---|
PolicyCode | MGCWardenSalesGovPolicy | PolicyCode |
PolicyVersion | MGCWardenSalesGovPolicy | PolicyVersion |
Measure | MGCWardenSalesGovThreshold | Measure |
CustomerSelector | MGCWardenSalesGovThreshold | CustomerSelector |
CustomerValue | MGCWardenSalesGovThreshold | CustomerValue |
ItemSelector | MGCWardenSalesGovThreshold | ItemSelector |
ItemValue | MGCWardenSalesGovThreshold | ItemValue |
ThresholdValue | MGCWardenSalesGovThreshold | ThresholdValue |
Priority | MGCWardenSalesGovThreshold | Priority |