Skip to main content

MGCEarmarkAccrualInstance

A frozen commitment: one Earmark deal's terms, taken by value onto one inventory transaction origin at the moment the line was priced, and never re-read from the deal afterwards. The instance is what the accrual engine posts money against, so it carries everything the engine needs and nothing it must look up - the rate and its basis, the per-transaction floor and ceiling, the accrual point, who may claim the money, where the accounts come from, the deal-to-inventory unit conversion factor, the built base and over-basis price and the six journal names. Terms are frozen because a customer quoted a price is owed that price: an amendment approved next week restates future commitments, never this one. The deal's control set - lifetime cap, quantity thresholds, criteria type - is the opposite and is deliberately not frozen: it is read live through the locked balance row so an approved cap change binds every instance immediately. Instances are evidence and are never deleted; a commitment retired before money moved is Withdrawn, one retired after money moved is Voided, and both stay on the table forever.

Fields​

NameTypeMandatoryDescription
AccrualInstanceIdMGCEarmarkAccrualInstanceIdYesThe 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.
StatusMGCEarmarkAccrualInstanceStatusNoWhether this commitment is still live, was withdrawn before any money moved, or was voided after it did. Only Active instances accrue: a withdrawn or voided instance is retained as evidence that the commitment existed and is skipped by the capture hook, the sweep and the control evaluator. The status moves only through the accrual instance service, which stamps the reason, the user and the moment alongside it; a direct write from a form, a job or a data load is refused, because a status that could be set from anywhere would make the reason and the actor beside it meaningless.
StatusReasonCodeReasonCodeNoThe financial reason quoted when this instance was withdrawn or voided, chosen from the reasons an implementer has marked as applicable to Earmark. It is blank on a live commitment and is what an auditor reads first when asking why a commitment stopped.
StatusReasonNoteMGCEarmarkReasonNoteNoThe free-text note recorded beside the reason code when this instance was withdrawn or voided. The code says which category of reason applied; this says what actually happened, in the words of the person who did it.
StatusChangedByUserIdNoThe user who last moved this instance's status. It is the real executing user, not the service account a batch happened to run under, so that a withdrawal made from a workspace and one made by an overnight job are told apart by who rather than by how.
StatusChangedDateTimeTransDateTimeNoWhen this instance's status last moved, in coordinated universal time. On a freshly created instance it is the moment of creation, because Active is a status the instance was given rather than one it fell into.
DealRefRecIdYesThe record reference to the Earmark deal this commitment came from. It is what joins: the balance the control evaluator locks, the targeting row that qualified the line and the deal's own terms are all reached through it. The readable deal ID is stored beside it, because a record reference is unusable in an export and meaningless after a migration. The reference is stamped at creation and never moves - a commitment belongs to the deal that made it, even after that deal has closed.
DealIdMGCEarmarkDealIdNoThe 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.
DealShapeMGCEarmarkDealShapeNoWhich of the deal shapes this commitment came from - a customer program, a supplier rebate on purchases, a purchase price build-up, a sales-triggered vendor accrual or an inventory provision. It is stamped by value and not re-read, so a commitment continues to behave as the shape it was created under even if the deal is later amended. It is what the workspace, the claim worklist and the reconciliation group by.
ModuleMGCEarmarkModuleNoWhich Earmark module this commitment belongs to - customer, vendor or inventory. Stamped by value at creation. It is the axis every module toggle is asked about: a commitment in a module whose toggle has been turned off is inert rather than deleted, and its existing evidence is untouched.
QualifyingTargetRefRecIdNoThe record reference to the deal targeting row that won when this line was resolved - the specific combination of item axis and account axis that matched. It is provenance: it is what lets an operator asking "why did this deal apply to this line?" see the exact row that answered, rather than re-running the resolver against a deal that may have been amended since.
QualifyingRankMGCEarmarkSpecificityRankNoThe specificity rank the winning targeting row carried when it won - the numeric weight that put a table-level row ahead of a group-level one and a group ahead of all. Stored so that a resolution can be explained after the fact without recomputing it, and so that a later change in the ranking formula is visible as a difference rather than silently rewriting history.
InventTransOriginRefRecIdNoThe inventory transaction origin this commitment is bound to - the anchor, and deliberately not the inventory transaction. An inventory transaction row is split when a line is partially delivered; the origin is not. Anchoring on the transaction would silently detach the commitment from the second and every later delivery of a partially delivered line, and the accrual would simply stop happening with nothing on any screen to show for it. Every capture hook, sweep and catch-up query reaches this instance through the origin.
InventTransIdInventTransIdNoThe 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.
ReferenceCategoryMGCEarmarkSourceRefCategoryNoWhat 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.
ReferenceIdMGCEarmarkNaturalKeyNoThe 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.
RefTableIdRefTableIdNoThe table that holds the order line this accrual instance was built from, stored as a table id. Paired with Source line record. Together they let a query reach the originating line in a single join, which the natural key cannot do because it identifies the document rather than the row. Blank on a manual accrual and on a migrated instance, because neither has a source line; that is expected and is not a configuration gap.
RefRecIdRefRecIdNoThe record id of the order line this accrual instance was built from. Paired with Source line table, and meaningless without it. Stored alongside the natural key rather than instead of it: a record id is useless after an export, a data migration or a company copy, so the natural key remains the reference that survives, and this pair is the one a join can follow while the data is in place.
CounterpartyTypeMGCEarmarkClaimCounterpartyTypeNoWhether 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.
CounterpartyAccountMGCEarmarkAccountRelationNoThe 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.
CurrencyCodeCurrencyCodeNoThe currency this commitment is denominated in - the deal's currency, which the pricing package has already established is also the line's currency. Every amount on this instance and every movement posted from it is in this currency; the accounting-currency figures are computed from it at posting time using the rate stored on the movement, never re-derived later.
AccrualPointMGCEarmarkAccrualPointNoWhen this commitment turns into posted money - at shipment or product receipt, at invoice, or only when someone posts it by hand. Frozen at creation, because the point is part of the agreement: moving it after the fact would either accrue twice or leave a delivery unaccrued. It is what the capture hook tests before enqueueing anything, and what the unaccrued-transaction sweep uses to decide whether a movement is late or simply not due yet.
ClaimableByMGCEarmarkClaimableByNoWho, if anyone, may claim the money this commitment accrues - nobody, the customer, or the vendor. Off-invoice commitments default to nobody, because on an off-invoice deal the price reduction IS the collection and letting the same money also be claimed would pay it twice; a per-deal override exists for terms that genuinely pay promotional money on top of the net price. Frozen at creation.
AccountSourceMGCEarmarkAccountSourceNoWhere the accounts for this commitment's postings come from - the company posting profile, or the set of accounts the deal itself nominated. Frozen at creation together with the nominated set, so that changing a deal's account source next month cannot re-point postings that have already been made.
PriceModeMGCEarmarkPriceModeNoWhether this commitment's money is grossed up into the invoiced price or taken off invoice. It is resolved by the pricing package while the line price is built and is stored here already resolved: the enum's Company default value means UNRESOLVED on an instance, never "use the company default", and an instance carrying it is refused at insert. An unresolved component would otherwise be silently grossed into the price a customer is invoiced.
DirectionMGCEarmarkAccrualDirectionNoWhether the money this commitment accrues is a liability the company owes, a receivable it is owed, or a payable it will settle. It is stamped by value at creation and drives which side of the posting profile the engine resolves. The vendor-shapes package owns what the value means; the accrual engine only carries it.
TriggerSideMGCEarmarkTriggerSideNoWhether this commitment is triggered by a sales document or by a purchase document. It is what tells the capture hook which family of postings can move it, and it is stamped by value so a deal that changes side later cannot re-aim commitments that already exist.
MirrorSideMGCEarmarkMirrorSideNoOn a mirrored deal - one that accrues a customer side and a vendor side from the same physical movement - which of the two sides this instance is. It reads Not mirrored on every instance that is not half of such a pair, which is the ordinary case and the value the column takes when nothing assigns it; that is what makes this column on its own a truthful answer to whether an instance is a mirror. There is deliberately no reference to the paired instance: the pairing is derived from the shared anchor and deal, so it can never go stale, be half-written, or point at a row that was voided. The vendor-shapes package owns what the value means.
DealUnitUnitOfMeasureSymbolNoThe unit the deal's rate is quoted in - the unit an amount-per-unit rate is per, and the unit every quantity on this commitment's movements is expressed in. It is frozen with the rate, because a rate and the unit it is quoted in are one fact and separating them silently rescales the money.
InventoryUnitUnitOfMeasureSymbolNoThe unit the inventory actually moves in on this line. It is stored beside the deal unit so that the conversion between them can be explained rather than merely applied, and so that a movement posted in a unit nobody expected is visible on the row rather than only in the arithmetic.
DealUnitFactorMGCEarmarkConversionFactorNoThe factor that converts an inventory-unit quantity into a deal-unit quantity, resolved once when the commitment was created and frozen there. Freezing it is the point: a unit of measure conversion an implementer changes next year must not restate money that has already been accrued. A blank factor is refused at insert - it means nobody worked the conversion out, not that the factor is one, and letting it through would scale every movement on this line by the wrong number for the life of the line. Where no conversion path exists at all, the commitment is refused with a named verdict rather than created and left to fail at posting time.
CatchWeightItemNoYesNoWhether the item on this line is a catch-weight item. It decides which quantity the engine accrues on when goods move: the nominal quantity ordered, or the actual weight delivered. Stamped at creation from the item, so that a later change to the item master cannot change the basis of movements already posted.
RateBasisMGCEarmarkRateBasisNoWhich of the three ways this commitment computes money - an amount per unit of quantity, a percentage of a base price, or a fixed amount per transaction. It selects which of the amount, percent and fixed columns below is the live one; the others are stored as they stood but are not read. Frozen at creation with the rest of the terms.
AccrualAmountMGCEarmarkAccrualAmountNoThe money accrued per unit-quantity of the deal unit, in the deal currency, when the rate basis is amount per unit. Read together with the unit quantity below: an amount of 2.50 per unit quantity of 12 accrues 2.50 for every twelve deal units, not for every one. Frozen at creation.
AccrualAmountUnitQtyMGCEarmarkAmountUnitQtyNoThe quantity of deal units the amount above is per. It exists because trade terms are quoted that way - so much per case of twelve, per pallet, per thousand - and forcing that into a per-single-unit rate would introduce a rounding error into the terms themselves rather than into the money computed from them. Frozen at creation.
AccrualPercentMGCEarmarkRatePercentNoThe percentage applied to the base when the rate basis is percent of base. What the percentage is taken of is decided by the percent basis source below - the built price, or the line's net amount. Frozen at creation.
FixedAmountMGCEarmarkAccrualAmountNoThe flat amount accrued once per qualifying transaction, in the deal currency, when the rate basis is fixed per transaction. It does not scale with quantity, which is what distinguishes it from an amount per unit with a large unit quantity. Frozen at creation.
MinAccrualPerTransMGCEarmarkAccrualAmountNoThe floor applied to a single movement's computed amount, in the deal currency. Clipping operates on the absolute value and re-applies the sign, so a reversal of a clipped accrual nets to exactly zero rather than leaving a residue. A movement that was raised to the floor carries a verdict saying so; it is a policy outcome, not a failure. Frozen at creation.
MaxAccrualPerTransMGCEarmarkAccrualAmountNoThe ceiling applied to a single movement's computed amount, in the deal currency. Like the floor it clips the absolute value and re-applies the sign, and a movement that was cut down to it carries a verdict saying so. This is a per-transaction limit and is not the deal's lifetime cap, which is a live control read through the balance and is not stored here at all.
AllowAmountEditNoYesNoWhether the deal permitted its computed amount to be overridden by hand on a line. Stamped by value at creation, because whether an override was permitted at the time is part of the record of what was agreed - reading it live from the deal would make a past override look unauthorised after the deal was tightened.
LifetimeCapSnapshotMGCEarmarkAccrualAmountNoWhat the deal's lifetime cap was on the day this commitment was made. THIS IS DISPLAY-ONLY PROVENANCE. THE CONTROL EVALUATOR NEVER READS IT. The live cap is read through the locked deal balance row and, through it, the deal - and that is the only route to it. The distinction matters because an approved amendment must bind every existing instance immediately: that is the whole purpose of submitting a cap change. An evaluator that read this convenient local copy would still produce arithmetic that looked entirely correct, using last month's cap, and nothing on any screen would say so. The column exists so an operator can see what the commitment was made under, and for no other reason.
MinQuantitySnapshotMGCEarmarkDealQtyNoWhat the deal's minimum qualifying quantity was on the day this commitment was made. THIS IS DISPLAY-ONLY PROVENANCE. THE CONTROL EVALUATOR NEVER READS IT. The live threshold is read through the locked deal balance row and, through it, the deal. A local copy read at evaluation time would silently ignore every approved amendment since, and the failure would be invisible because the arithmetic would still work.
MaxQuantitySnapshotMGCEarmarkDealQtyNoWhat the deal's maximum qualifying quantity was on the day this commitment was made. THIS IS DISPLAY-ONLY PROVENANCE. THE CONTROL EVALUATOR NEVER READS IT. The live threshold is read through the locked deal balance row and, through it, the deal. Stored here only so that an operator reading the instance can see the terms it was created under.
CriteriaTypeSnapshotMGCEarmarkCriteriaTypeNoWhich threshold tests the deal selected on the day this commitment was made - none, amount, quantity, or both. THIS IS DISPLAY-ONLY PROVENANCE. THE CONTROL EVALUATOR NEVER READS IT. The live criteria type is read through the locked deal balance row and, through it, the deal. Note that the lifetime cap is deliberately not criteria-selected and applies whatever this says, so a commitment showing no criteria is still capped.
BasePriceMGCEarmarkAccrualAmountNoThe base price this commitment was built over, in the deal currency and per the price unit below. It is what a percent-of-base rate is a percentage of when the percent basis source is the built price, and it is the figure a price build-up explanation starts from. Frozen at creation as part of the snapshot-on-commit.
OverBasisMGCEarmarkAccrualAmountNoThe amount built over the base price for this commitment, in the deal currency and per the price unit. Base plus over-basis is what the line was priced at; separating them is what lets a price build-up be explained line by line rather than presented as a single number nobody can decompose. Frozen at creation.
PriceUnitPriceUnitNoThe quantity the base price and over-basis are quoted per - a price of 45.00 per price unit of 100 means 0.45 each. It travels with the two price columns because a price without its price unit is not a price.
BuildExchRateExchRateNoThe exchange rate that produced the accounting-currency figures at the moment this commitment was built. It is stored beside the amounts rather than looked up again, so that a rate table corrected next quarter cannot restate a price that has already been quoted, and so that any figure in the accounting currency can be re-derived from the transaction-currency figure and this rate.
BuildRateTypeExchangeRateTypeNameNoWhich exchange rate type the rate above was taken from. Stored because a rate on its own does not say which table it came from, and reconciling an accounting-currency figure a year later needs both.
BuildRateDateTransDateNoThe date the exchange rate above was read for. With the rate and the rate type it makes the accounting-currency conversion fully reproducible from the row itself, without reference to any table that may since have changed.
PercentBasisSourceMGCEarmarkPercentBasisSourceNoWhat a percent-of-base rate on this commitment is a percentage of - the built price, or the line's net amount. The two differ whenever anything else has already come off the line, so naming which one applies is part of the agreement rather than an implementation detail. The vendor-shapes package owns what the value means; the accrual engine carries it frozen.
JournalNameAccumulationLedgerJournalNameIdNoThe general journal name every accumulation posted from this commitment is created on, resolved from the Earmark parameters at creation and frozen here. It is required on every instance and an instance without one is refused at insert, because the accumulation is the movement that posts AT the accrual point, whichever point that is. The other five names below are for movements that may never happen on this commitment, so they are not required here; their absence surfaces at journal composition as a configuration gap, with a setup-gap tile and an execution exception, and nothing posts.
JournalNameReversalLedgerJournalNameIdNoThe general journal name reversals of this commitment's accruals are created on. Frozen at creation, so a reversal always lands in the journal its accrual was expected to be netted against, even if the parameters have since been changed.
JournalNameAdjustmentLedgerJournalNameIdNoThe general journal name adjustments to this commitment's accrued position are created on. Frozen at creation.
JournalNameClaimLedgerJournalNameIdNoThe general journal name claims raised against this commitment's accrued money are created on. Frozen at creation.
JournalNameClaimApprovalLedgerJournalNameIdNoThe general journal name claim approvals are created on. It carries a second job: a claim approval REVERSAL also posts on this name rather than on one of its own. There are six journal names and seven journal types for exactly that reason - a matched approval and its reversal net each other, and scattering the pair across two journals would make that netting invisible for no benefit. Which of the two a given journal is is recorded on the accrual journal register, not inferred from the name.
JournalNameClaimReversalLedgerJournalNameIdNoThe general journal name reversals of claims are created on. Frozen at creation. Note that this is the reversal of a CLAIM; the reversal of a claim APPROVAL posts on the claim approval name above.
SettlementSourceMGCEarmarkSettlementSourceNoHow money accrued on this commitment is expected to be settled - through a proposal, or against a vendor invoice. Stamped by value at creation. The vendor-shapes package owns what the value means; the accrual engine only carries it so that the settlement path is part of the frozen agreement rather than a decision taken later.