MGCEarmarkDealResolutionTmp
One row of what MGCEarmarkDealResolver::resolve just answered, flattened for a grid.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
DealRecId | RefRecId | No | The record identifier of the deal this row is about, carried so that Open deal can navigate to it without the dialog re-deriving which deal it meant. It is the value MGCEarmarkDealResolver::resultDeal returned for this row and is never looked up or recomputed here. A record id alone is meaningless in an export, which is why the deal's own ID travels beside it in the Deal ID column; the record id is the join, the deal ID is what a person reads. |
DealId | MGCEarmarkDealId | No | The identifier of the Earmark deal. It is allocated from the Deal ID number sequence when one is configured and typed by the author when one is not, it is quoted on every claim statement and cited by every accrual instance the deal produces, and it cannot be changed once the deal exists. |
Name | MGCEarmarkDealName | No | The readable name of a deal or a deal group, in the words the person reading a list, a report or a claim statement will recognize. One hundred characters is long enough for a customer's own program naming without inviting a free-text note; the explanation of why a deal was ended or amended belongs on the reason note, not here. The name is a title field, so it is what the record is called wherever it appears beside its identifier, and it is one of the few values an approved deal may still change - and then only through an amendment. Implements requirements A3 and A14. |
QualifyingTarget | RefRecId | No | The record identifier of the one targeting row that won for this deal - the row with the highest specificity rank, with ties broken on lower priority, then later effective-from, then row creation order. Ranking is a comparator WITHIN a deal and never eliminates a deal: every approved deal with a qualifying row appears in this grid, and deals stack. Carrying the winning row's identity is what lets an operator who disagrees with an answer open the exact row that produced it rather than reading the deal's whole targeting tab and guessing. |
SpecificityRank | MGCEarmarkSpecificityRank | No | The row's own specificity, computed from its four axes and stored so that the qualifying row recorded on an accrual instance can be compared and reported without re-deriving it. The formula is fixed and published, because other Earmark packages read this number: the item weight times a thousand, plus the account weight times a hundred, plus the dimension weight times ten, plus the unit weight - item Table 4, Group 3, Category 2, All 1; account Table 3, Group 2, All 1; a specified dimension or unit 2 against a blank one 1. A higher rank is more specific. The rank is stamped by the row itself on every write and a supplied value is discarded; comparing candidate rows, applying the tie-breaks and choosing the single winning row within a deal is the deal resolver's work and is implemented once, there. Requirement A5. |
CurrencyCode | CurrencyCode | No | The currency in which this deal's rate, thresholds and lifetime cap are expressed, and in which its accruals are held. It is part of the resolver's candidate query, so a deal never attaches to a line in another currency. |
RateBasis | MGCEarmarkRateBasis | No | |
AccrualAmount | MGCEarmarkAccrualAmount | No | The deal money per unit quantity, in the deal currency and deal unit. Used when the rate basis is Amount per unit. Its sign is the deal's sign - there is no separate sign field, so the direction of the money and the money itself can never disagree. |
AccrualAmountUnitQty | MGCEarmarkAmountUnitQty | No | The quantity the accrual amount is stated per - 1 for a per-unit rate, 100 for a per-hundredweight rate. It must be greater than zero on an amount-per-unit deal. The default comes from Earmark parameters. |
AccrualPercent | MGCEarmarkRatePercent | No | The deal money as a percentage of the base. Used when the rate basis is Percent of base. Which base is percentaged is decided by the price build-up, not here. |
FixedAmount | MGCEarmarkAccrualAmount | No | The deal money as a flat amount per qualifying transaction, in the deal currency and independent of quantity. Used when the rate basis is Fixed per transaction. |
DealUnit | UnitOfMeasureSymbol | No | The unit in which this deal's rate and its quantity thresholds are expressed. It is required: a deal with no unit is refused when it is saved.A line whose unit cannot be converted to the deal unit produces the verdict Unit not convertible rather than a silently mis-scaled accrual. |
PriceMode | MGCEarmarkPriceMode | No | |
ClaimableBy | MGCEarmarkClaimableBy | No | |
AccountSource | MGCEarmarkAccountSource | No | |
AccrualPoint | MGCEarmarkAccrualPoint | No |