MGCEarmarkDealBalanceStaging
The data-management staging table behind MGCEarmarkDealBalanceEntity, the read-only balance entity.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
DefinitionGroup | DMFDefinitionGroupName | Yes | |
ExecutionId | DMFExecutionId | Yes | |
IsSelected | DMFIsSelected | No | |
TransferStatus | DMFTransferStatus | No | |
Level | MGCEarmarkBalanceLevel | No | |
DealId | MGCEarmarkDealId | No | The identifier of the Earmark deal. It is allocated from the Deal ID number sequence registered on the Earmark parameters record, or typed by the deal author when no sequence is configured. The deal ID is the deal's natural key: it is quoted on claim statements, carried on every accrual instance frozen from the deal, and copied into migrated records, so it is stored on every dependent row alongside the record ID rather than being re-derived. Implements requirement A3. |
CounterpartyAccount | MGCEarmarkAccountRelation | No | The customer, vendor, customer group or vendor group that a deal targeting row or a posting profile row selects, read according to that row's account code and the deal's module. It is sixty characters, matching the item relation type rather than the twenty-character standard relation type, so that the two halves of a selector pair behave identically and neither truncates a value the other would keep. It is mandatory for every account code except All, which must leave it blank. Implements requirements A5 and A10. |
FundingRule | RefRecId | No | |
AccruedPosted | MGCEarmarkBalanceAmount | No | A money column on a maintained deal balance, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding rather than re-declaring them - a financial amount that does not extend a native amount type formats wrong and rounds wrong. Balance amounts are derived state: they are written only by the balance service, inside the movement transaction and under the global lock order, never as a post-commit step and never by periodic reconciliation. |
AccruedPending | MGCEarmarkBalanceAmount | No | A money column on a maintained deal balance, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding rather than re-declaring them - a financial amount that does not extend a native amount type formats wrong and rounds wrong. Balance amounts are derived state: they are written only by the balance service, inside the movement transaction and under the global lock order, never as a post-commit step and never by periodic reconciliation. |
Reversed | MGCEarmarkBalanceAmount | No | A money column on a maintained deal balance, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding rather than re-declaring them - a financial amount that does not extend a native amount type formats wrong and rounds wrong. Balance amounts are derived state: they are written only by the balance service, inside the movement transaction and under the global lock order, never as a post-commit step and never by periodic reconciliation. |
Returned | MGCEarmarkBalanceAmount | No | A money column on a maintained deal balance, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding rather than re-declaring them - a financial amount that does not extend a native amount type formats wrong and rounds wrong. Balance amounts are derived state: they are written only by the balance service, inside the movement transaction and under the global lock order, never as a post-commit step and never by periodic reconciliation. |
Claimed | MGCEarmarkBalanceAmount | No | A money column on a maintained deal balance, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding rather than re-declaring them - a financial amount that does not extend a native amount type formats wrong and rounds wrong. Balance amounts are derived state: they are written only by the balance service, inside the movement transaction and under the global lock order, never as a post-commit step and never by periodic reconciliation. |
ClaimApproved | MGCEarmarkBalanceAmount | No | A money column on a maintained deal balance, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding rather than re-declaring them - a financial amount that does not extend a native amount type formats wrong and rounds wrong. Balance amounts are derived state: they are written only by the balance service, inside the movement transaction and under the global lock order, never as a post-commit step and never by periodic reconciliation. |
QuantityToDate | MGCEarmarkDealQty | No | A quantity expressed in the deal's own unit of measure. It extends the standard quantity type so that it inherits unit behavior and display length. Inventory-unit quantities are converted into the deal unit using the conversion factor snapshotted on the accrual instance when it was built; where no conversion path exists the movement yields the verdict Unit not convertible, rather than a silent mis-scale or a runtime failure. Implements requirements A7 and C7. |
QuantityBelowThreshold | MGCEarmarkDealQty | No | A quantity expressed in the deal's own unit of measure. It extends the standard quantity type so that it inherits unit behavior and display length. Inventory-unit quantities are converted into the deal unit using the conversion factor snapshotted on the accrual instance when it was built; where no conversion path exists the movement yields the verdict Unit not convertible, rather than a silent mis-scale or a runtime failure. Implements requirements A7 and C7. |
PendingCatchUpValue | MGCEarmarkCatchUpValue | No | The money that has been computed but not accrued because the deal's qualifying quantity had not yet been reached, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding. It is the running sum of the amounts behind the Below qualifying quantity verdicts, and it is what sizes the catch-up run once the threshold is crossed. Movements whose origin is Migrated are excluded from the catch-up base while still counting into quantity to date. |
HeadroomAmount | MGCEarmarkHeadroomAmount | No | How much of a deal's lifetime cap is still available to accrue against, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding. Headroom is recomputed on every balance apply and again whenever an approved amendment changes the cap, because the control evaluator reads the live control set through the locked balance row rather than the instance's display-only snapshot. On a negative deal, headroom is displayed on magnitude. |
HeadroomPercent | MGCEarmarkHeadroomPercent | No | The share of a deal's lifetime cap still available, expressed as a percentage. It extends the standard percentage type so that it inherits precision and formatting. The deal control workspace sorts on this column, and the headroom warning verdict fires when it falls below the deal's alert threshold. Like the headroom amount it is recomputed on every apply and on amendment, never cached across a parameter change. |
LastAccrualDate | TransDate | No | |
RebuiltDateTime | TransDateTime | No | |
RebuildVariance | MGCEarmarkBalanceAmount | No | A money column on a maintained deal balance, in the deal currency. It extends the standard transaction-currency amount type so that it inherits currency formatting and rounding rather than re-declaring them - a financial amount that does not extend a native amount type formats wrong and rounds wrong. Balance amounts are derived state: they are written only by the balance service, inside the movement transaction and under the global lock order, never as a post-commit step and never by periodic reconciliation. |