MGCEarmarkDealTargetStaging
The data-management staging table behind MGCEarmarkDealTargetEntity.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
DefinitionGroup | DMFDefinitionGroupName | Yes | |
ExecutionId | DMFExecutionId | Yes | |
IsSelected | DMFIsSelected | No | |
TransferStatus | DMFTransferStatus | No | |
DealId | MGCEarmarkDealId | Yes | The identifier of the Earmark deal. It is allocated from the Deal ID number sequence registered on the Earmark parameters record, or typed by the deal author when no sequence is configured. The deal ID is the deal's natural key: it is quoted on claim statements, carried on every accrual instance frozen from the deal, and copied into migrated records, so it is stored on every dependent row alongside the record ID rather than being re-derived. Implements requirement A3. |
LineNum | LineNum | Yes | |
ItemSelector | MGCEarmarkItemSelector | No | |
ItemRelation | MGCEarmarkItemRelation | No | The item, item group or category that a deal targeting row or a posting profile row selects, read according to that row's item code. It is sixty characters rather than the twenty of the standard item relation type, and deliberately so: a category-targeted row stores the category name, and merchandising category names routinely run past twenty characters, so the standard type truncates them silently and the resolver then fails to match a row that looks correct on screen. Widening the type is what fixes that. The value is an item ID or an item group ID on a Table or Group row, the category name on a Category row, and blank on an All row. Implements requirements A4 and A10. |
AccountSelector | MGCEarmarkAccountSelector | No | |
AccountRelation | MGCEarmarkAccountRelation | No | The customer, vendor, customer group or vendor group that a deal targeting row or a posting profile row selects, read according to that row's account code and the deal's module. It is sixty characters, matching the item relation type rather than the twenty-character standard relation type, so that the two halves of a selector pair behave identically and neither truncates a value the other would keep. It is mandatory for every account code except All, which must leave it blank. Implements requirements A5 and A10. |
InventDimId | InventDimId | No | |
UnitSymbol | UnitOfMeasureSymbol | No | |
Priority | MGCEarmarkPriority | No | The author's own tie-break between rows that are otherwise equally specific. It is consulted only after every selector axis has been compared and found equal, so it never overrides specificity - it only decides which of two equally specific rows wins. A lower number wins. It is an ordering hint and never an arithmetic weight: the resolver reads it to order candidates and nothing multiplies by it. It must not be negative; use zero for the highest priority. Implements requirements A4 and A5. |
EffectiveFrom | TransDate | No | |
EffectiveTo | TransDate | No | |
SpecificityRank | MGCEarmarkSpecificityRank | No | How specific a targeting row is, computed from its selector axes and stored on write so that the qualifying row recorded on an accrual instance can be compared and reported later without re-deriving it. A caller-supplied value is ignored: the rank is recomputed on every insert and update, because a stored rank that disagreed with the row it describes would make the resolver's own explanation untrue. A higher rank is more specific and wins; priority breaks a tie between two equal ranks. Implements requirements A4 and A5. |