MGCEarmarkDealStaging
The data-management staging table behind MGCEarmarkDealEntity.
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. |
Name | MGCEarmarkDealName | Yes | 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. |
DealGroupId | MGCEarmarkDealGroupId | No | The code of the deal group a deal belongs to. It is a short code typed by the implementer rather than a value allocated from a number sequence, which is why it is twenty characters where every Earmark identifier is sixty: people read it, quote it and group reports by it. The group code is stored on the group row, on every deal that belongs to the group and on an amendment's proposed value, so a claim statement can print the group as the caption of a subtotal band without reading the group record itself. Implements requirement A3. |
DealOwner | UserId | No | |
Module | MGCEarmarkModule | Yes | |
Shape | MGCEarmarkDealShape | Yes | |
TriggerSide | MGCEarmarkTriggerSide | No | |
ValidFrom | TransDate | Yes | |
ValidTo | TransDate | Yes | |
CurrencyCode | CurrencyCode | Yes | |
TaxGroup | TaxGroup | No | |
PaymModeId | MGCEarmarkNaturalKey | No | The readable half of an Earmark dual key. Every Earmark reference to another record stores two things: the record ID, which is exact and fast, and this natural key, which is the value a person recognizes - a deal ID, a sales order and line, an inventory transaction ID, a claim ID, a voucher, a payment method or a category hierarchy name. Both are stored because a record ID on its own is useless in an export, in a data-management load, after a migration, or once the record it pointed at has been purged. Sixty characters matches the Earmark identifier width, so any Earmark key copies into it without truncation. Implements requirements A1, A17 and A18. |
AccrualPoint | MGCEarmarkAccrualPoint | No | |
PriceMode | MGCEarmarkPriceMode | No | |
DealUnit | UnitOfMeasureSymbol | No | |
RateBasis | MGCEarmarkRateBasis | No | |
AccrualAmount | MGCEarmarkAccrualAmount | No | A deal money amount in the transaction currency, which for Earmark is always the deal currency. It extends the standard currency amount type so that it inherits currency formatting, precision and rounding behavior rather than re-declaring them. Amounts are computed at full precision and rounded once, at the journal line, to the currency's precision, half away from zero; every column of this type ships beside its accounting-currency amount and the exchange rate that produced it. Implements requirements C7 and C11. |
AccrualAmountUnitQty | MGCEarmarkAmountUnitQty | No | The per-quantity divisor an amount-per-unit rate is quoted against: one means the rate is an amount per single unit, one hundred means it is an amount per hundred units - per hundredweight, which is how the first customer quotes every deal. It extends the standard quantity type so that it inherits unit behavior, display length and rounding rather than re-declaring them. It must be greater than zero, because it is a divisor. A new deal inherits the company default from the Earmark parameters and may override it. Implements requirements A1 and A7. |
AccrualPercent | MGCEarmarkRatePercent | No | A percentage rate on an Earmark deal, or on the accrual instance frozen from it, used by the percent-of-base rate basis. It extends the standard percent type so that it inherits formatting and display length. The basis the percent is applied to is the built price's base plus over-basis where one exists, otherwise the native line net amount excluding tax; the resolved basis and its source are stored on the instance so that the calculation can be reproduced. Implements requirement A7. |
FixedAmount | MGCEarmarkAccrualAmount | No | A deal money amount in the transaction currency, which for Earmark is always the deal currency. It extends the standard currency amount type so that it inherits currency formatting, precision and rounding behavior rather than re-declaring them. Amounts are computed at full precision and rounded once, at the journal line, to the currency's precision, half away from zero; every column of this type ships beside its accounting-currency amount and the exchange rate that produced it. Implements requirements C7 and C11. |
MinAccrualPerTrans | MGCEarmarkAccrualAmount | No | A deal money amount in the transaction currency, which for Earmark is always the deal currency. It extends the standard currency amount type so that it inherits currency formatting, precision and rounding behavior rather than re-declaring them. Amounts are computed at full precision and rounded once, at the journal line, to the currency's precision, half away from zero; every column of this type ships beside its accounting-currency amount and the exchange rate that produced it. Implements requirements C7 and C11. |
MaxAccrualPerTrans | MGCEarmarkAccrualAmount | No | A deal money amount in the transaction currency, which for Earmark is always the deal currency. It extends the standard currency amount type so that it inherits currency formatting, precision and rounding behavior rather than re-declaring them. Amounts are computed at full precision and rounded once, at the journal line, to the currency's precision, half away from zero; every column of this type ships beside its accounting-currency amount and the exchange rate that produced it. Implements requirements C7 and C11. |
LifetimeCap | MGCEarmarkAccrualAmount | No | A deal money amount in the transaction currency, which for Earmark is always the deal currency. It extends the standard currency amount type so that it inherits currency formatting, precision and rounding behavior rather than re-declaring them. Amounts are computed at full precision and rounded once, at the journal line, to the currency's precision, half away from zero; every column of this type ships beside its accounting-currency amount and the exchange rate that produced it. Implements requirements C7 and C11. |
MinQuantity | MGCEarmarkDealQty | No | A quantity expressed in the deal's own unit of measure. It extends the standard quantity type so that it inherits unit behavior and display length. Inventory-unit quantities are converted into the deal unit using the conversion factor snapshotted on the accrual instance when it was built; where no conversion path exists the movement yields the verdict Unit not convertible, rather than a silent mis-scale or a runtime failure. Implements requirements A7 and C7. |
MaxQuantity | MGCEarmarkDealQty | No | A quantity expressed in the deal's own unit of measure. It extends the standard quantity type so that it inherits unit behavior and display length. Inventory-unit quantities are converted into the deal unit using the conversion factor snapshotted on the accrual instance when it was built; where no conversion path exists the movement yields the verdict Unit not convertible, rather than a silent mis-scale or a runtime failure. Implements requirements A7 and C7. |
CriteriaType | MGCEarmarkCriteriaType | No | |
AllowAmountEdit | NoYes | No | |
HeadroomAlertPercent | MGCEarmarkRatePercent | No | A percentage rate on an Earmark deal, or on the accrual instance frozen from it, used by the percent-of-base rate basis. It extends the standard percent type so that it inherits formatting and display length. The basis the percent is applied to is the built price's base plus over-basis where one exists, otherwise the native line net amount excluding tax; the resolved basis and its source are stored on the instance so that the calculation can be reproduced. Implements requirement A7. |
ClaimableBy | MGCEarmarkClaimableBy | No | |
AccountSource | MGCEarmarkAccountSource | No | |
FundingVendorAccount | VendAccount | No | |
Status | MGCEarmarkDealStatus | No | |
SubmittedBy | UserId | No | |
SubmittedDateTime | TransDateTime | No | |
ApprovedBy | UserId | No | |
ApprovedDateTime | TransDateTime | No | |
EndedBy | UserId | No | |
EndedDateTime | TransDateTime | No | |
EndReasonCode | ReasonCode | No | |
EndReasonNote | MGCEarmarkReasonNote | No | The free-text note recorded beside a reason code on a governed Earmark act - ending a deal by cancel, close or abort, or submitting an amendment - and the before and after values written onto a timeline row. Earmark rides the native financial reason codes rather than inventing a vocabulary of its own, so the code says which category of reason applies and this note says what actually happened in this instance. Two hundred and fifty-five characters is deliberate: long enough to be the explanation an auditor actually reads, short enough to stay an ordinary column rather than becoming a memo field. Implements requirements A11, A14 and A17. |
WorkflowInstanceId | WorkflowInstanceId | No |