MigrationBatchId | MGCEarmarkMigrationBatchId | Yes | The 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. |
DealId | MGCEarmarkDealId | Yes | The 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. |
CounterpartyType | MGCEarmarkClaimCounterpartyType | No | Whether 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. |
CounterpartyAccount | MGCEarmarkAccountRelation | No | The 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. |
OpenAmount | MGCEarmarkAccrualAmount | No | The 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. |
CurrencyCode | CurrencyCode | Yes | The currency of the open amount. It must be the deal currency. |
SourceKey | MGCEarmarkSourceKey | No | The 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. |
AccrualInstanceId | MGCEarmarkAccrualInstanceId | No | The accrual instance step M-3 created to carry this opening balance. It has no order line. Blank until the row is loaded. |
AccrualTransId | MGCEarmarkAccrualTransId | No | The 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. |
LoadedDateTime | TransDateTime | No | When step M-3 loaded this row. |
RolledBack | NoYesId | No | Yes 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. |