Skip to main content

MGCEarmarkAccrualTrans

The immutable accrual chain - one row for every movement of deal money that has been posted, from the first accumulation through its reversals, claims, approvals, adjustments and returns. A row is written only by the movement engine, inside the single transaction that also writes the journal, the balance and the verdicts, so there is no such thing as a half-posted movement. Once written, amounts, quantities, dimensions and document references can never change; only the chain state, the posting status, the three journal stamps and the return-after-claim flag ever move, and the state moves forward only. Rows are never deleted and are exempt from every retention policy: a movement that should not have happened is corrected by posting the movement that undoes it, which is what keeps the chain readable and what makes a reversal net to exactly zero.

Fields​

NameTypeMandatoryDescription
AccrualTransIdMGCEarmarkAccrualTransIdYesThe number-sequenced identifier of this movement, drawn by the movement engine as the movement posts. It is the stable, readable key three things depend on: the reconciliation inquiry, which quotes movements back to an accountant; the accrual event queue, which stamps the movement it produced onto the event that asked for it; and the migration from AX, whose own accrual transaction id has to land somewhere. A record id would have served the joins and none of those three, because a record id means nothing in an exported file, in a data-management load or after a migration.
AccrualInstanceRefRecIdYesThe accrual instance this movement belongs to - the frozen commitment that was created when the order line was priced, and that carries the terms the engine used. Every movement has exactly one, and it never changes. The instance is what ties the movement back to its deal, its counterparty, its source order line and the unit the quantity is expressed in; the readable instance identifier is published on the accrual transactions data entity for anyone reading this outside the database.
ParentRefRecIdNoThe movement this one descends from. It is empty only on a root - an accumulation, whether it came from a document, from a catch-up run or from a manual entry. Everything else has one, because a downstream movement takes its amount FROM its parent rather than recalculating it, and that is exactly why a reversal chain nets to zero instead of leaving a rounding residue behind. An accumulation may also carry a parent: when a claim reversal puts money back, the re-accumulation it writes is an accumulation whose parent is the claim it undoes.
MovementTypeMGCEarmarkMovementTypeNoWhat this movement does - accrue, reverse an accrual, claim, reverse a claim, approve a claim, reverse an approval, adjust, or reverse for a return. The movement type decides which journal name the instance offers, which posting profile rows are resolved, and which of the legal state transitions this movement is allowed to make. It is fixed when the movement posts and is never edited afterwards.
OriginMGCEarmarkMovementOriginNoWhere this movement came from: a document posting, a catch-up run, or a migration from a previous system. The control evaluator reads it HERE rather than on the accrual event, and the distinction is worth money: a migrated movement counts towards quantity to date, so a deal that has already reached its qualifying quantity still knows it, but it is excluded from every catch-up base, so a catch-up run cannot accrue a second time on shipments the old system already paid for. Movements loaded by the migration are the only ones ever marked Migrated, and only the migration can write them.
StateMGCEarmarkAccrualTransStateNoWhere this movement has reached in the chain. It advances forward along a fixed set of legal transitions and never returns to an earlier value: an accumulation can be reversed, claimed, adjusted, returned or settled by reference; a claimed movement can be approved or claim-reversed; an approved one can have its approval reversed. Reversed, adjusted-split, returned and claim-reversed are the ends of the line. A return against a movement that has already been claimed posts a negative accumulation as a NEW root rather than rewriting this row, which is what keeps the history of what was claimed intact. This is the only column of substance an update may move, and only along one of those transitions.
PostingStatusMGCEarmarkAccrualPostingStatusNoWhether the journal behind this movement has been posted, or is sitting in a journal waiting for someone to post it. It is orthogonal to the chain state, not a stage of it: a movement can be journal-pending at any state, and posting the journal later flips this column alone while the state stays where the chain has taken it. The Journals pending tile counts on exactly this column, so it is assigned explicitly on both paths - the auto-posting path and the leave-it-unposted path - rather than being allowed to default.
PostingDateTransDateYesThe date this movement posts on, and therefore the fiscal period it belongs to. It is set once when the movement is written and can never be changed afterwards - it is not one of the six columns an update may touch. For a movement driven by a document it is the document's own date: the day the packing slip or product receipt was physically updated, or the day the invoice was financially updated. That matters because a packing slip posted on the last day of a period and drained by the event queue on the first day of the next one must still accrue into the period the goods moved in. For a retroactive catch-up it is deliberately NOT the original document's date but the date the catch-up was processed, which is what stops a catch-up posting silently into a closed period. Do not confuse it with the exchange rate date beside it: the two coincide whenever the rate is taken on the posting date, and they stop coinciding the moment a deal uses a locked build rate.
AmountCurMGCEarmarkAccrualAmountNoThe movement amount, in the deal's currency. Amounts are computed at full precision and rounded exactly once, at the journal line, to the currency's own precision and half away from zero - so a chain of accruals and reversals nets to zero rather than to a residue of rounding differences. A downstream movement never recalculates this figure; it takes it from its parent, and where an adjustment splits a movement in two the children sum exactly to the parent because the remainder child absorbs the difference.
CurrencyCodeCurrencyCodeYesThe deal currency this movement's amount is expressed in, carried from the accrual instance. Every monetary column on this row travels as a triple - the amount in this currency, the amount in the accounting currency, and the exchange rate that produced the second from the first - so that an accrual and its reversal can be shown to net to zero in both currencies without anyone having to re-derive a rate that may since have moved.
AmountMSTMGCEarmarkAccrualAmountMSTNoThe movement amount converted into the legal entity's accounting currency, as posted. It is stored rather than derived on read, because the rate that produced it is a fact about the moment the movement posted and re-deriving it later would silently restate the ledger. The rate itself and the date it was taken from are stored beside it for the same reason.
ExchRateExchRateNoThe exchange rate that converted the deal-currency amount into the accounting-currency amount on this row. Storing the rate beside both amounts is what makes the conversion auditable years later: an accountant can reproduce the posted figure exactly, without having to guess which rate type was in force or whether the rate table has been corrected since.
ExchRateDateTransDateNoThe date the exchange rate was taken from - in practice the movement's accounting date, which is also the date the journal was posted on. Where the deal is running under the locked-rate currency policy, this is the date frozen onto the accrual instance when the price was built, not the date the movement happened, so that an accrual and every movement descended from it use one rate and net to zero in the accounting currency too.
QtyMGCEarmarkDealQtyNoThe quantity this movement was calculated on, expressed in the DEAL unit rather than the inventory unit. The conversion factor between the two was resolved and frozen onto the accrual instance when the line was priced, so a later change to the unit-conversion setup cannot restate a posted movement. Where no conversion path existed at all, the price build refused with a verdict of Unit not convertible rather than silently mis-scaling the quantity.
QtyUnitUnitOfMeasureSymbolNoThe deal unit the quantity above is expressed in, carried from the accrual instance. It is stored on the movement as well as on the instance so that an exported movement is readable on its own: a quantity without its unit is not a quantity.
LedgerDimensionLedgerDimensionDefaultAccountNoThe main account and financial dimensions this movement was posted to, exactly as resolved at posting time. Accounts are resolved through the Earmark posting profile or the deal's own nominated posting set, never through the native inventory posting setup, and the resolution is recorded here rather than re-derived, so a later change to the profile cannot restate what was posted. The accrual transactions data entity publishes it as a readable account string, because a dimension record id is built per environment and means nothing outside the one that built it.
OffsetLedgerDimensionLedgerDimensionDefaultAccountNoThe offset account and financial dimensions of this movement, as resolved and posted. Together with the account above it is the whole of the movement's ledger footprint; how a reversal presents itself against that pair - by flipping debit and credit, or by flipping account and offset - is a configuration choice that must be made before any reversal can post, because an undefined presentation is a named configuration failure rather than a default.
JournalNumLedgerJournalIdNoThe general journal this movement's line was written into. It is one of the six journal names frozen onto the accrual instance when the commitment was created, chosen by movement type; a claim-approval reversal deliberately posts on the claim-approval journal name, so that a matched pair nets inside one journal instead of being scattered across two. This is one of the few columns an update may fill in, because a movement whose journal is left unposted is stamped afterwards.
JournalLineRecIdRefRecIdNoThe journal line this movement produced. It is the join that lets the accrual transaction open its own journal line, and it is stamped when the line is created - which may be after the movement itself, on the path where the journal is left for someone to post.
VoucherVoucherNoThe voucher this movement posted under. It is the accountant's way back in: given a voucher off a ledger enquiry, the voucher index on this table finds the accrual movement behind it, and from there the instance, the deal and the order line that caused it. Blank until the journal is posted, which is why it is one of the six columns an update may move.
PackingSlipIdPackingSlipIdNoThe packing slip whose posting caused this movement, where the deal accrues at shipment. It is captured after the native posting has committed, never during it, so that nothing Earmark does can refuse or delay a shipment.
InvoiceIdInvoiceIdNoThe invoice whose posting caused this movement, where the deal accrues at invoice. On the claim statement this is the column a customer recognizes, which is why it is copied onto the claim line when the claim is generated rather than joined at print time.
ProductReceiptIdProductReceiptIdNoThe product receipt whose posting caused this movement, on the purchase side of a vendor deal. It is the purchase-side counterpart of the packing slip and is populated only where the deal accrues at receipt.
ReturnPackingSlipIdPackingSlipIdNoThe return packing slip whose posting caused this movement. A return against an accrual that has not yet been claimed reverses it; a return against one that has already been claimed posts a negative accumulation as a new root and raises the return-after-claim flag, because the claim that was already made is a fact and rewriting it would lose it.
CreditNoteIdCustCreditNoteIdNoThe credit note whose posting caused this movement. A credit note without a corresponding quantity movement is the case the credits-without-quantity review worklist exists for: it may be a legitimate price correction, or it may be a credit that should never have accrued deal money, and only a person can tell the two apart.
SourceDocumentTypeMGCEarmarkSourceDocTypeNoWhich kind of document triggered this movement - a sales packing slip, a sales invoice, a product receipt, a vendor invoice, a return packing slip, a credit note, a manual entry or a migration load. It names which of the document reference columns below is the meaningful one for this row, and it is what an auditor reads first when asking why a movement exists at all.
RefTableIdRefTableIdNoThe table that holds the order line this movement ultimately came from, carried forward from the accrual instance at the moment the movement was written. Stored on the movement as well as on the instance so a claim line reaches the source line directly, without walking back through the instance. Blank when the instance has no source line.
RefRecIdRefRecIdNoThe record id of the order line this movement came from, carried forward from the accrual instance when the movement was written. Snapshotted rather than derived, so the movement still names its origin after the instance has been withdrawn or the deal closed. Blank when the instance has no source line.
ItemIdItemIdNoThe item the movement was calculated on, copied from the source document line. It is stored on the movement rather than reached through the instance because the accrual chain is exported and analyzed on its own, and an item code is the axis almost every such analysis groups by.
InventDimIdInventDimIdNoThe inventory dimension combination of the source line - site, warehouse, batch, serial and the rest - as it stood when the movement posted. It is recorded for traceability and for analysis; no Earmark rule reads it, and in particular no inventory status transition is ever a trigger for an accrual.
ReasonCodeReasonCodeNoThe reason code for this movement, taken from the shared reason-code table and restricted to the codes made applicable to Earmark. It is mandatory on every movement a person initiates - a manual accrual, a reversal, an adjustment - because a movement of money that somebody chose to make needs to say why on the row itself rather than in a note somewhere else. Automatic movements carry no reason code: the document that caused them is the reason.
ReasonNoteMGCEarmarkReasonNoteNoThe free-text note accompanying the reason code, for the part of the explanation a code cannot carry. Like everything else on this row it is frozen at insert: the note describes why the movement was made, and editing it afterwards would be editing history.
ActorUserIdYesThe user who executed this movement - always the real executing user, including for an engine run, a batch and the event-queue drain, because the question an auditor asks is who ran the batch. Automation is recorded in the separate flag beside this column rather than by writing a service identity here, since collapsing the two would lose the only column that answers the audit question.
AutomationWriteNoYesIdNoWhether this movement was made by automation rather than by a person acting directly. It is a presentation fact, not an identity: the actor column still names the real user, and this flag is what tells the list page and the fact box to show the movement as an automatic one. A movement that arrives without this column named is presented as a human act, which is the reading that invites scrutiny rather than deflecting it.
ReturnAfterClaimFlagNoYesIdNoWhether a return arrived against this movement after it had already been claimed. The flag is set on the claim and mirrored here so the return worklist can be built with a single join. It changes nothing about the movement itself - a return after a claim posts a negative accumulation as a new root and never rewrites the claimed row - but it is what puts the pair in front of somebody who can decide whether the claim needs adjusting.
SettlementSourceMGCEarmarkSettlementSourceNoWhether this transaction settled through the standard AP proposal or through settle-by-reference against a posted vendor invoice. Owned by the vendor-shapes package (EAR-005); stamped once at insert and never updated.