AccrualTransId | MGCEarmarkAccrualTransId | Yes | The 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. |
ParentAccrualTransId | MGCEarmarkAccrualTransId | Yes | The 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. |
AccrualInstanceId | MGCEarmarkAccrualInstanceId | Yes | The identifier of this commitment, drawn from the accrual instance number sequence when the instance was created. It is the readable key every downstream surface quotes - the accrual transaction chain, the claim statement, the reconciliation tie-out and the migration certificate - and it is the primary key of the accrual instance data entity, so it survives an export, a lake load and a migration where a record ID would not. It is assigned once and never changes. |
DealId | MGCEarmarkDealId | No | The readable identifier of the deal this commitment came from - the other half of the deal reference and the half that survives an export, a data load and a migration. It is completed from the reference on insert when a caller left it blank, so the pair can never be half-filled. |
CounterpartyType | MGCEarmarkClaimCounterpartyType | No | Whether the counterparty on this commitment is a customer or a vendor. It is stamped by value at creation and is what the claim packages key their worklists and statements on. The claims package owns what the value means; the accrual engine only carries it. |
CounterpartyAccount | MGCEarmarkAccountRelation | No | The account this commitment is owed to or owed from - the INVOICE account, not the delivery or ordering account, because it is the invoice account that a credit is raised against and that a claim statement is addressed to. It is frozen at creation, so a later change of invoice account on the customer or vendor master does not move money that has already been committed. |
InventTransId | InventTransId | No | The readable inventory lot identifier of the anchor - the other half of the origin reference and the half that survives an export and a migration. It is completed from the origin on insert when a caller left it blank, and a caller that supplied one disagreeing with the origin is refused, because one of the two would then be a lie and there is no way to tell which. |
ReferenceCategory | MGCEarmarkSourceRefCategory | No | What kind of document line this commitment sits on - a sales line or a purchase line. It is stored as a readable category rather than as an internal reference type so that an export names the thing it is talking about, and it is the leading column of the index the order-line factbox and the line-level inquiry read through. |
ReferenceId | MGCEarmarkNaturalKey | No | The readable identifier of the document line this commitment sits on - the sales order number or purchase order number with its line. Together with the source document type it is how a person, a report or an integration finds the commitment from the order rather than from the inventory lot. |
MovementType | MGCEarmarkMovementType | No | What 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. |
Origin | MGCEarmarkMovementOrigin | No | Where 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. |
State | MGCEarmarkAccrualTransState | No | Where 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. |
PostingStatus | MGCEarmarkAccrualPostingStatus | No | Whether 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. |
AmountCur | MGCEarmarkAccrualAmount | No | The 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. |
CurrencyCode | CurrencyCode | Yes | The 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. |
AmountMST | MGCEarmarkAccrualAmountMST | No | The 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. |
ExchRate | ExchRate | No | The 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. |
ExchRateDate | TransDate | No | The 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. |
PostingDate | TransDate | Yes | The 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. |
Qty | MGCEarmarkDealQty | No | The 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. |
QtyUnit | UnitOfMeasureSymbol | No | The 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. |
JournalNum | LedgerJournalId | No | The 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. |
Voucher | Voucher | No | The 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. |
LedgerAccount | DimensionDisplayValue | No | |
OffsetLedgerAccount | DimensionDisplayValue | No | |
SourceDocumentType | MGCEarmarkSourceDocType | No | Which 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. |
PackingSlipId | PackingSlipId | No | The 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. |
InvoiceId | InvoiceId | No | The 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. |
ProductReceiptId | ProductReceiptId | No | The 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. |
ReturnPackingSlipId | PackingSlipId | No | The 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. |
CreditNoteId | CustCreditNoteId | No | The 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. |
ItemId | ItemId | No | The 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. |
InventDimId | InventDimId | No | The 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. |
ReasonCode | ReasonCode | No | The 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. |
ReasonNote | MGCEarmarkReasonNote | No | The 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. |
Actor | UserId | Yes | The 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. |
AutomationWrite | NoYesId | No | Whether 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. |
ReturnAfterClaimFlag | NoYesId | No | Whether 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. |
ClaimReference | MGCEarmarkClaimLineRef | No | The customer-facing reference of the claim line that claimed this accrual transaction, or blank where the transaction has not been claimed. It is resolved on read from the claim line and is not a column on the accrual chain: the claims package adds this reading of the chain without altering a single column the accrual engine writes, which is what lets a claim be generated, reversed and re-generated without the accrual transaction it came from ever being rewritten. A transaction carries at most one claim line, structurally, so this reading is single-valued rather than a list. |
ClaimStatus | MGCEarmarkClaimStatus | No | The status of the claim that claimed this accrual transaction, or blank where the transaction has not been claimed. Like the claim reference beside it, it is resolved on read from the claim line rather than stored on the accrual chain, so that the chain stays the immutable record of money that reached the general ledger while the claim side moves through its own lifecycle. Reading it as open, pending approval, approved or reversed tells a reconciler why an accrued amount is or is not yet a counterparty credit, which is a question the accrual chain alone cannot answer. |