Skip to main content

MGCEarmarkOpeningBalanceMigrationEntity

Loads the open balance each migrated deal carried in the source system, per counterparty, for cut-over step M-3. The amount is in the deal currency and in the sign Earmark uses for accruals (an amount owed to a customer is negative), net of the approved credits not yet settled that step M-6 loads. Before the step loads a row its amount, currency and source key can be corrected and the row deleted; after, only the load columns change, and they cannot be imported.

  • Public collection name: MGCEarmarkOpeningBalanceMigrations
  • Primary key: MigrationBatchId, DealId, CounterpartyType, CounterpartyAccount

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.
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.
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.
AccrualInstanceIdMGCEarmarkAccrualInstanceIdNoThe accrual instance step M-3 created to carry this opening balance. It has no order line. 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.

Mappings​

Entity fieldData sourceField
MigrationBatchIdMGCEarmarkMigrationOpeningBalanceMigrationBatchId
DealIdMGCEarmarkMigrationOpeningBalanceDealId
CounterpartyTypeMGCEarmarkMigrationOpeningBalanceCounterpartyType
CounterpartyAccountMGCEarmarkMigrationOpeningBalanceCounterpartyAccount
OpenAmountMGCEarmarkMigrationOpeningBalanceOpenAmount
CurrencyCodeMGCEarmarkMigrationOpeningBalanceCurrencyCode
SourceKeyMGCEarmarkMigrationOpeningBalanceSourceKey
AccrualInstanceIdMGCEarmarkMigrationOpeningBalanceAccrualInstanceId
AccrualTransIdMGCEarmarkMigrationOpeningBalanceAccrualTransId
LoadedDateTimeMGCEarmarkMigrationOpeningBalanceLoadedDateTime
RolledBackMGCEarmarkMigrationOpeningBalanceRolledBack