Skip to main content

MGCEarmarkAccrualTransStaging

The data-management staging table behind MGCEarmarkAccrualTransEntity, the read-only accrual chain entity.

Fields​

NameTypeMandatoryDescription
DefinitionGroupDMFDefinitionGroupNameYes
ExecutionIdDMFExecutionIdYes
IsSelectedDMFIsSelectedNo
TransferStatusDMFTransferStatusNo
AccrualTransIdMGCEarmarkAccrualTransIdNoThe identifier of a single accrual transaction, which is one movement produced by the movement engine: an accumulation, a reversal, a claim, a claim reversal, a claim approval, an adjustment or a return reversal. It is allocated from the Accrual transaction ID number sequence, with a generated fallback while sequences are unconfigured. Every transaction points at its parent, and because reversals and downstream movements take their amounts from the parent rather than recalculating them, a chain identified by these IDs always nets to exactly zero. Implements requirements C5 and C6.
ParentAccrualTransIdMGCEarmarkAccrualTransIdNoThe identifier of a single accrual transaction, which is one movement produced by the movement engine: an accumulation, a reversal, a claim, a claim reversal, a claim approval, an adjustment or a return reversal. It is allocated from the Accrual transaction ID number sequence, with a generated fallback while sequences are unconfigured. Every transaction points at its parent, and because reversals and downstream movements take their amounts from the parent rather than recalculating them, a chain identified by these IDs always nets to exactly zero. Implements requirements C5 and C6.
AccrualInstanceIdMGCEarmarkAccrualInstanceIdNoThe identifier of an accrual instance, which is the frozen, by-value commitment written when a deal is accepted onto an order line, when a vendor-shape or mirror instance is created, or by the manual instance action. It is allocated from the Accrual instance ID number sequence, with a generated fallback while sequences are unconfigured. The instance ID is stamped on every accrual transaction, journal register row and claim line descended from the instance, so a movement can be traced back to the commitment that authorized it without re-reading the deal. Implements requirement C1.
DealIdMGCEarmarkDealIdNoThe 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.
CounterpartyTypeMGCEarmarkClaimCounterpartyTypeNo
CounterpartyAccountMGCEarmarkAccountRelationNoThe 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.
InventTransIdInventTransIdNo
ReferenceCategoryMGCEarmarkSourceRefCategoryNoWhich kind of document line an accrual instance was created from - a sales line or a purchase line. It is stored beside the readable reference ID so that the pair identifies the originating line without a join, and so that the anchor survives an export, a data-management load and a migration. The instance's real anchor is the inventory transaction origin, which is stable across partial-delivery splits; this pair is the human-readable half of that anchor.
ReferenceIdMGCEarmarkNaturalKeyNoThe 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.
MovementTypeMGCEarmarkMovementTypeNo
OriginMGCEarmarkMovementOriginNo
StateMGCEarmarkAccrualTransStateNo
PostingStatusMGCEarmarkAccrualPostingStatusNo
AmountCurMGCEarmarkAccrualAmountNoA 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.
CurrencyCodeCurrencyCodeNo
AmountMSTMGCEarmarkAccrualAmountMSTNoThe accounting-currency counterpart of an Earmark deal money amount. It extends the standard accounting-currency amount type so that it inherits currency formatting and precision. It is stored beside the transaction-currency amount and the rate that produced it, so that a movement can be reconciled to the general ledger in both currencies without re-deriving a rate that may since have changed. Implements requirements C11 and C19.
ExchRateExchRateNo
ExchRateDateTransDateNo
PostingDateTransDateNo
QtyMGCEarmarkDealQtyNoA 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.
QtyUnitUnitOfMeasureSymbolNo
JournalNumLedgerJournalIdNo
VoucherVoucherNo
LedgerAccountDimensionDisplayValueNo
OffsetLedgerAccountDimensionDisplayValueNo
SourceDocumentTypeMGCEarmarkSourceDocTypeNo
PackingSlipIdPackingSlipIdNo
InvoiceIdInvoiceIdNo
ProductReceiptIdProductReceiptIdNo
ReturnPackingSlipIdPackingSlipIdNo
CreditNoteIdCustCreditNoteIdNo
ItemIdItemIdNo
InventDimIdInventDimIdNo
ReasonCodeReasonCodeNo
ReasonNoteMGCEarmarkReasonNoteNoThe 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.
ActorUserIdNo
AutomationWriteNoYesIdNo
ReturnAfterClaimFlagNoYesIdNo
ClaimReferenceMGCEarmarkClaimLineRefNoThe reference a customer quotes back for one line of one claim, composed as the claim id, a hyphen and the line number. It is built in exactly one place - the claim reference function - because the journal text, the statement, the native customer transactions column, the accounts payable proposal text and the refund proposal line text all show it, and five surfaces spelling it differently is a support incident. The line number half is immutable once the line exists, because this string has already been printed.
ClaimStatusMGCEarmarkClaimStatusNo