Skip to main content

MGCEarmarkMigrationOpeningBalance

The open balance a migrated deal carried in the source system, per counterparty, that cut-over step M-3 loads into Earmark as an opening-balance accrual. Each row is loaded once, as one accrual that posts nothing to the ledger, on the batch's export date. Until the row is loaded its amount, currency and source key can be corrected by importing again, and the row can be deleted; once loaded it is the record of the money that entered Earmark at cut-over and only the load columns change.

Fields​

NameTypeMandatoryDescription
MigrationBatchIdMGCEarmarkMigrationBatchIdYesThe identifier of a cut-over migration batch, which is one ordered, idempotent run of the migration steps, each with its own validation and its own tie-out. It is allocated from the Migration batch ID number sequence, with a generated fallback while sequences are unconfigured. Because a certified tie-out cites the batch ID, the sequence may never be lowered. Implements requirement F10.
MigrationBatchRefRecIdNoThe internal reference to the batch this row belongs to. The batch identifier travels beside it, because a record reference alone is useless in an export or after a further migration.
DealIdMGCEarmarkDealIdYesThe migrated deal whose open balance this is. It must be a deal the deal migration entity loaded; a deal created or approved in this system has no legacy balance to load.
DealRefRecIdNoThe 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.
CounterpartyTypeMGCEarmarkClaimCounterpartyTypeNoWhether the balance is owed to or by a customer or a vendor. It must be the deal's own side: a customer for a customer deal and a vendor for a vendor deal. An inventory provision has no counterparty and keeps the default.
CounterpartyAccountMGCEarmarkAccountRelationNoThe customer or vendor account the balance is owed to or by: the invoice account, the same account the deal's accruals and claims use. Leave it blank for an inventory provision.
OpenAmountMGCEarmarkAccrualAmountNoThe balance the source system had accrued for this deal and counterparty and nobody had claimed, at the batch's export date. It is in the deal currency and in the sign Earmark uses for accruals: an amount owed to a customer is negative, and an amount a vendor owes is positive. It is net of the approved credits not yet settled that step M-6 loads, because those are already owed through accounts receivable or payable. It cannot be zero.
CurrencyCodeCurrencyCodeYesThe currency of the open amount. It must be the deal currency.
SourceKeyMGCEarmarkSourceKeyNoThe natural key the migrated row carried in the source system. It is half of the migration idempotency key - batch identifier plus source key - so a step that is re-run cannot load the same record twice, Retry selected reloads exactly one record, and Roll back step deletes by the same pair. It is recorded because the source identifier is the only thing a person reconciling a cut-over can look up on both sides.
AccrualInstanceRefRecIdNoThe record reference of the accrual instance step M-3 created for this opening balance. The readable instance ID is stored beside it because a record reference alone is unusable in an export or after a migration. Blank until the row is loaded.
AccrualInstanceIdMGCEarmarkAccrualInstanceIdNoThe accrual instance step M-3 created to carry this opening balance. It has no order line. Blank until the row is loaded.
AccrualTransRefRecIdNoThe record reference of the opening-balance accrual step M-3 posted for this row. The readable transaction ID is stored beside it because a record reference alone is unusable in an export or after a migration. Blank until the row is loaded.
AccrualTransIdMGCEarmarkAccrualTransIdNoThe opening-balance accrual step M-3 posted for this row. It posts nothing to the ledger, counts in the deal balance and can be claimed like any other accrual. Blank until the row is loaded.
LoadedDateTimeTransDateTimeNoWhen step M-3 loaded this row.
RolledBackNoYesIdNoYes when Roll back step on M-3 reversed this opening balance and voided its accrual instance. A rolled-back row is loaded again the next time step M-3 is loaded.