Skip to main content

MGCEarmarkAccountResolutionTmp

One answer from MGCEarmarkAccountResolver - the account it resolved, or the gap it named - flattened for a dialog.

Fields​

NameTypeMandatoryDescription
MovementTypeMGCEarmarkMovementTypeNoThe Earmark movement this row supplies accounts for. Only the five account-bearing movement types have rows - accrual, accrual reversal, claim, claim reversal and claim approval. The other three are refused: adjustment and return reversal resolve through the accounts of the movement they compose or reverse, and claim approval reversal posts through the claim approval row with its sign inverted, so none of them has a posting key of its own.
OffsetSideNoYesIdNoWhether this row is the movement's offset side rather than its account side. Every account-bearing movement type resolves twice, once per side, and the two can fail independently - a claim approval always resolves the counterparty on its account side while its offset side continues through the posting profile normally - so a grid that showed one row per movement type would hide half the answer. The value is the resolver's own checkOffsetSide, not a shape this dialog imposes.
PostingTypeMGCEarmarkPostingTypeNoThe Earmark posting type this row supplies an account for - accrual, accrual offset, claim or claim offset on the customer side, plus the vendor-side types the vendor package registers into the same extensible enum. The posting type is what tells the two sides of a movement apart, and it is the first field of the row's unique key, so one item and account pair can carry a different account for each type. Accrual is the first value and the one an implementer configures first; there is no blank or none posting type, because a profile row that named no posting type would answer for nothing.
ScopeRecIdRefRecIdNoThe record identifier of the targeting row whose scope this answer was resolved for, when the deal resolves its accounts through the posting profile. A deal targeting three item groups gets three answers per movement type, because the profile is walked in the item and account grammar and only the uncovered scope needs a row added. Blank when the answer does not depend on a scope - a deal-nominated account, a counterparty account or a parent-derived movement.
OutcomeIntegerNoWhich of the resolver's four answers this row carries, as the numeric constant MGCEarmarkAccountResolver pins: gap, resolved, counterparty or parent-derived. It is stored as the resolver's own constant rather than mirrored into a second enum so that there is one vocabulary for the concept and nothing to keep in step. Zero is the gap, and that is the safe zero: an unset result shows nothing rather than inventing an account. Counterparty means the account is the customer's or vendor's and is held by the caller, so no ledger account is rendered; parent-derived means the movement resolves through the rows of the movement it composes or reverses and has none of its own, which is an instruction to ask again rather than a report that something is missing.
ResolvedNoYesIdNoWhether an account was determined for this side of this movement. Cleared means the Message column names the missing setup, in the exact words the posting path will use if this deal ever posts. Fixing everything this dialog names is sufficient, and that is a structural guarantee rather than a promise: the answer comes from the same resolver static the movement engine calls, with no test flag and no second code path.
LedgerDimensionLedgerDimensionDefaultAccountNoThe record identifier of the resolved ledger account combination, carried so the answer can be acted on programmatically. It is not a value to show a person - the Account column holds the rendered display value for that - and it is blank on the counterparty and parent-derived outcomes, where there is no ledger account to render. Earmark never reads the native inventory posting setup for this; both the customer and the vendor side resolve through the Earmark posting profile.
AccountDisplayMGCEarmarkNaturalKeyNoThe resolved account as an accountant reads it, taken from the standard ledger dimension display value for the account record this row resolved. It is rendered, never interpreted: this dialog reads the display value and copies it, and it does not parse, reformat or abbreviate the account string. Blank wherever there is no ledger account - on a counterparty outcome, on a parent-derived movement, and on any row where the resolver named a gap instead.
SourceTableIdRefTableIdNoWhich table the winning account came from - the deal's own posting rows on the deal-nominated path, or the Earmark posting profile on the profile path. Stored beside the source row identifier so that an operator who disagrees with an answer can open the exact row that produced it, rather than reproducing the ladder by hand. Blank when nothing was resolved.
SourceRecIdRefRecIdNoThe record identifier of the row that supplied the winning account, within the table the Source table column names. Together the two answer the question a resolved row always provokes next - not only which account, but which piece of setup said so - and they are what make a disagreement about an account a five-second look rather than an argument.
MessageMGCEarmarkReasonNoteNoThe named gap, in the exact words the posting path will use - for example, no Earmark posting profile row for claim offset, item group CHILLED, customer group KEY. One function in the resolver produces this sentence for every surface that shows it, so Validate accounts, Test account resolution, the Posting profile incomplete tile and the accrual engine's execution exception are word-for-word identical and cannot describe the same missing row differently. This dialog copies the sentence and never composes one. An unresolvable account is a configuration gap, not an error on a document: at posting time the same gap raises an execution exception and lights a setup-gap tile and posts nothing - never a suspense posting, and never a failure on the native document.