Skip to main content

Earmark data entity reference

This page lists every data entity in the Earmark model: 40 entities (24 read-only, 16 read/write), plus the fields Earmark adds to 1 standard entity. For each entity it gives the label, the OData entity set, whether the entity can be written, its Data management staging table, its primary key, its fields, and the privileges, duties and roles that grant access.

Related references: JSON services, security, installation, business processes.

Using these entities​

  • OData. GET https://<environment>/data/<entity set>. Every Earmark entity is public, and the entity set of each is listed below. A company-specific entity reads the caller's default company; add ?cross-company=true and filter on dataAreaId to read another legal entity.
  • Data management. Every entity is enabled for Data management and has its own staging table, so it can be added to an import or export project. A read-only entity can only be exported.
  • Keys. Primary keys are natural keys (IDs and codes people read) wherever the data has one, so an exported row can be found again in another environment. 7 entities include a record ID in their key, marked (record ID), because their rows have no natural key of their own (for example, timeline entries and control verdicts) or refer to a row that has none: MGCEarmarkClaimSettlementPreferenceEntity, MGCEarmarkControlVerdictEntity, MGCEarmarkDealBalanceEntity, MGCEarmarkLinePriceEntity, MGCEarmarkLinePriceComponentEntity, MGCEarmarkPriceProposalEntity, and MGCEarmarkEventLogEntity. A record ID identifies a row in one environment only. All of them are read-only, so the record ID is only ever exported.
  • Writes go through the owning table. A read/write entity writes through the Earmark table behind it, and that table's own rules refuse an invalid row. A refused row fails the load with the table's message.
  • Security. Every entity has its own view privilege, and every read/write entity has a maintain privilege. Earmark assigns privileges to duties and duties to roles, never privileges to roles directly. The Security table under each entity lists them; see also the security reference.

Reading the field tables.

  • Field is the public field name used by OData and Data management. Key fields are marked (key).
  • Type is the D365 type with its extended data type in parentheses, or the enum the field takes. The OData $metadata document gives the wire types.
  • Mandatory and Edit appear only for read/write entities. Edit is Yes (set on create and on update), Create only (set when the record is created, then locked), Update only, or No (exported, never imported). Where the entity field leaves the setting on Auto, it is taken from the table field the entity field maps to.
  • Source is the data source and field that store the value. A Computed field is calculated when the entity is read; a Virtual field is handled by the entity's own code.

Summary​

EntityAOT nameOData entity setCategoryAccessData management
Earmark parametersMGCEarmarkParametersEntityMGCEarmarkParametersParametersRead/writeYes
Earmark deal groupsMGCEarmarkDealGroupEntityMGCEarmarkDealGroupsReferenceRead/writeYes
Earmark accrual posting controlMGCEarmarkPostingControlEntityMGCEarmarkPostingControlsConfigurationRead/writeYes
Earmark configuration registersMGCEarmarkConfigurationRegisterEntityMGCEarmarkConfigurationRegistersConfigurationRead/writeYes
Earmark deal funding ruleMGCEarmarkDealFundingRuleEntityMGCEarmarkDealFundingRulesConfigurationRead/writeYes
Earmark deal targetingMGCEarmarkDealTargetEntityMGCEarmarkDealTargetsConfigurationRead/writeYes
Earmark deal-nominated posting setMGCEarmarkDealPostingEntityMGCEarmarkDealPostingsConfigurationRead/writeYes
Earmark dealsMGCEarmarkDealEntityMGCEarmarkDealsConfigurationRead/writeYes
Earmark dimension rule entityMGCEarmarkDimensionRuleEntityMGCEarmarkDimensionRulesConfigurationRead/writeYes
Earmark inbound pricing policiesMGCEarmarkInboundPricingPolicyEntityMGCEarmarkInboundPricingPoliciesConfigurationRead/writeYes
Earmark license statesMGCEarmarkLicenseStateEntityMGCEarmarkLicenseStatesConfigurationRead-onlyYes
Earmark posting profileMGCEarmarkPostingProfileEntityMGCEarmarkPostingProfilesConfigurationRead/writeYes
Earmark reason applicabilityMGCEarmarkReasonApplicabilityEntityMGCEarmarkReasonApplicabilitiesConfigurationRead/writeYes
Earmark accrual instancesMGCEarmarkAccrualInstanceEntityMGCEarmarkAccrualInstancesTransactionRead-onlyYes
Earmark accrual journal registerMGCEarmarkAccrualJournalRegisterEntityMGCEarmarkAccrualJournalRegistersTransactionRead-onlyYes
Earmark accrual transactionsMGCEarmarkAccrualTransEntityMGCEarmarkAccrualTransactionsTransactionRead-onlyYes
Earmark claim agingMGCEarmarkClaimAgingEntityMGCEarmarkClaimAgingsTransactionRead-onlyYes
Earmark claim headersMGCEarmarkClaimEntityMGCEarmarkClaimsTransactionRead-onlyYes
Earmark claim linesMGCEarmarkClaimLineEntityMGCEarmarkClaimLinesTransactionRead-onlyYes
Earmark claim migrationMGCEarmarkClaimMigrationEntityMGCEarmarkClaimMigrationsTransactionRead/writeYes
Earmark claim settlement preferencesMGCEarmarkClaimSettlementPreferenceEntityMGCEarmarkClaimSettlementPreferencesTransactionRead-onlyYes
Earmark claim statement linesMGCEarmarkClaimStatementLineEntityMGCEarmarkClaimStatementLinesTransactionRead-onlyYes
Earmark claim statement runsMGCEarmarkClaimStatementRunEntityMGCEarmarkClaimStatementRunsTransactionRead-onlyYes
Earmark claims available by customerMGCEarmarkClaimsAvailableByCustomerEntityMGCEarmarkClaimsAvailableByCustomersTransactionRead-onlyYes
Earmark control verdict entityMGCEarmarkControlVerdictEntityMGCEarmarkControlVerdictsTransactionRead-onlyYes
Earmark deal balancesMGCEarmarkDealBalanceEntityMGCEarmarkDealBalancesTransactionRead-onlyYes
Earmark deal migrationMGCEarmarkDealMigrationEntityMGCEarmarkDealMigrationsTransactionRead/writeYes
Earmark execution exceptionsMGCEarmarkExecutionExceptionEntityMGCEarmarkExecutionExceptionsTransactionRead-onlyYes
Earmark line price buildsMGCEarmarkLinePriceEntityMGCEarmarkLinePricesTransactionRead-onlyYes
Earmark line price componentsMGCEarmarkLinePriceComponentEntityMGCEarmarkLinePriceComponentsTransactionRead-onlyYes
Earmark migration batchesMGCEarmarkMigrationBatchEntityMGCEarmarkMigrationBatchesTransactionRead-onlyYes
Earmark migration opening balanceMGCEarmarkOpeningBalanceMigrationEntityMGCEarmarkOpeningBalanceMigrationsTransactionRead/writeYes
Earmark migration tie-outMGCEarmarkBalanceBaselineEntityMGCEarmarkBalanceBaselinesTransactionRead/writeYes
Earmark mirror linkMGCEarmarkMirrorLinkEntityMGCEarmarkMirrorLinksTransactionRead-onlyYes
Earmark mirror trans pairMGCEarmarkMirrorTransPairEntityMGCEarmarkMirrorTransPairsTransactionRead-onlyYes
Earmark price proposalsMGCEarmarkPriceProposalEntityMGCEarmarkPriceProposalsTransactionRead-onlyYes
Earmark reconciliation run entityMGCEarmarkReconciliationRunEntityMGCEarmarkReconciliationRunsTransactionRead-onlyYes
Earmark third-party settlementMGCEarmarkThirdPartySettlementEntityMGCEarmarkThirdPartySettlementsTransactionRead-onlyYes
Earmark timelineMGCEarmarkEventLogEntityMGCEarmarkEventLogsTransactionRead-onlyYes
Earmark vendor settlement runMGCEarmarkVendorSettlementRunEntityMGCEarmarkVendorSettlementRunsTransactionRead-onlyYes

Migration and cut-over entities​

These entities serve the cut-over from a legacy system, not day-to-day integration. Every duty that grants them ships attached to no role, so nobody can use them until an administrator assigns the duty.

EntityAccessGranted through
MGCEarmarkBalanceBaselineEntity
Earmark migration tie-out
Read/writeCertify Earmark migration (MGCEarmarkCertifyMigrationDuty): no role by default
Run Earmark migration (MGCEarmarkRunMigrationDuty): no role by default
MGCEarmarkClaimMigrationEntity
Earmark claim migration
Read/writeMigrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty): no role by default
Run Earmark migration (MGCEarmarkRunMigrationDuty): no role by default
MGCEarmarkDealMigrationEntity
Earmark deal migration
Read/writeMigrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty): no role by default
Run Earmark migration (MGCEarmarkRunMigrationDuty): no role by default
MGCEarmarkMigrationBatchEntity
Earmark migration batches
Read-onlyCertify Earmark migration (MGCEarmarkCertifyMigrationDuty): no role by default
Run Earmark migration (MGCEarmarkRunMigrationDuty): no role by default
MGCEarmarkOpeningBalanceMigrationEntity
Earmark migration opening balance
Read/writeCertify Earmark migration (MGCEarmarkCertifyMigrationDuty): no role by default
Migrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty): no role by default
Run Earmark migration (MGCEarmarkRunMigrationDuty): no role by default

The bypass duty is time-boxed. MGCEarmarkClaimMigrationEntity, MGCEarmarkDealMigrationEntity, and MGCEarmarkOpeningBalanceMigrationEntity can be written only through privileges in Migrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty). That duty ships attached to no role. An administrator assigns it to the person running the cut-over for the cut-over window, and removes it at go-live in standard security administration. Earmark does not remove it automatically.

  • Deals. MGCEarmarkDealMigrationEntity is the only way to create a deal in a status other than Planning: it opens the deal table's migration bypass around its insert, so that a deal approved in the legacy system can land Approved. Every row still passes the deal table's validation; only the approval workflow is bypassed, and a migrated deal is exempt from the license block, on production too. Running the batch's M-2 Deals step afterwards writes a migration entry on the timeline of each deal this entity loaded through a Data management import whose staging row reads Completed, and that has no entry yet. A deal written over OData, loaded with Skip staging, or whose staging rows were cleaned up before the step runs gets no entry, so the step and the tie-out leave it out; the step's count shows how many deals it stamped.
  • Claims. MGCEarmarkClaimMigrationEntity loads approved claims whose credits are not yet settled. The everyday claim entity (MGCEarmarkClaimEntity) is read-only, so this is the only entity that can create a claim. It loads claim headers only, with no claim lines, and it refuses any claim that is not Approved (an open, pending or reversed claim could never be finished without lines). An open legacy amount comes across as the deal's opening balance instead (next item). Running the batch's M-6 Claims and credits step afterwards does the same as the deal step for claims, with the same staging limit.
  • Opening balances. MGCEarmarkOpeningBalanceMigrationEntity loads each migrated deal's legacy open balance, one row per deal and counterparty, in the deal currency and with Earmark's sign (a customer liability is negative), net of the approved claims loaded through the claim entity. The batch's M-3 Opening balances step turns each row into an accrual on the deal, dated on the batch's export date, that posts nothing to the ledger and is not limited by the deal's cap or minimums. The entity refuses a deal that did not come in through the deal migration entity, a currency other than the deal's, a zero amount, and a vendor row on a customer deal; the step skips a row whose deal the batch's M-2 Deals step has not stamped, until it has. A row can be corrected or deleted only until the step loads it.
  • Attestation. After a batch reaches Certified, Record bypass privilege revoked on the Migration batches page records, in the batch's Bypass privilege revoked field, that the duty was removed. The button records the attestation only; it does not remove anyone's access.

Parameters entities​

MGCEarmarkParametersEntity​

Earmark parameters

The company-level Earmark parameters singleton, keyed on the legal entity because there is exactly one parameters record per company. It carries the module and shape toggles that gate every hook, column, tile and menu item in the product, the defaults a new deal inherits, the currency policy, the targeting category hierarchy and the two retention day-counts. It is a configuration entity and is the copy-configuration path between environments: it is what a golden-configuration load writes first, because the module toggles it sets are what the deal entities are then validated against. Writes route through the parameters table's own validation, so an import cannot set a company default the parameters form would refuse. The record is never deleted; an attempt to delete it through this entity is refused.

PropertyValue
OData entity setMGCEarmarkParameters (entity type MGCEarmarkParameters)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkParametersStaging
CompanyCompany-specific (DataAreaId)
Primary keyDataAreaId (Company)
Data sourcesMGCEarmarkParameters

Fields

FieldLabelTypeMandatoryEditSource
CustomerModuleCustomer dealsEnum NoYesYesMGCEarmarkParameters.CustomerModule
VendorModuleVendor dealsEnum NoYesYesMGCEarmarkParameters.VendorModule
InventoryModuleInventory dealsEnum NoYesYesMGCEarmarkParameters.InventoryModule
ShapeSupplierRebateSupplier rebate on purchasesEnum NoYesYesMGCEarmarkParameters.ShapeSupplierRebate
ShapeSupplierFundedProgrammeSupplier-funded customer program (mirror)Enum NoYesYesMGCEarmarkParameters.ShapeSupplierFundedProgramme
ShapePurchasePriceBuildUpPurchase price build-upEnum NoYesYesMGCEarmarkParameters.ShapePurchasePriceBuildUp
ShapeSalesTriggeredAccrualSales-triggered vendor accrualEnum NoYesYesMGCEarmarkParameters.ShapeSalesTriggeredAccrual
PriceModeDefaultPrice modeEnum MGCEarmarkPriceModeYesMGCEarmarkParameters.PriceModeDefault
AllowPerDealPriceModeAllow per-deal price modeEnum NoYesYesMGCEarmarkParameters.AllowPerDealPriceMode
AccrualAmountUnitQtyAccrual amount unitReal (MGCEarmarkAmountUnitQty)YesMGCEarmarkParameters.AccrualAmountUnitQty
DefaultDealUnitDefault deal unitString (UnitOfMeasureSymbol)YesMGCEarmarkParameters.DefaultDealUnit
AccrualPointCustomerAccrual point - customer dealsEnum MGCEarmarkAccrualPointYesMGCEarmarkParameters.AccrualPointCustomer
AccrualPointVendorAccrual point - vendor dealsEnum MGCEarmarkAccrualPointYesMGCEarmarkParameters.AccrualPointVendor
AccrualPointInventoryAccrual point - inventory dealsEnum MGCEarmarkAccrualPointYesMGCEarmarkParameters.AccrualPointInventory
DealCurrencyDefaultDeal currencyString (CurrencyCode)YesMGCEarmarkParameters.DealCurrencyDefault
CurrencyPolicyCurrency policyEnum MGCEarmarkCurrencyPolicyYesMGCEarmarkParameters.CurrencyPolicy
LockedRateBasisLocked rate basisEnum MGCEarmarkLockedRateBasisYesMGCEarmarkParameters.LockedRateBasis
ClaimableByCustomerClaimable by - customer dealsEnum MGCEarmarkClaimableByYesMGCEarmarkParameters.ClaimableByCustomer
ClaimableByVendorClaimable by - vendor dealsEnum MGCEarmarkClaimableByYesMGCEarmarkParameters.ClaimableByVendor
ClaimableByInventoryClaimable by - inventory dealsEnum MGCEarmarkClaimableByCreate onlyMGCEarmarkParameters.ClaimableByInventory
AccountSourceCustomerAccount source - customer dealsEnum MGCEarmarkAccountSourceYesMGCEarmarkParameters.AccountSourceCustomer
AccountSourceVendorAccount source - vendor dealsEnum MGCEarmarkAccountSourceYesMGCEarmarkParameters.AccountSourceVendor
AccountSourceInventoryAccount source - inventory dealsEnum MGCEarmarkAccountSourceYesMGCEarmarkParameters.AccountSourceInventory
TargetingCategoryHierarchyNameTargeting category hierarchy nameString (MGCEarmarkNaturalKey)NoMGCEarmarkParameters.TargetingCategoryHierarchyName
DealExpiryWarningDaysDeal expiry warning (days)Integer (MGCEarmarkRetentionDays)YesMGCEarmarkParameters.DealExpiryWarningDays
HeadroomAlertPercentHeadroom alert %Real (MGCEarmarkRatePercent)YesMGCEarmarkParameters.HeadroomAlertPercent
AllowAmendmentsAllow amendments on approved dealsEnum NoYesYesMGCEarmarkParameters.AllowAmendments
TimelineRetentionDaysTimeline retention (days)Integer (MGCEarmarkRetentionDays)YesMGCEarmarkParameters.TimelineRetentionDays
ExceptionRetentionDaysExecution exception retention (days)Integer (MGCEarmarkRetentionDays)YesMGCEarmarkParameters.ExceptionRetentionDays
EventsEnabledDealFamilyPublish deal eventsEnum NoYesYesMGCEarmarkParameters.EventsEnabledDealFamily
EventsEnabledAccrualFamilyPublish accrual eventsEnum NoYesYesMGCEarmarkParameters.EventsEnabledAccrualFamily
ReversalPresentationReversal presentationEnum MGCEarmarkReversalPresentationYesMGCEarmarkParameters.ReversalPresentation
ManualInstanceActionEnabledAllow manual accrual instancesEnum NoYesYesMGCEarmarkParameters.ManualInstanceActionEnabled
ReturnAfterClaimBehaviourReturn after claim behaviorEnum MGCEarmarkReturnAfterClaimBehaviourYesMGCEarmarkParameters.ReturnAfterClaimBehaviour
BalanceRebuildVarianceAlertAlert on balance rebuild varianceEnum NoYesYesMGCEarmarkParameters.BalanceRebuildVarianceAlert
EventProcessingModeEvent processing modeEnum MGCEarmarkEventProcessingModeYesMGCEarmarkParameters.EventProcessingMode
EventSweepCadenceEvent sweep cadenceInteger (MGCEarmarkCadenceMinutes)YesMGCEarmarkParameters.EventSweepCadence
EventStalenessTimeoutMinutesEvent staleness timeout (minutes)Integer (MGCEarmarkStalenessMinutes)YesMGCEarmarkParameters.EventStalenessTimeoutMinutes
EventDrainCapPerRunAccrual event drain cap (per run)Integer (MGCEarmarkDrainCap)YesMGCEarmarkParameters.EventDrainCapPerRun
UnaccruedSweepCadenceUnaccrued transaction sweep cadenceInteger (MGCEarmarkCadenceMinutes)YesMGCEarmarkParameters.UnaccruedSweepCadence
ReconciliationToleranceReconciliation toleranceReal (MGCEarmarkReconVariance)YesMGCEarmarkParameters.ReconciliationTolerance
AccrualEventRetentionDaysAccrual event retention (days)Integer (MGCEarmarkRetentionDays)YesMGCEarmarkParameters.AccrualEventRetentionDays

Security

PrivilegeGrantsDutyRoles
View Earmark Parameters (data entity) (MGCEarmarkParametersEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark Parameters (data entity) (MGCEarmarkParametersEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark configuration (MGCEarmarkMaintainConfigurationDuty)Accounting manager (LedgerAccountingManager), System administrator (-SYSADMIN-)

Reference entities​

MGCEarmarkDealGroupEntity​

Earmark deal groups

Earmark deal groups, keyed on the deal group code. A group is a short implementer-typed code and a readable name used to band deals in list pages, reports and claim-statement subtotals; it carries no economics of its own. It is a configuration entity and copies between environments alongside the rest of the Earmark setup. A group that is referenced by a deal cannot be deleted, and the refusal names the first deal holding it.

PropertyValue
OData entity setMGCEarmarkDealGroups (entity type MGCEarmarkDealGroup)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkDealGroupStaging
CompanyCompany-specific (DataAreaId)
Primary keyDealGroupId (Deal group)
Data sourcesMGCEarmarkDealGroup

Fields

FieldLabelTypeMandatoryEditSource
DealGroupId (key)Deal groupString (MGCEarmarkDealGroupId)YesCreate onlyMGCEarmarkDealGroup.DealGroupId
NameNameString (MGCEarmarkDealName)YesMGCEarmarkDealGroup.Name

Security

PrivilegeGrantsDutyRoles
View Earmark Deal Group (data entity) (MGCEarmarkDealGroupEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark Deal Group (data entity) (MGCEarmarkDealGroupEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark configuration (MGCEarmarkMaintainConfigurationDuty)Accounting manager (LedgerAccountingManager), System administrator (-SYSADMIN-)

Configuration entities​

MGCEarmarkPostingControlEntity​

Earmark accrual posting control

The data entity over the per-movement-type Earmark accrual posting control. It exists because this is cut-over data: the journal names and posting behavior are what an implementer fills in before the first accrual can be built, and copying a configured company's setup into the next one should not mean re-typing them. The key is the movement type, which is the natural key and identifies the row in every environment. Every write goes through the table's own validation rather than around it, so a load cannot create two rows for one movement type, cannot set a journal name on a movement type that reads another type's name, and cannot name a journal that does not exist in the target company.

PropertyValue
OData entity setMGCEarmarkPostingControls (entity type MGCEarmarkPostingControl)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkPostingControlStaging
CompanyCompany-specific (DataAreaId)
Primary keyMovementType (Movement type)
Data sourcesMGCEarmarkPostingControl

Fields

FieldLabelTypeMandatoryEditSource
MovementType (key)Movement typeEnum MGCEarmarkMovementTypeCreate onlyMGCEarmarkPostingControl.MovementType
JournalNameJournal nameString (LedgerJournalNameId)YesMGCEarmarkPostingControl.JournalName
AutoPostPost automaticallyEnum NoYesYesMGCEarmarkPostingControl.AutoPost
ShowInfologShow infolog messageEnum NoYesYesMGCEarmarkPostingControl.ShowInfolog
AllowUserJournalCreationAllow manual journals on this nameEnum NoYesYesMGCEarmarkPostingControl.AllowUserJournalCreation

Security

PrivilegeGrantsDutyRoles
View Earmark Posting Control (data entity) (MGCEarmarkPostingControlEntityViewPriv)ReadInquire into Earmark accruals (MGCEarmarkAccrualInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager), Purchasing agent (VendPurchasingAgent)
Maintain Earmark Posting Control (data entity) (MGCEarmarkPostingControlEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark accrual posting setup (MGCEarmarkMaintainAccrualPostingSetupDuty)Accounting manager (LedgerAccountingManager)

MGCEarmarkConfigurationRegisterEntity​

Earmark configuration registers

Export what an environment is configured to, and import a named worked example into another one. Exactly two fields accept a write - the example name and the example value - because the register is reflected from the tables that own the parameters and is never hand-maintained; everything else is published read-only. An import cannot create a parameter, so rebuild the register in the target environment before importing an example into it. Importing an example does not apply it: applying is a separate act under Configure Earmark, and it writes each value into the owning table through that table's own validation.

PropertyValue
OData entity setMGCEarmarkConfigurationRegisters (entity type MGCEarmarkConfigurationRegister)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkConfigurationRegisterStaging
CompanyCompany-specific (DataAreaId)
Primary keyParameterKey (Parameter)
Data sourcesMGCEarmarkConfigurationRegister

Fields

FieldLabelTypeMandatoryEditSource
ParameterKey (key)ParameterString (MGCEarmarkParameterKey)YesNoMGCEarmarkConfigurationRegister.ParameterKey
OwnerPackageOwner packageEnum MGCEarmarkSourcePackageNoMGCEarmarkConfigurationRegister.OwnerPackage
ParameterGroupGroupString (MGCEarmarkNaturalKey)NoMGCEarmarkConfigurationRegister.ParameterGroup
ParameterTypeParameter typeEnum MGCEarmarkParameterTypeNoMGCEarmarkConfigurationRegister.ParameterType
InstallDefaultInstall defaultString (MGCEarmarkParameterValue)NoMGCEarmarkConfigurationRegister.InstallDefault
CurrentValueCurrent valueString (MGCEarmarkParameterValue)NoMGCEarmarkConfigurationRegister.CurrentValue
ExampleNameExampleString (MGCEarmarkNaturalKey)YesMGCEarmarkConfigurationRegister.ExampleName
ExampleValueExample valueString (MGCEarmarkParameterValue)YesMGCEarmarkConfigurationRegister.ExampleValue
DiffersFromDefaultDiffersEnum NoYesNoMGCEarmarkConfigurationRegister.DiffersFromDefault
IsConfigureNativeConfigured in a standard formEnum NoYesNoMGCEarmarkConfigurationRegister.IsConfigureNative
SourceTableSource tableString (MGCEarmarkNaturalKey)NoMGCEarmarkConfigurationRegister.SourceTable
SourceFieldSource columnString (MGCEarmarkNaturalKey)NoMGCEarmarkConfigurationRegister.SourceField
SourceModifiedByParameter last changed byString (UserId)NoMGCEarmarkConfigurationRegister.SourceModifiedBy
SourceModifiedAtParameter last changedUtcDateTime (TransDateTime)NoMGCEarmarkConfigurationRegister.SourceModifiedAt

Security

PrivilegeGrantsDutyRoles
View Earmark configuration register entity (MGCEarmarkConfigurationRegisterEntityViewPriv)ReadInquire into Earmark configuration (MGCEarmarkConfigurationInquiryDuty)Accounting manager (LedgerAccountingManager), Earmark auditor (MGCEarmarkAuditor)
Maintain Earmark configuration register entity (MGCEarmarkConfigurationRegisterEntityMaintainPriv)Read, Create, Update, CorrectMaintain Earmark configuration (MGCEarmarkMaintainConfigurationDuty)Accounting manager (LedgerAccountingManager), System administrator (-SYSADMIN-)

MGCEarmarkDealFundingRuleEntity​

Earmark deal funding rule

The data entity over Earmark deal funding rules - Shape 2's scope rows: which items on a customer deal a named vendor funds, at what share and up to what cap. Read/write, primary key deal ID plus line number.

PropertyValue
OData entity setMGCEarmarkDealFundingRules (entity type MGCEarmarkDealFundingRule)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkDealFundingRuleStaging
CompanyCompany-specific (DataAreaId)
Primary keyDealId (Deal ID), LineNum (Line)
Data sourcesMGCEarmarkDealFundingRule

Fields

FieldLabelTypeMandatoryEditSource
DealId (key)Deal IDString (MGCEarmarkDealId)YesCreate onlyMGCEarmarkDealFundingRule.DealId
LineNum (key)LineReal (LineNum)YesCreate onlyMGCEarmarkDealFundingRule.LineNum
ItemSelectorItem selectorEnum MGCEarmarkItemSelectorYesMGCEarmarkDealFundingRule.ItemSelector
ItemRelationItem relationString (MGCEarmarkItemRelation)YesMGCEarmarkDealFundingRule.ItemRelation
InventDimIdInventory dimensionString (InventDimId)YesMGCEarmarkDealFundingRule.InventDimId
PriorityPriorityInteger (MGCEarmarkPriority)YesMGCEarmarkDealFundingRule.Priority
EffectiveFromEffective fromDate (TransDate)YesMGCEarmarkDealFundingRule.EffectiveFrom
EffectiveToEffective toDate (TransDate)YesMGCEarmarkDealFundingRule.EffectiveTo
FundingVendorAccountFunding vendor accountString (VendAccount)YesYesMGCEarmarkDealFundingRule.FundingVendorAccount
ShareTypeShare typeEnum MGCEarmarkFundedShareTypeYesMGCEarmarkDealFundingRule.ShareType
ShareValueShare valueReal (MGCEarmarkFundedShareValue)YesMGCEarmarkDealFundingRule.ShareValue
FundingCapFunding capReal (MGCEarmarkFundingCap)YesMGCEarmarkDealFundingRule.FundingCap
VendorProfileRefRecIdVendor profile referenceInt64 (RefRecId)YesMGCEarmarkDealFundingRule.VendorProfileRef
SpecificityRankSpecificity rankInteger (MGCEarmarkSpecificityRank)NoMGCEarmarkDealFundingRule.SpecificityRank

Security

PrivilegeGrantsDutyRoles
View Earmark deal funding rule (data entity) (MGCEarmarkDealFundingRuleEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark deal funding rule (data entity) (MGCEarmarkDealFundingRuleEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark deals (MGCEarmarkMaintainDealsDuty)Inventory accountant (InventCostAccountant), Purchasing manager (TradePurchasingManager), Sales manager (TradeSalesManager)

MGCEarmarkDealTargetEntity​

Earmark deal targeting

Earmark deal targeting rows, keyed on the deal ID and the line number. A targeting row says which items and which counterparties a deal applies to, on which unit and dimension combination, and over which effective range inside the deal's own window. The parent deal is resolved from the deal ID on import, so no record ID needs to survive the export. A category-targeted row is loaded by category name, resolved inside the hierarchy named on the Earmark parameters; the same name is what the row exports. Specificity rank is exported for analysis but never imported: the table recomputes it on every write, because a stored rank that disagreed with the row it describes would make the resolver's own explanation untrue.

PropertyValue
OData entity setMGCEarmarkDealTargets (entity type MGCEarmarkDealTarget)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkDealTargetStaging
CompanyCompany-specific (DataAreaId)
Primary keyDealId (Deal ID), LineNum (Line number)
Data sourcesMGCEarmarkDealTarget

Fields

FieldLabelTypeMandatoryEditSource
DealId (key)Deal IDString (MGCEarmarkDealId)YesCreate onlyMGCEarmarkDealTarget.DealId
LineNum (key)Line numberReal (LineNum)YesCreate onlyMGCEarmarkDealTarget.LineNum
ItemSelectorItem codeEnum MGCEarmarkItemSelectorYesMGCEarmarkDealTarget.ItemSelector
ItemRelationItem relationString (MGCEarmarkItemRelation)YesMGCEarmarkDealTarget.ItemRelation
AccountSelectorAccount codeEnum MGCEarmarkAccountSelectorYesMGCEarmarkDealTarget.AccountSelector
AccountRelationAccount relationString (MGCEarmarkAccountRelation)YesMGCEarmarkDealTarget.AccountRelation
InventDimIdInventory dimension combinationString (InventDimId)YesMGCEarmarkDealTarget.InventDimId
UnitSymbolUnitString (UnitOfMeasureSymbol)YesMGCEarmarkDealTarget.UnitSymbol
PriorityPriorityInteger (MGCEarmarkPriority)YesMGCEarmarkDealTarget.Priority
EffectiveFromEffectiveDate (TransDate)YesMGCEarmarkDealTarget.EffectiveFrom
EffectiveToExpirationDate (TransDate)YesMGCEarmarkDealTarget.EffectiveTo
SpecificityRankSpecificity rankInteger (MGCEarmarkSpecificityRank)NoMGCEarmarkDealTarget.SpecificityRank

Security

PrivilegeGrantsDutyRoles
View Earmark Deal Target (data entity) (MGCEarmarkDealTargetEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark Deal Target (data entity) (MGCEarmarkDealTargetEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark deals (MGCEarmarkMaintainDealsDuty)Inventory accountant (InventCostAccountant), Purchasing manager (TradePurchasingManager), Sales manager (TradeSalesManager)

MGCEarmarkDealPostingEntity​

Earmark deal-nominated posting set

The deal-nominated posting set, keyed on the deal ID and the movement type. Rows exist only for a deal whose account source is deal-nominated, and only for the five account-bearing movement types; the two parent-derived types must never acquire a row, because the submit-time completeness guard counts rows. Accounts are carried as main account numbers rather than as ledger dimension record IDs, so a posting set exports readably and reloads into an environment whose dimension combinations were built independently.

PropertyValue
OData entity setMGCEarmarkDealPostings (entity type MGCEarmarkDealPosting)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkDealPostingStaging
CompanyCompany-specific (DataAreaId)
Primary keyDealId (Deal ID), MovementType (Movement type)
Data sourcesMGCEarmarkDealPosting; LedgerDimensionDAVC = DimensionCombinationEntity (outer join, read-only); OffsetLedgerDimensionDAVC = DimensionCombinationEntity (outer join, read-only)

Fields

FieldLabelTypeMandatoryEditSource
DealId (key)Deal IDString (MGCEarmarkDealId)YesCreate onlyMGCEarmarkDealPosting.DealId
MovementType (key)Movement typeEnum MGCEarmarkMovementTypeCreate onlyMGCEarmarkDealPosting.MovementType
AccountTypeAccount typeEnum LedgerJournalACTypeYesMGCEarmarkDealPosting.AccountType
PostingTypePosting typeEnum MGCEarmarkPostingTypeYesMGCEarmarkDealPosting.PostingType
OffsetAccountTypeOffset account typeEnum LedgerJournalACTypeYesMGCEarmarkDealPosting.OffsetAccountType
OffsetPostingTypeOffset posting typeEnum MGCEarmarkPostingTypeYesMGCEarmarkDealPosting.OffsetPostingType
MainAccountDimension combination display valueString (DimensionDisplayValue)NoLedgerDimensionDAVC.DisplayValue
OffsetMainAccountDimension combination display valueString (DimensionDisplayValue)NoOffsetLedgerDimensionDAVC.DisplayValue

Security

PrivilegeGrantsDutyRoles
View Earmark Deal Posting (data entity) (MGCEarmarkDealPostingEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark Deal Posting (data entity) (MGCEarmarkDealPostingEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark deals (MGCEarmarkMaintainDealsDuty)Inventory accountant (InventCostAccountant), Purchasing manager (TradePurchasingManager), Sales manager (TradeSalesManager)

MGCEarmarkDealEntity​

Earmark deals

Earmark deals, keyed on the deal ID rather than on a record ID, so an exported deal is loadable into another environment and readable after a migration. The entity carries the deal's scope, validity window, commercial terms, economics, posting posture and lifecycle stamps. It cannot create an approved deal: the deal table refuses any inserted row whose status is not Planning, so an imported deal lands in Planning and reaches Approved only by passing the approval workflow. That carve-out is structural rather than procedural, and the one exception is the separate migration entity shipped by the configuration and cut-over package under a time-boxed bypass privilege - two entities and two postures, so this one cannot be talked into the migration's behavior. The lifecycle stamps and the status are exported but not writable.

Cannot create an approved deal. The deal table refuses to insert a deal whose status is not Planning, and this entity does not open the migration bypass. A load may supply Status on create, but only Planning is accepted, and it cannot be changed afterwards. A deal created here starts in Planning and reaches Approved only through the approval workflow. The deal table's refusal reads: "A new deal must be created in Planning. Status [status] is not a valid starting state - the lifecycle orchestrator is the only path that advances a deal's status." To load deals that were already approved in a legacy system, use MGCEarmarkDealMigrationEntity during cut-over.

PropertyValue
OData entity setMGCEarmarkDeals (entity type MGCEarmarkDeal)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkDealStaging
CompanyCompany-specific (DataAreaId)
Primary keyDealId (Deal ID)
Data sourcesMGCEarmarkDeal

Fields

FieldLabelTypeMandatoryEditSource
DealId (key)Deal IDString (MGCEarmarkDealId)YesCreate onlyMGCEarmarkDeal.DealId
NameNameString (MGCEarmarkDealName)YesYesMGCEarmarkDeal.Name
DealGroupIdDeal groupString (MGCEarmarkDealGroupId)YesMGCEarmarkDeal.DealGroupId
DealOwnerDeal ownerString (UserId)YesMGCEarmarkDeal.DealOwner
ModuleModuleEnum MGCEarmarkModuleYesCreate onlyMGCEarmarkDeal.Module
ShapeDeal shapeEnum MGCEarmarkDealShapeYesCreate onlyMGCEarmarkDeal.Shape
TriggerSideTrigger sideEnum MGCEarmarkTriggerSideYesMGCEarmarkDeal.TriggerSide
ValidFromEffectiveDate (TransDate)YesYesMGCEarmarkDeal.ValidFrom
ValidToExpirationDate (TransDate)YesYesMGCEarmarkDeal.ValidTo
CurrencyCodeDeal currencyString (CurrencyCode)YesYesMGCEarmarkDeal.CurrencyCode
TaxGroupSales tax groupString (TaxGroup)YesMGCEarmarkDeal.TaxGroup
PaymModeIdMethod of paymentString (MGCEarmarkNaturalKey)YesMGCEarmarkDeal.PaymModeId
AccrualPointAccrual pointEnum MGCEarmarkAccrualPointYesMGCEarmarkDeal.AccrualPoint
PriceModePrice modeEnum MGCEarmarkPriceModeYesMGCEarmarkDeal.PriceMode
DealUnitDeal unitString (UnitOfMeasureSymbol)YesMGCEarmarkDeal.DealUnit
RateBasisRate basisEnum MGCEarmarkRateBasisYesYesMGCEarmarkDeal.RateBasis
AccrualAmountAccrual amountReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.AccrualAmount
AccrualAmountUnitQtyPer quantityReal (MGCEarmarkAmountUnitQty)YesMGCEarmarkDeal.AccrualAmountUnitQty
AccrualPercentAccrual percentageReal (MGCEarmarkRatePercent)YesMGCEarmarkDeal.AccrualPercent
FixedAmountFixed amountReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.FixedAmount
MinAccrualPerTransMinimum accrual per transactionReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.MinAccrualPerTrans
MaxAccrualPerTransMaximum accrual per transactionReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.MaxAccrualPerTrans
LifetimeCapLifetime capReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.LifetimeCap
MinQuantityMinimum qualifying quantityReal (MGCEarmarkDealQty)YesMGCEarmarkDeal.MinQuantity
MaxQuantityMaximum qualifying quantityReal (MGCEarmarkDealQty)YesMGCEarmarkDeal.MaxQuantity
CriteriaTypeCriteria typeEnum MGCEarmarkCriteriaTypeYesMGCEarmarkDeal.CriteriaType
AllowAmountEditAllow amount editEnum NoYesYesMGCEarmarkDeal.AllowAmountEdit
HeadroomAlertPercentHeadroom alert percentageReal (MGCEarmarkRatePercent)YesMGCEarmarkDeal.HeadroomAlertPercent
ClaimableByClaimable byEnum MGCEarmarkClaimableByYesMGCEarmarkDeal.ClaimableBy
AccountSourceAccount sourceEnum MGCEarmarkAccountSourceYesMGCEarmarkDeal.AccountSource
FundingVendorAccountFunding vendorString (VendAccount)YesMGCEarmarkDeal.FundingVendorAccount
StatusDeal statusEnum MGCEarmarkDealStatusCreate onlyMGCEarmarkDeal.Status
SubmittedBySubmitted byString (UserId)NoMGCEarmarkDeal.SubmittedBy
SubmittedDateTimeSubmittedUtcDateTime (TransDateTime)NoMGCEarmarkDeal.SubmittedDateTime
ApprovedByApproved byString (UserId)NoMGCEarmarkDeal.ApprovedBy
ApprovedDateTimeApprovedUtcDateTime (TransDateTime)NoMGCEarmarkDeal.ApprovedDateTime
EndedByEnded byString (UserId)NoMGCEarmarkDeal.EndedBy
EndedDateTimeEndedUtcDateTime (TransDateTime)NoMGCEarmarkDeal.EndedDateTime
EndReasonCodeEnd reasonString (ReasonCode)NoMGCEarmarkDeal.EndReasonCode
EndReasonNoteEnd reason noteString (MGCEarmarkReasonNote)NoMGCEarmarkDeal.EndReasonNote
WorkflowInstanceIdWorkflow instanceGuid (WorkflowInstanceId)NoMGCEarmarkDeal.WorkflowInstanceId

Security

PrivilegeGrantsDutyRoles
View Earmark Deal (data entity) (MGCEarmarkDealEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark Deal (data entity) (MGCEarmarkDealEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark deals (MGCEarmarkMaintainDealsDuty)Inventory accountant (InventCostAccountant), Purchasing manager (TradePurchasingManager), Sales manager (TradeSalesManager)

MGCEarmarkDimensionRuleEntity​

Earmark dimension rule entity

The read/write entity over the financial dimension rule list, and the only writable entity in the accrual engine. Copy-config is what it is for: the dimension walk is the one thing an implementer builds by hand, and it is built once and moved into every other environment. Every write goes through the rule table's own validation rather than around it, so a load meets the same refusals a person would. Note that loading a rule at a position an existing walk already uses INSERTS it and pushes the rest down rather than replacing anything - clear the walk first if replacement is what is wanted.

PropertyValue
OData entity setMGCEarmarkDimensionRules (entity type MGCEarmarkDimensionRule)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkDimensionRuleStaging
CompanyCompany-specific (DataAreaId)
Primary keyMovementType (Movement type), Sequence (Sequence)
Data sourcesMGCEarmarkDimensionRule

Fields

FieldLabelTypeMandatoryEditSource
MovementType (key)Movement typeEnum MGCEarmarkMovementTypeCreate onlyMGCEarmarkDimensionRule.MovementType
Sequence (key)SequenceInteger (MGCEarmarkPriority)Create onlyMGCEarmarkDimensionRule.Sequence
SourceSourceEnum MGCEarmarkDimensionSourceYesMGCEarmarkDimensionRule.Source
SideSideEnum MGCEarmarkDimensionSideYesMGCEarmarkDimensionRule.Side
FixedDimensionValueFixed dimension valuesString (DimensionDisplayValue)YesVirtual
ActiveActiveEnum NoYesYesMGCEarmarkDimensionRule.Active
EffectiveFromEffective fromDate (TransDate)YesMGCEarmarkDimensionRule.EffectiveFrom
EffectiveToEffective toDate (TransDate)YesMGCEarmarkDimensionRule.EffectiveTo
  • FixedDimensionValue (handled by entity code): The dimension values a Fixed value rule contributes, written as a self-describing list of the form BusinessUnit=001;Department=022. It is deliberately not a record identifier and not a plain display value. A record identifier is built per environment and means nothing outside the one it was built in, so exporting it would produce a file that imports silently and wrongly. A plain display value does not round-trip either, because it carries the values without saying which dimension each belongs to and their order comes from the target environment rather than from the file. Every segment is checked against this company's dimensions before anything is saved, and a segment naming a dimension or a value this company does not have is refused by name rather than resolved to nothing. Leave it empty on every rule whose source is not Fixed value.

Security

PrivilegeGrantsDutyRoles
View Earmark Dimension Rule (data entity) (MGCEarmarkDimensionRuleEntityViewPriv)ReadInquire into Earmark accruals (MGCEarmarkAccrualInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager), Purchasing agent (VendPurchasingAgent)
Maintain Earmark Dimension Rule (data entity) (MGCEarmarkDimensionRuleEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark accrual posting setup (MGCEarmarkMaintainAccrualPostingSetupDuty)Accounting manager (LedgerAccountingManager)

MGCEarmarkInboundPricingPolicyEntity​

Earmark inbound pricing policies

Read/write. The copy-config feed for inbound pricing policies, for moving them from a configuration environment to test and then to production. Writes go through the policy table's own validation rather than around it, so an imported policy meets exactly the refusals a person meets on the form - which matters here because a self-contradictory policy does not fail loudly, it silently never matches. The key is the natural key, so re-running the same file updates the same rows instead of duplicating them.

PropertyValue
OData entity setMGCEarmarkInboundPricingPolicies (entity type MGCEarmarkInboundPricingPolicy)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkInboundPricingPolicyStaging
CompanyCompany-specific (DataAreaId)
Primary keyCustomerCode (Customer code), CustomerRelation (Customer relation), OriginCode (Sales origin code), SalesOriginId (Sales origin), EffectiveFrom (Effective from)
Data sourcesMGCEarmarkInboundPricingPolicy

Fields

FieldLabelTypeMandatoryEditSource
CustomerCode (key)Customer codeEnum MGCEarmarkAccountSelectorYesCreate onlyMGCEarmarkInboundPricingPolicy.CustomerCode
CustomerRelation (key)Customer relationString (MGCEarmarkAccountRelation)Create onlyMGCEarmarkInboundPricingPolicy.CustomerRelation
OriginCode (key)Sales origin codeEnum MGCEarmarkOriginSelectorYesCreate onlyMGCEarmarkInboundPricingPolicy.OriginCode
SalesOriginId (key)Sales originString (SalesOriginId)Create onlyMGCEarmarkInboundPricingPolicy.SalesOriginId
EffectiveFrom (key)Effective fromDate (TransDate)Create onlyMGCEarmarkInboundPricingPolicy.EffectiveFrom
EffectiveToEffective toDate (TransDate)YesMGCEarmarkInboundPricingPolicy.EffectiveTo
ActionActionEnum MGCEarmarkInboundPricingActionYesMGCEarmarkInboundPricingPolicy.Action
BaseSourceBase price sourceEnum MGCEarmarkInboundBaseSourceYesMGCEarmarkInboundPricingPolicy.BaseSource
PriorityPriorityInteger (MGCEarmarkPriority)YesMGCEarmarkInboundPricingPolicy.Priority

Security

PrivilegeGrantsDutyRoles
View Earmark Inbound Pricing Policy (data entity) (MGCEarmarkInboundPricingPolicyEntityViewPriv)ReadInquire into price build-up (MGCEarmarkLinePriceInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Earmark auditor (MGCEarmarkAuditor), Earmark deal approver (MGCEarmarkDealApprover), Customer service representative (TradeCustomerServiceRepresentative), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager)
Maintain Earmark Inbound Pricing Policy (data entity) (MGCEarmarkInboundPricingPolicyEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain price build-up setup (MGCEarmarkMaintainBasisSetupDuty)Accounting manager (LedgerAccountingManager)

MGCEarmarkLicenseStateEntity​

Earmark license states

Read-only export of the cached entitlement answer, for estate monitoring - which environments are in grace or lapsed, and when each last reached the license service. Read the verdict together with the source: a cached answer with an older successful check is the last thing the service said, not a live answer. Nothing can be loaded through this entity, because an import that could declare a customer entitled is the one thing the product must not permit. And no refusal comes from this answer: a lapse produces a banner and a statement watermark. The block date comes from the licensing service's own timeline.

PropertyValue
OData entity setMGCEarmarkLicenseStates (entity type MGCEarmarkLicenseState)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkLicenseStateStaging
CompanyCompany-specific (DataAreaId)
Primary keyProductCode (Product code)
Data sourcesMGCEarmarkLicenseState

Fields

FieldLabelTypeSource
ProductCode (key)Product codeString (MGCEarmarkNaturalKey)MGCEarmarkLicenseState.ProductCode
VerdictLicense verdictEnum MGCEarmarkLicenseVerdictMGCEarmarkLicenseState.Verdict
SourceVerdict sourceEnum MGCEarmarkLicenseSourceMGCEarmarkLicenseState.Source
GraceEndDateGrace period endsDate (TransDate)MGCEarmarkLicenseState.GraceEndDate
LastCheckDateTimeLast checkedUtcDateTime (TransDateTime)MGCEarmarkLicenseState.LastCheckDateTime
LastSuccessfulCheckDateTimeLast successful checkUtcDateTime (TransDateTime)MGCEarmarkLicenseState.LastSuccessfulCheckDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark license state entity (MGCEarmarkLicenseStateEntityViewPriv)ReadInquire into Earmark configuration (MGCEarmarkConfigurationInquiryDuty)Accounting manager (LedgerAccountingManager), Earmark auditor (MGCEarmarkAuditor)
View Earmark license state entity (MGCEarmarkLicenseStateEntityViewPriv)ReadMaintain Earmark licensing (MGCEarmarkMaintainLicensingDuty)System administrator (-SYSADMIN-)

MGCEarmarkPostingProfileEntity​

Earmark posting profile

The company Earmark posting profile, keyed on the five-part profile key of posting type, item code, item relation, account code and account relation. The profile answers which account a movement posts to, in the item-code grammar accountants already maintain for inventory posting; it deliberately has no category axis, so a category-targeted deal resolves its account by the item's item group. Accounts are carried as main account numbers rather than as ledger dimension record IDs, so the profile copies between environments. It is a configuration entity and is part of the copy-configuration set.

PropertyValue
OData entity setMGCEarmarkPostingProfiles (entity type MGCEarmarkPostingProfile)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkPostingProfileStaging
CompanyCompany-specific (DataAreaId)
Primary keyPostingType (Posting type), ItemCode (Item code), ItemRelation (Item relation), AccountCode (Account code), AccountRelation (Account relation)
Data sourcesMGCEarmarkPostingProfile; LedgerDimensionDAVC = DimensionCombinationEntity (outer join, read-only)

Fields

FieldLabelTypeMandatoryEditSource
PostingType (key)Posting typeEnum MGCEarmarkPostingTypeCreate onlyMGCEarmarkPostingProfile.PostingType
ItemCode (key)Item codeEnum MGCEarmarkItemSelectorCreate onlyMGCEarmarkPostingProfile.ItemCode
ItemRelation (key)Item relationString (MGCEarmarkItemRelation)Create onlyMGCEarmarkPostingProfile.ItemRelation
AccountCode (key)Account codeEnum MGCEarmarkAccountSelectorCreate onlyMGCEarmarkPostingProfile.AccountCode
AccountRelation (key)Account relationString (MGCEarmarkAccountRelation)Create onlyMGCEarmarkPostingProfile.AccountRelation
MainAccountDimension combination display valueString (DimensionDisplayValue)NoLedgerDimensionDAVC.DisplayValue

Security

PrivilegeGrantsDutyRoles
View Earmark Posting Profile (data entity) (MGCEarmarkPostingProfileEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark Posting Profile (data entity) (MGCEarmarkPostingProfileEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark configuration (MGCEarmarkMaintainConfigurationDuty)Accounting manager (LedgerAccountingManager), System administrator (-SYSADMIN-)

MGCEarmarkReasonApplicabilityEntity​

Earmark reason applicability

The Earmark applicability flag on a financial reason, keyed on the reason code. It is the side-table that lets Earmark mark which of the shared financial reasons may be quoted when a deal is canceled, closed or aborted, an amendment is rejected or an execution exception is dismissed, without adding a stored field to the standard reason table. Loading it by reason code is the intended path: the table completes the record reference from the code on every write, so a copy-configuration load carrying only codes still ends up with a whole key.

PropertyValue
OData entity setMGCEarmarkReasonApplicabilities (entity type MGCEarmarkReasonApplicability)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkReasonApplicabilityStaging
CompanyCompany-specific (DataAreaId)
Primary keyReasonCode (Reason code)
Data sourcesMGCEarmarkReasonApplicability

Fields

FieldLabelTypeMandatoryEditSource
ReasonCode (key)Reason codeString (ReasonCode)YesCreate onlyMGCEarmarkReasonApplicability.ReasonCode
EarmarkApplicableApplicable to EarmarkEnum NoYesYesMGCEarmarkReasonApplicability.EarmarkApplicable

Security

PrivilegeGrantsDutyRoles
View Earmark Reason Applicability (data entity) (MGCEarmarkReasonApplicabilityEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)
Maintain Earmark Reason Applicability (data entity) (MGCEarmarkReasonApplicabilityEntityMaintainPriv)Read, Create, Update, Delete, CorrectMaintain Earmark configuration (MGCEarmarkMaintainConfigurationDuty)Accounting manager (LedgerAccountingManager), System administrator (-SYSADMIN-)

Transaction entities​

MGCEarmarkAccrualInstanceEntity​

Earmark accrual instances

Earmark accrual instances, read-only, keyed on the accrual instance ID rather than on a record ID so that an exported commitment stays readable in a lake, a warehouse or another environment. An instance is one deal's frozen commitment on one order line: the entity carries its identity and status, the deal it came from and the targeting row that qualified it, the anchoring lot and source document, the counterparty and currency, the accrual point and price mode, the units and the conversion factor frozen at creation, the commercial terms, the built base and over-basis price with the exchange rate that produced the accounting-currency figures, and the six journal names its movements post on. Three columns of the table are deliberately not exposed - the deal, origin and targeting record references - because a record ID is built per environment and means nothing outside the one that built it; their readable equivalents travel instead. The four snapshot columns record what the deal's control set said on the day the commitment was made and are display-only provenance: a model that computed remaining headroom from them would be computing it against a cap that may have been amended since, and the live figures belong to the deal balance entity. The entity cannot create, change or delete an instance, and neither can any other load path: instances exist only through the accrual instance service, and the withdrawn opening-balance entity was superseded by the migration package's entities as the single governed load path. It is deliberately not part of the copy-configuration set - a commitment is a fact about one company's order line and copying it elsewhere would manufacture an obligation nobody entered into.

PropertyValue
OData entity setMGCEarmarkAccrualInstances (entity type MGCEarmarkAccrualInstance)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkAccrualInstanceStaging
CompanyCompany-specific (DataAreaId)
Primary keyAccrualInstanceId (Accrual instance)
Data sourcesMGCEarmarkAccrualInstance

Fields

FieldLabelTypeSource
AccrualInstanceId (key)Accrual instanceString (MGCEarmarkAccrualInstanceId)MGCEarmarkAccrualInstance.AccrualInstanceId
StatusStatusEnum MGCEarmarkAccrualInstanceStatusMGCEarmarkAccrualInstance.Status
StatusReasonCodeReasonString (ReasonCode)MGCEarmarkAccrualInstance.StatusReasonCode
StatusReasonNoteReason commentString (MGCEarmarkReasonNote)MGCEarmarkAccrualInstance.StatusReasonNote
StatusChangedByChanged byString (UserId)MGCEarmarkAccrualInstance.StatusChangedBy
StatusChangedDateTimeChanged onUtcDateTime (TransDateTime)MGCEarmarkAccrualInstance.StatusChangedDateTime
DealIdDealString (MGCEarmarkDealId)MGCEarmarkAccrualInstance.DealId
DealShapeDeal shapeEnum MGCEarmarkDealShapeMGCEarmarkAccrualInstance.DealShape
ModuleModuleEnum MGCEarmarkModuleMGCEarmarkAccrualInstance.Module
QualifyingRankQualifying rankInteger (MGCEarmarkSpecificityRank)MGCEarmarkAccrualInstance.QualifyingRank
InventTransIdLot IDString (InventTransId)MGCEarmarkAccrualInstance.InventTransId
ReferenceCategorySource document typeString (MGCEarmarkSourceRefCategory)MGCEarmarkAccrualInstance.ReferenceCategory
ReferenceIdSource documentString (MGCEarmarkNaturalKey)MGCEarmarkAccrualInstance.ReferenceId
CounterpartyTypeCounterparty typeEnum MGCEarmarkClaimCounterpartyTypeMGCEarmarkAccrualInstance.CounterpartyType
CounterpartyAccountCounterpartyString (MGCEarmarkAccountRelation)MGCEarmarkAccrualInstance.CounterpartyAccount
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkAccrualInstance.CurrencyCode
AccrualPointAccrual pointEnum MGCEarmarkAccrualPointMGCEarmarkAccrualInstance.AccrualPoint
ClaimableByClaimable byEnum MGCEarmarkClaimableByMGCEarmarkAccrualInstance.ClaimableBy
AccountSourceAccount sourceEnum MGCEarmarkAccountSourceMGCEarmarkAccrualInstance.AccountSource
PriceModePrice modeEnum MGCEarmarkPriceModeMGCEarmarkAccrualInstance.PriceMode
DirectionDirectionEnum MGCEarmarkAccrualDirectionMGCEarmarkAccrualInstance.Direction
TriggerSideTrigger sideEnum MGCEarmarkTriggerSideMGCEarmarkAccrualInstance.TriggerSide
MirrorSideMirror sideEnum MGCEarmarkMirrorSideMGCEarmarkAccrualInstance.MirrorSide
DealUnitDeal unitString (UnitOfMeasureSymbol)MGCEarmarkAccrualInstance.DealUnit
InventoryUnitInventory unitString (UnitOfMeasureSymbol)MGCEarmarkAccrualInstance.InventoryUnit
DealUnitFactorConversion factorReal (MGCEarmarkConversionFactor)MGCEarmarkAccrualInstance.DealUnitFactor
CatchWeightItemCatch weight itemEnum NoYesMGCEarmarkAccrualInstance.CatchWeightItem
RateBasisRate basisEnum MGCEarmarkRateBasisMGCEarmarkAccrualInstance.RateBasis
AccrualAmountAmount per unitReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualInstance.AccrualAmount
AccrualAmountUnitQtyPer quantityReal (MGCEarmarkAmountUnitQty)MGCEarmarkAccrualInstance.AccrualAmountUnitQty
AccrualPercentPercentageReal (MGCEarmarkRatePercent)MGCEarmarkAccrualInstance.AccrualPercent
FixedAmountFixed amountReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualInstance.FixedAmount
MinAccrualPerTransMinimum per transactionReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualInstance.MinAccrualPerTrans
MaxAccrualPerTransMaximum per transactionReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualInstance.MaxAccrualPerTrans
AllowAmountEditAmount editableEnum NoYesMGCEarmarkAccrualInstance.AllowAmountEdit
LifetimeCapSnapshotLifetime cap when committedReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualInstance.LifetimeCapSnapshot
MinQuantitySnapshotQualifying quantity when committedReal (MGCEarmarkDealQty)MGCEarmarkAccrualInstance.MinQuantitySnapshot
MaxQuantitySnapshotMaximum quantity when committedReal (MGCEarmarkDealQty)MGCEarmarkAccrualInstance.MaxQuantitySnapshot
CriteriaTypeSnapshotCriteria type when committedEnum MGCEarmarkCriteriaTypeMGCEarmarkAccrualInstance.CriteriaTypeSnapshot
BasePriceBase priceReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualInstance.BasePrice
OverBasisOver basisReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualInstance.OverBasis
PriceUnitPrice unitReal (PriceUnit)MGCEarmarkAccrualInstance.PriceUnit
BuildExchRateExchange rate at buildReal (ExchRate)MGCEarmarkAccrualInstance.BuildExchRate
BuildRateTypeExchange rate type at buildString (ExchangeRateTypeName)MGCEarmarkAccrualInstance.BuildRateType
BuildRateDateExchange rate date at buildDate (TransDate)MGCEarmarkAccrualInstance.BuildRateDate
PercentBasisSourcePercent basisEnum MGCEarmarkPercentBasisSourceMGCEarmarkAccrualInstance.PercentBasisSource
JournalNameAccumulationAccumulation journal nameString (LedgerJournalNameId)MGCEarmarkAccrualInstance.JournalNameAccumulation
JournalNameReversalReversal journal nameString (LedgerJournalNameId)MGCEarmarkAccrualInstance.JournalNameReversal
JournalNameAdjustmentAdjustment journal nameString (LedgerJournalNameId)MGCEarmarkAccrualInstance.JournalNameAdjustment
JournalNameClaimClaim journal nameString (LedgerJournalNameId)MGCEarmarkAccrualInstance.JournalNameClaim
JournalNameClaimApprovalClaim approval journal nameString (LedgerJournalNameId)MGCEarmarkAccrualInstance.JournalNameClaimApproval
JournalNameClaimReversalClaim reversal journal nameString (LedgerJournalNameId)MGCEarmarkAccrualInstance.JournalNameClaimReversal
SettlementSourceSettlement sourceEnum MGCEarmarkSettlementSourceMGCEarmarkAccrualInstance.SettlementSource

Security

PrivilegeGrantsDutyRoles
View Earmark Accrual Instance (data entity) (MGCEarmarkAccrualInstanceEntityViewPriv)ReadInquire into Earmark accruals (MGCEarmarkAccrualInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager), Purchasing agent (VendPurchasingAgent)

MGCEarmarkAccrualJournalRegisterEntity​

Earmark accrual journal register

The audit trace from a general-ledger voucher to the Earmark accrual movement that produced it, read-only, keyed on the journal number and the voucher - the pair an auditor actually arrives holding. Each row names the journal Earmark created, the voucher it wrote once it posted, the deal, accrual instance and accrual transaction behind it, which of the seven Earmark journal types it carries, which movement it posted, and whether Earmark generated it. Read the Earmark journal type from this entity rather than inferring it from the journal name: six journal names carry seven types, because a claim approval reversal posts on the claim approval name so that a matched pair nets inside one journal. The deal, instance and transaction travel as record references and are joined in the consuming store to the accrual transaction, accrual instance and deal entities; embedding those joins here would make one audit surface depend on three other tables' column names. A blank voucher is a legitimate row: a journal created with auto-posting off has no voucher until it posts. The entity cannot create, change or delete a register row - the register is evidence, exempt from retention, and has no purge path at all.

PropertyValue
OData entity setMGCEarmarkAccrualJournalRegisters (entity type MGCEarmarkAccrualJournalRegister)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkAccrualJournalRegisterStaging
CompanyCompany-specific (DataAreaId)
Primary keyJournalNum (Journal number), Voucher (Voucher)
Data sourcesMGCEarmarkAccrualJournalRegister

Fields

FieldLabelTypeSource
JournalNum (key)Journal numberString (LedgerJournalId)MGCEarmarkAccrualJournalRegister.JournalNum
Voucher (key)VoucherString (Voucher)MGCEarmarkAccrualJournalRegister.Voucher
LedgerJournalTableRecIdJournal referenceInt64 (RefRecId)MGCEarmarkAccrualJournalRegister.LedgerJournalTable
EarmarkJournalTypeEarmark journal typeEnum MGCEarmarkJournalTypeMGCEarmarkAccrualJournalRegister.EarmarkJournalType
MovementTypeMovement typeEnum MGCEarmarkMovementTypeMGCEarmarkAccrualJournalRegister.MovementType
DealRecIdDealInt64 (RefRecId)MGCEarmarkAccrualJournalRegister.Deal
AccrualInstanceRecIdAccrual instanceInt64 (RefRecId)MGCEarmarkAccrualJournalRegister.AccrualInstance
AccrualTransRecIdAccrual transactionInt64 (RefRecId)MGCEarmarkAccrualJournalRegister.AccrualTrans
SystemGeneratedSystem generatedEnum NoYesMGCEarmarkAccrualJournalRegister.SystemGenerated

Security

PrivilegeGrantsDutyRoles
View Earmark Accrual Journal Register (data entity) (MGCEarmarkAccrualJournalRegisterEntityViewPriv)ReadInquire into Earmark accruals (MGCEarmarkAccrualInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager), Purchasing agent (VendPurchasingAgent)

MGCEarmarkAccrualTransEntity​

Earmark accrual transactions

The read-only view of the accrual chain, for business intelligence, for the claim statement and for statutory export. It is keyed on the accrual transaction identifier - the natural key, never a record id - and it resolves every internal reference into something readable before it leaves the database: the parent movement and the accrual instance become their own identifiers, the deal, counterparty and source line come from the instance, and the two ledger dimensions become account strings, because a dimension record id is built per environment and is meaningless outside it. The entity accepts no writes on any path: movements are created only by the movement engine, and the migration from a previous system has its own separate entity under its own privilege so that this everyday one cannot be talked into migration behavior.

PropertyValue
OData entity setMGCEarmarkAccrualTransactions (entity type MGCEarmarkAccrualTransaction)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkAccrualTransStaging
CompanyCompany-specific (DataAreaId)
Primary keyAccrualTransId (Accrual transaction)
Data sourcesMGCEarmarkAccrualTrans; AccrualInstance = MGCEarmarkAccrualInstance (outer join, read-only); ParentTrans = MGCEarmarkAccrualTrans (outer join, read-only); LedgerAccountDAVC = DimensionCombinationEntity (outer join, read-only); OffsetAccountDAVC = DimensionCombinationEntity (outer join, read-only)

Fields

FieldLabelTypeSource
AccrualTransId (key)Accrual transactionString (MGCEarmarkAccrualTransId)MGCEarmarkAccrualTrans.AccrualTransId
ParentAccrualTransIdAccrual transactionString (MGCEarmarkAccrualTransId)ParentTrans.AccrualTransId
AccrualInstanceIdAccrual instanceString (MGCEarmarkAccrualInstanceId)AccrualInstance.AccrualInstanceId
DealIdDealString (MGCEarmarkDealId)AccrualInstance.DealId
CounterpartyTypeCounterparty typeEnum MGCEarmarkClaimCounterpartyTypeAccrualInstance.CounterpartyType
CounterpartyAccountCounterpartyString (MGCEarmarkAccountRelation)AccrualInstance.CounterpartyAccount
InventTransIdLot IDString (InventTransId)AccrualInstance.InventTransId
ReferenceCategorySource document typeString (MGCEarmarkSourceRefCategory)AccrualInstance.ReferenceCategory
ReferenceIdSource documentString (MGCEarmarkNaturalKey)AccrualInstance.ReferenceId
MovementTypeMovement typeEnum MGCEarmarkMovementTypeMGCEarmarkAccrualTrans.MovementType
OriginOriginEnum MGCEarmarkMovementOriginMGCEarmarkAccrualTrans.Origin
StateStateEnum MGCEarmarkAccrualTransStateMGCEarmarkAccrualTrans.State
PostingStatusPosting statusEnum MGCEarmarkAccrualPostingStatusMGCEarmarkAccrualTrans.PostingStatus
AmountCurAmount in deal currencyReal (MGCEarmarkAccrualAmount)MGCEarmarkAccrualTrans.AmountCur
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkAccrualTrans.CurrencyCode
AmountMSTAmount in accounting currencyReal (MGCEarmarkAccrualAmountMST)MGCEarmarkAccrualTrans.AmountMST
ExchRateExchange rateReal (ExchRate)MGCEarmarkAccrualTrans.ExchRate
ExchRateDateExchange rate dateDate (TransDate)MGCEarmarkAccrualTrans.ExchRateDate
PostingDatePosting dateDate (TransDate)MGCEarmarkAccrualTrans.PostingDate
QtyQuantityReal (MGCEarmarkDealQty)MGCEarmarkAccrualTrans.Qty
QtyUnitUnitString (UnitOfMeasureSymbol)MGCEarmarkAccrualTrans.QtyUnit
JournalNumJournalString (LedgerJournalId)MGCEarmarkAccrualTrans.JournalNum
VoucherVoucherString (Voucher)MGCEarmarkAccrualTrans.Voucher
LedgerAccountDimension combination display valueString (DimensionDisplayValue)LedgerAccountDAVC.DisplayValue
OffsetLedgerAccountDimension combination display valueString (DimensionDisplayValue)OffsetAccountDAVC.DisplayValue
SourceDocumentTypeSource document typeEnum MGCEarmarkSourceDocTypeMGCEarmarkAccrualTrans.SourceDocumentType
PackingSlipIdPacking slipString (PackingSlipId)MGCEarmarkAccrualTrans.PackingSlipId
InvoiceIdInvoiceString (InvoiceId)MGCEarmarkAccrualTrans.InvoiceId
ProductReceiptIdProduct receiptString (ProductReceiptId)MGCEarmarkAccrualTrans.ProductReceiptId
ReturnPackingSlipIdReturn packing slipString (PackingSlipId)MGCEarmarkAccrualTrans.ReturnPackingSlipId
CreditNoteIdCredit noteString (CustCreditNoteId)MGCEarmarkAccrualTrans.CreditNoteId
ItemIdItemString (ItemId)MGCEarmarkAccrualTrans.ItemId
InventDimIdInventory dimensionsString (InventDimId)MGCEarmarkAccrualTrans.InventDimId
ReasonCodeReasonString (ReasonCode)MGCEarmarkAccrualTrans.ReasonCode
ReasonNoteReason noteString (MGCEarmarkReasonNote)MGCEarmarkAccrualTrans.ReasonNote
ActorActorString (UserId)MGCEarmarkAccrualTrans.Actor
AutomationWriteAutomatedEnum NoYesMGCEarmarkAccrualTrans.AutomationWrite
ReturnAfterClaimFlagReturn after claimEnum NoYesMGCEarmarkAccrualTrans.ReturnAfterClaimFlag
ClaimReferenceClaim referenceString (MGCEarmarkClaimLineRef)Computed
ClaimStatusClaim statusEnum MGCEarmarkClaimStatusComputed
  • ClaimReference (computed when read): The customer-facing reference of the claim line that claimed this accrual transaction, or blank where the transaction has not been claimed. It is resolved on read from the claim line and is not a column on the accrual chain: the claims package adds this reading of the chain without altering a single column the accrual engine writes, which is what lets a claim be generated, reversed and re-generated without the accrual transaction it came from ever being rewritten. A transaction carries at most one claim line, structurally, so this reading is single-valued rather than a list.
  • ClaimStatus (computed when read): The status of the claim that claimed this accrual transaction, or blank where the transaction has not been claimed. Like the claim reference beside it, it is resolved on read from the claim line rather than stored on the accrual chain, so that the chain stays the immutable record of money that reached the general ledger while the claim side moves through its own lifecycle. Reading it as open, pending approval, approved or reversed tells a reconciler why an accrued amount is or is not yet a counterparty credit, which is a question the accrual chain alone cannot answer.

Security

PrivilegeGrantsDutyRoles
View Earmark Accrual Trans (data entity) (MGCEarmarkAccrualTransEntityViewPriv)ReadInquire into Earmark accruals (MGCEarmarkAccrualInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager), Purchasing agent (VendPurchasingAgent)

MGCEarmarkClaimAgingEntity​

Earmark claim aging

The read-only export of Earmark claim lines by age - the days since each approved claim's credit was posted. It answers how long counterparty credits have been sitting unsettled, which is the collections question the claim statement raises and does not itself answer. The age is computed by the database on every read against the current UTC date and is never stored, so two exports taken on different days return different numbers for the same claim line; that is deliberate, and a consumer must not cache it. It is UTC rather than the reader's local time so that the same credit does not fall into different age ranges for different people. The export carries the age in days, not the aging bucket: the bucket boundaries are the Aging bucket 1-4 (days) settings on the Claims tab of the Earmark parameters, and the Claim aging list shows each credit's bucket from them. To group an export the same way, use those boundaries - a credit belongs to the first bucket whose boundary it is younger than, and one as old as the fourth boundary or older falls in the final open-ended bucket.

PropertyValue
OData entity setMGCEarmarkClaimAgings (entity type MGCEarmarkClaimAging)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkClaimAgingStaging
CompanyCompany-specific (DataAreaId)
Primary keyClaimId (Claim ID), LineNum (Line number)
Data sourcesMGCEarmarkClaimAgingView

Fields

FieldLabelTypeSource
ClaimId (key)Claim IDString (MGCEarmarkClaimId)MGCEarmarkClaimAgingView.ClaimId
LineNum (key)Line numberReal (LineNum)MGCEarmarkClaimAgingView.LineNum
ClaimReferenceClaim referenceString (MGCEarmarkClaimLineRef)Computed
CounterpartyTypeCounterparty typeEnum MGCEarmarkClaimCounterpartyTypeMGCEarmarkClaimAgingView.CounterpartyType
CounterpartyAccountCounterparty accountString (MGCEarmarkAccountRelation)MGCEarmarkClaimAgingView.CounterpartyAccount
InvoiceAccountInvoice accountString (MGCEarmarkAccountRelation)MGCEarmarkClaimAgingView.InvoiceAccount
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkClaimAgingView.CurrencyCode
DealIdDeal IDString (MGCEarmarkDealId)MGCEarmarkClaimAgingView.DealId
DealGroupIdDeal group IDString (MGCEarmarkDealGroupId)MGCEarmarkClaimAgingView.DealGroupId
ItemIdItem numberString (ItemId)MGCEarmarkClaimAgingView.ItemId
ClaimAmountCurClaim amountReal (MGCEarmarkClaimAmount)MGCEarmarkClaimAgingView.ClaimAmountCur
ClaimAmountMSTClaim amount (accounting currency)Real (AmountMST)MGCEarmarkClaimAgingView.ClaimAmountMST
ApprovalVoucherApproval voucherString (Voucher)MGCEarmarkClaimAgingView.ApprovalVoucher
PostingStatusPosting statusEnum MGCEarmarkClaimPostingStatusMGCEarmarkClaimAgingView.PostingStatus
ApprovedDateTimeApproved onUtcDateTime (TransDateTime)MGCEarmarkClaimAgingView.ApprovedDateTime
DaysSinceApprovalDays since approvalIntegerMGCEarmarkClaimAgingView.DaysSinceApproval
  • ClaimReference (computed when read): The customer-facing reference for one claim line, composed as the claim ID, a hyphen and the line number. It is computed on read and never stored, because a stored copy would be a third place the string lives and the one that would eventually disagree with the two columns it was built from. Both halves are immutable, so the reference cannot change once it has been quoted. This is the string a counterparty reads back over the telephone and the string written as the text of the credit's journal line, so it is composed in exactly one place in the product and every surface that shows it shows the same characters.

Security

PrivilegeGrantsDutyRoles
View Earmark Claim Aging (data entity) (MGCEarmarkClaimAgingEntityViewPriv)ReadInquire into Earmark claims (MGCEarmarkClaimInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkClaimEntity​

Earmark claim headers

The read-only export of Earmark claim headers - the documents that turn accrued deal money into a counterparty credit. It is keyed on the claim ID, the natural key, never a record id, and it publishes both accounts the claim carries: the invoice account, which is the posting target and the grouping key, and the counterparty account, which is the party a person recognizes. The reversal reference travels as the reversing claim's ID rather than as a record id, so a reversal pair can be reconstructed from an exported file. The entity is read-only because every transition on a claim is a policy act with its own guard - generation runs the eligibility predicate and the movement engine; submission and approval run the segregation-of-duties verdicts and the full re-validation set; reversal runs the settlement check - and a writable entity would be a door into that state machine with none of them behind it. Copy-configuration is off: claims are transactional, and copying one into a test environment would put a live counterparty and a live amount where different people and different security apply.

PropertyValue
OData entity setMGCEarmarkClaims (entity type MGCEarmarkClaim)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkClaimStaging
CompanyCompany-specific (DataAreaId)
Primary keyClaimId (Claim ID)
Data sourcesMGCEarmarkClaim; ReversalClaim = MGCEarmarkClaim (outer join, read-only)

Fields

FieldLabelTypeSource
ClaimId (key)Claim IDString (MGCEarmarkClaimId)MGCEarmarkClaim.ClaimId
CounterpartyTypeCounterparty typeEnum MGCEarmarkClaimCounterpartyTypeMGCEarmarkClaim.CounterpartyType
CounterpartyAccountCounterparty accountString (MGCEarmarkAccountRelation)MGCEarmarkClaim.CounterpartyAccount
InvoiceAccountInvoice accountString (MGCEarmarkAccountRelation)MGCEarmarkClaim.InvoiceAccount
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkClaim.CurrencyCode
StatusClaim statusEnum MGCEarmarkClaimStatusMGCEarmarkClaim.Status
PostingStatusPosting statusEnum MGCEarmarkClaimPostingStatusMGCEarmarkClaim.PostingStatus
AssignedToAssigned toString (UserId)MGCEarmarkClaim.AssignedTo
AssignedByAssigned byString (UserId)MGCEarmarkClaim.AssignedBy
AssignedDateTimeAssigned onUtcDateTime (TransDateTime)MGCEarmarkClaim.AssignedDateTime
GeneratedByGenerated byString (UserId)MGCEarmarkClaim.GeneratedBy
GeneratedDateTimeGenerated onUtcDateTime (TransDateTime)MGCEarmarkClaim.GeneratedDateTime
SubmittedBySubmitted byString (UserId)MGCEarmarkClaim.SubmittedBy
SubmittedDateTimeSubmitted onUtcDateTime (TransDateTime)MGCEarmarkClaim.SubmittedDateTime
ApprovedByApproved byString (UserId)MGCEarmarkClaim.ApprovedBy
ApprovedDateTimeApproved onUtcDateTime (TransDateTime)MGCEarmarkClaim.ApprovedDateTime
WorkflowInstanceIdWorkflow instanceGuid (WorkflowInstanceId)MGCEarmarkClaim.WorkflowInstanceId
TotalAmountCurTotal claim amountReal (MGCEarmarkClaimAmount)MGCEarmarkClaim.TotalAmountCur
TotalAmountMSTTotal claim amount (accounting currency)Real (AmountMST)MGCEarmarkClaim.TotalAmountMST
ReturnFlagBadgeReturn review outstandingEnum NoYesMGCEarmarkClaim.ReturnFlagBadge
ReversalClaimIdClaim IDString (MGCEarmarkClaimId)ReversalClaim.ClaimId

Security

PrivilegeGrantsDutyRoles
View Earmark Claim (data entity) (MGCEarmarkClaimEntityViewPriv)ReadInquire into Earmark claims (MGCEarmarkClaimInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkClaimLineEntity​

Earmark claim lines

The read-only export of Earmark claim lines - the grain of the credit and of the claim statement. It is keyed on the claim ID and the line number, which together are the reference quoted to the counterparty; the line number is immutable after insert so that a reference already printed on a statement, and already written as the text of a posted journal line, keeps resolving. The statement's own columns - customer purchase order, sales order, invoice, invoice date, packing slip and ship date - are carried on the line because they are copied from the accrual transaction when the claim is generated, which is what lets the companion export and the accounts-receivable working list be a single query. There is deliberately no remaining or settled amount here: a claim ends at the credit, the remaining amount is always read live, and a stored copy would be stale the moment accounts receivable settled anything.

PropertyValue
OData entity setMGCEarmarkClaimLines (entity type MGCEarmarkClaimLine)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkClaimLineStaging
CompanyCompany-specific (DataAreaId)
Primary keyClaimId (Claim ID), LineNum (Line number)
Data sourcesMGCEarmarkClaimLine; Claim = MGCEarmarkClaim (outer join, read-only); AccrualInstance = MGCEarmarkAccrualInstance (outer join, read-only)

Fields

FieldLabelTypeSource
ClaimId (key)Claim IDString (MGCEarmarkClaimId)Claim.ClaimId
LineNum (key)Line numberReal (LineNum)MGCEarmarkClaimLine.LineNum
ClaimReferenceClaim referenceString (MGCEarmarkClaimLineRef)Computed
ClaimStatusClaim statusEnum MGCEarmarkClaimStatusClaim.Status
CounterpartyTypeCounterparty typeEnum MGCEarmarkClaimCounterpartyTypeClaim.CounterpartyType
CounterpartyAccountCounterparty accountString (MGCEarmarkAccountRelation)Claim.CounterpartyAccount
InvoiceAccountInvoice accountString (MGCEarmarkAccountRelation)Claim.InvoiceAccount
CurrencyCodeCurrencyString (CurrencyCode)Claim.CurrencyCode
AccrualTransIdAccrual transaction IDString (MGCEarmarkAccrualTransId)MGCEarmarkClaimLine.AccrualTransId
AccrualInstanceIdAccrual instanceString (MGCEarmarkAccrualInstanceId)AccrualInstance.AccrualInstanceId
DealIdDeal IDString (MGCEarmarkDealId)MGCEarmarkClaimLine.DealId
DealGroupIdDeal group IDString (MGCEarmarkDealGroupId)MGCEarmarkClaimLine.DealGroupId
ItemIdItem numberString (ItemId)MGCEarmarkClaimLine.ItemId
QtyQuantityReal (MGCEarmarkDealQty)MGCEarmarkClaimLine.Qty
QtyUnitQuantity unitString (UnitOfMeasureSymbol)MGCEarmarkClaimLine.QtyUnit
RateRateReal (MGCEarmarkAllowanceAmount)MGCEarmarkClaimLine.Rate
RateUnitRate unitString (UnitOfMeasureSymbol)MGCEarmarkClaimLine.RateUnit
ClaimAmountCurClaim amountReal (MGCEarmarkClaimAmount)MGCEarmarkClaimLine.ClaimAmountCur
ClaimAmountMSTClaim amount (accounting currency)Real (AmountMST)MGCEarmarkClaimLine.ClaimAmountMST
CustomerPOCustomer purchase orderString (CustPurchaseOrder)MGCEarmarkClaimLine.CustomerPO
SalesIdSales orderString (SalesIdBase)MGCEarmarkClaimLine.SalesId
InvoiceIdInvoiceString (InvoiceId)MGCEarmarkClaimLine.InvoiceId
InvoiceDateInvoice dateDate (TransDate)MGCEarmarkClaimLine.InvoiceDate
PackingSlipIdPacking slipString (PackingSlipId)MGCEarmarkClaimLine.PackingSlipId
ShipDateShip dateDate (TransDate)MGCEarmarkClaimLine.ShipDate
ApprovalJournalNumApproval journalString (LedgerJournalId)MGCEarmarkClaimLine.ApprovalJournalNum
ApprovalVoucherApproval voucherString (Voucher)MGCEarmarkClaimLine.ApprovalVoucher
PostingStatusPosting statusEnum MGCEarmarkClaimPostingStatusMGCEarmarkClaimLine.PostingStatus
ReturnFlagReturn after claimEnum NoYesMGCEarmarkClaimLine.ReturnFlag
ReturnFlagAcceptedReturn review acceptedEnum NoYesMGCEarmarkClaimLine.ReturnFlagAccepted
ReturnFlagReasonReturn review noteString (MGCEarmarkReasonNote)MGCEarmarkClaimLine.ReturnFlagReason
  • ClaimReference (computed when read): The customer-facing reference for one claim line, composed as the claim ID, a hyphen and the line number. It is computed on read and never stored, because a stored copy would be a third place the string lives and the one that would eventually disagree with the two columns it was built from. Both halves are immutable, so the reference cannot change once it has been quoted. This is the string a counterparty reads back over the telephone and the string written as the text of the credit's journal line, so it is composed in exactly one place in the product and every surface that shows it shows the same characters.

Security

PrivilegeGrantsDutyRoles
View Earmark Claim Line (data entity) (MGCEarmarkClaimLineEntityViewPriv)ReadInquire into Earmark claims (MGCEarmarkClaimInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkClaimMigrationEntity​

Earmark claim migration

Lands approved, not-yet-settled customer credits from the legacy system. Only an approved claim migrates: claim lines cannot be loaded, so an open or pending claim is refused and is decided in the legacy system first. Claims whose credit is already settled are not carried: settlement is ordinary accounts receivable and what is still open is all this product ever reads. Approved claims land approved, with the legacy approver and approval time, because those are facts the cut-over is carrying rather than acts this system is claiming to have performed. Where the legacy system claimed the same accrual twice, both credits are loaded faithfully and the duplicate is listed on the migration tie-out for finance to decide about - certification is blocked until somebody has.

Cut-over only. Writes are granted only through Migrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty), which ships attached to no role and is removed at go-live. See Migration and cut-over entities.

PropertyValue
OData entity setMGCEarmarkClaimMigrations (entity type MGCEarmarkClaimMigration)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkClaimMigrationStaging
CompanyCompany-specific (DataAreaId)
Primary keyClaimId (Claim ID)
Data sourcesMGCEarmarkClaim

Fields

FieldLabelTypeMandatoryEditSource
ClaimId (key)Claim IDString (MGCEarmarkClaimId)YesCreate onlyMGCEarmarkClaim.ClaimId
CounterpartyTypeCounterparty typeEnum MGCEarmarkClaimCounterpartyTypeCreate onlyMGCEarmarkClaim.CounterpartyType
CounterpartyAccountCounterparty accountString (MGCEarmarkAccountRelation)Create onlyMGCEarmarkClaim.CounterpartyAccount
InvoiceAccountInvoice accountString (MGCEarmarkAccountRelation)YesCreate onlyMGCEarmarkClaim.InvoiceAccount
CurrencyCodeCurrencyString (CurrencyCode)YesCreate onlyMGCEarmarkClaim.CurrencyCode
StatusClaim statusEnum MGCEarmarkClaimStatusCreate onlyMGCEarmarkClaim.Status
PostingStatusPosting statusEnum MGCEarmarkClaimPostingStatusCreate onlyMGCEarmarkClaim.PostingStatus
AssignedToAssigned toString (UserId)YesMGCEarmarkClaim.AssignedTo
AssignedDateTimeAssigned onUtcDateTime (TransDateTime)Create onlyMGCEarmarkClaim.AssignedDateTime
AssignedByAssigned byString (UserId)Create onlyMGCEarmarkClaim.AssignedBy
GeneratedByGenerated byString (UserId)Create onlyMGCEarmarkClaim.GeneratedBy
GeneratedDateTimeGenerated onUtcDateTime (TransDateTime)Create onlyMGCEarmarkClaim.GeneratedDateTime
SubmittedBySubmitted byString (UserId)Create onlyMGCEarmarkClaim.SubmittedBy
SubmittedDateTimeSubmitted onUtcDateTime (TransDateTime)Create onlyMGCEarmarkClaim.SubmittedDateTime
ApprovedByApproved byString (UserId)Create onlyMGCEarmarkClaim.ApprovedBy
ApprovedDateTimeApproved onUtcDateTime (TransDateTime)Create onlyMGCEarmarkClaim.ApprovedDateTime
TotalAmountCurTotal claim amountReal (MGCEarmarkClaimAmount)Create onlyMGCEarmarkClaim.TotalAmountCur
TotalAmountMSTTotal claim amount (accounting currency)Real (AmountMST)Create onlyMGCEarmarkClaim.TotalAmountMST
ReturnFlagBadgeReturn review outstandingEnum NoYesCreate onlyMGCEarmarkClaim.ReturnFlagBadge

Security

PrivilegeGrantsDutyRoles
View Earmark claim migration entity (MGCEarmarkClaimMigrationEntityViewPriv)ReadRun Earmark migration (MGCEarmarkRunMigrationDuty)No role by default
Maintain Earmark claim migration entity (MGCEarmarkClaimMigrationEntityMaintainPriv)Read, Create, Update, CorrectMigrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty)No role by default

MGCEarmarkClaimSettlementPreferenceEntity​

Earmark claim settlement preferences

The read-only export of the settlement preferences recorded against Earmark claim lines - what the counterparty asked for, when they asked, who recorded it and through which channel. Current and superseded rows are exported together, because the question the export is asked is what a customer has asked for over time and when they changed their mind, not only what they last said; a consumer that wants the live preference filters on the current flag. Recording a preference stays in the user interface: it is not a row insert but a supersession that flags the previous current row, points it at the new one and writes a timeline entry in one transaction, with exactly one current row per claim line enforced when the row is written. A writable entity would let a data load put a second current row on a line and the supersession history would stop meaning anything.

PropertyValue
OData entity setMGCEarmarkClaimSettlementPreferences (entity type MGCEarmarkClaimSettlementPreference)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkClaimSettlementPreferenceStaging
CompanyCompany-specific (DataAreaId)
Primary keySettlementPreferenceRecId (Record ID), ClaimId (Claim ID), LineNum (Line number), RecordedDateTime (Recorded on)
Data sourcesMGCEarmarkClaimSettlementPreference; ClaimLine = MGCEarmarkClaimLine (outer join, read-only); Claim = MGCEarmarkClaim (outer join, read-only)

Fields

FieldLabelTypeSource
SettlementPreferenceRecId (key)Record IDInt64 (RecId)MGCEarmarkClaimSettlementPreference.RecId
ClaimId (key)Claim IDString (MGCEarmarkClaimId)Claim.ClaimId
LineNum (key)Line numberReal (LineNum)ClaimLine.LineNum
ClaimReferenceClaim referenceString (MGCEarmarkClaimLineRef)Computed
InvoiceAccountInvoice accountString (MGCEarmarkAccountRelation)Claim.InvoiceAccount
PreferenceSettlement preferenceEnum MGCEarmarkSettlementPreferenceMGCEarmarkClaimSettlementPreference.Preference
DateReceivedDate receivedDate (TransDate)MGCEarmarkClaimSettlementPreference.DateReceived
SourcePreference sourceEnum MGCEarmarkPreferenceSourceMGCEarmarkClaimSettlementPreference.Source
NotePreference noteString (MGCEarmarkPreferenceNote)MGCEarmarkClaimSettlementPreference.Note
IsCurrentCurrentEnum NoYesMGCEarmarkClaimSettlementPreference.Current
RecordedByRecorded byString (UserId)MGCEarmarkClaimSettlementPreference.RecordedBy
RecordedDateTime (key)Recorded onUtcDateTime (TransDateTime)MGCEarmarkClaimSettlementPreference.RecordedDateTime
  • ClaimReference (computed when read): The customer-facing reference for one claim line, composed as the claim ID, a hyphen and the line number. It is computed on read and never stored, because a stored copy would be a third place the string lives and the one that would eventually disagree with the two columns it was built from. Both halves are immutable, so the reference cannot change once it has been quoted. This is the string a counterparty reads back over the telephone and the string written as the text of the credit's journal line, so it is composed in exactly one place in the product and every surface that shows it shows the same characters.

Security

PrivilegeGrantsDutyRoles
View Earmark Claim Settlement Preference (data entity) (MGCEarmarkClaimSettlementPreferenceEntityViewPriv)ReadInquire into Earmark claims (MGCEarmarkClaimInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkClaimStatementLineEntity​

Earmark claim statement lines

The read-only export of the available lines on the Earmark claim statement - approved claim lines whose credit still has an open amount. This is the companion spreadsheet that goes out beside the statement and the working list accounts receivable applies cash from, and it is built from the same live data the statement itself is built from, so the two can never disagree. The remaining amount is read live from the open-lines view rather than stored, which is what makes a re-run reflect settlements made since the last statement without anything being recalculated or archived. The statement itself carries no document number and is never archived; a run identifier exists for the internal run log and is not a number a customer can quote.

PropertyValue
OData entity setMGCEarmarkClaimStatementLines (entity type MGCEarmarkClaimStatementLine)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkClaimStatementLineStaging
CompanyCompany-specific (DataAreaId)
Primary keyClaimId (Claim ID), LineNum (Line number)
Data sourcesMGCEarmarkClaimLineOpenView; ClaimLine = MGCEarmarkClaimLine (outer join, read-only)

Fields

FieldLabelTypeSource
ClaimId (key)Claim IDString (MGCEarmarkClaimId)MGCEarmarkClaimLineOpenView.ClaimId
LineNum (key)Line numberReal (LineNum)MGCEarmarkClaimLineOpenView.LineNum
ClaimReferenceClaim referenceString (MGCEarmarkClaimLineRef)Computed
CounterpartyTypeCounterparty typeEnum MGCEarmarkClaimCounterpartyTypeMGCEarmarkClaimLineOpenView.CounterpartyType
CounterpartyAccountCounterparty accountString (MGCEarmarkAccountRelation)MGCEarmarkClaimLineOpenView.CounterpartyAccount
InvoiceAccountInvoice accountString (MGCEarmarkAccountRelation)MGCEarmarkClaimLineOpenView.InvoiceAccount
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkClaimLineOpenView.CurrencyCode
DealIdDeal IDString (MGCEarmarkDealId)MGCEarmarkClaimLineOpenView.DealId
DealGroupIdDeal group IDString (MGCEarmarkDealGroupId)MGCEarmarkClaimLineOpenView.DealGroupId
AccrualTransIdAccrual transaction IDString (MGCEarmarkAccrualTransId)MGCEarmarkClaimLineOpenView.AccrualTransId
ItemIdItem numberString (ItemId)MGCEarmarkClaimLineOpenView.ItemId
QtyQuantityReal (MGCEarmarkDealQty)ClaimLine.Qty
QtyUnitQuantity unitString (UnitOfMeasureSymbol)ClaimLine.QtyUnit
RateRateReal (MGCEarmarkAllowanceAmount)ClaimLine.Rate
RateUnitRate unitString (UnitOfMeasureSymbol)ClaimLine.RateUnit
ClaimAmountCurClaim amountReal (MGCEarmarkClaimAmount)MGCEarmarkClaimLineOpenView.ClaimAmountCur
ClaimAmountMSTClaim amount (accounting currency)Real (AmountMST)MGCEarmarkClaimLineOpenView.ClaimAmountMST
CustomerPOCustomer purchase orderString (CustPurchaseOrder)ClaimLine.CustomerPO
SalesIdSales orderString (SalesIdBase)ClaimLine.SalesId
InvoiceIdInvoiceString (InvoiceId)ClaimLine.InvoiceId
InvoiceDateInvoice dateDate (TransDate)ClaimLine.InvoiceDate
PackingSlipIdPacking slipString (PackingSlipId)ClaimLine.PackingSlipId
ShipDateShip dateDate (TransDate)ClaimLine.ShipDate
ReturnFlagReturn after claimEnum NoYesClaimLine.ReturnFlag
ReturnFlagAcceptedReturn review acceptedEnum NoYesClaimLine.ReturnFlagAccepted
PostingStatusPosting statusEnum MGCEarmarkClaimPostingStatusClaimLine.PostingStatus
ApprovedDateTimeApproved onUtcDateTime (TransDateTime)MGCEarmarkClaimLineOpenView.ApprovedDateTime
ApprovalJournalNumJournalString (LedgerJournalId)MGCEarmarkClaimLineOpenView.ApprovalJournalNum
ApprovalVoucherVoucherString (Voucher)MGCEarmarkClaimLineOpenView.ApprovalVoucher
TransDateDateDate (TransDate)MGCEarmarkClaimLineOpenView.TransDate
TransCurrencyCodeCurrencyString (CustCurrencyCode)MGCEarmarkClaimLineOpenView.TransCurrencyCode
TransAmountCurAmount in transaction currencyReal (AmountCurDebCred)MGCEarmarkClaimLineOpenView.TransAmountCur
SettledAmountSettledReal (AmountCur)MGCEarmarkClaimLineOpenView.SettledAmount
SettledAmountMSTAmount settledReal (AmountMST)MGCEarmarkClaimLineOpenView.SettledAmountMST
RemainingRemainingReal (MGCEarmarkRemainingAmount)MGCEarmarkClaimLineOpenView.Remaining
RemainingMSTAmountReal (AmountMST)MGCEarmarkClaimLineOpenView.RemainingMST
LastSettlementDateLast settlement dateDate (TransDate)MGCEarmarkClaimLineOpenView.LastSettlementDate
ClosedClosedDate (TransDate)MGCEarmarkClaimLineOpenView.Closed
  • ClaimReference (computed when read): The customer-facing reference for one claim line, composed as the claim ID, a hyphen and the line number. It is computed on read and never stored, because a stored copy would be a third place the string lives and the one that would eventually disagree with the two columns it was built from. Both halves are immutable, so the reference cannot change once it has been quoted. This is the string a counterparty reads back over the telephone and the string written as the text of the credit's journal line, so it is composed in exactly one place in the product and every surface that shows it shows the same characters.

Security

PrivilegeGrantsDutyRoles
View Earmark Claim Statement Line (data entity) (MGCEarmarkClaimStatementLineEntityViewPriv)ReadInquire into Earmark claims (MGCEarmarkClaimInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkClaimStatementRunEntity​

Earmark claim statement runs

The read-only export of the Earmark claim statement run log - which customer was sent a statement, as of which date, over which period, by whom, and whether the run was a re-run of an earlier one. A row exists only where a statement actually rendered: a render failure produces an execution exception in the workbench and no log row, so counting rows counts statements that reached a destination rather than attempts. The run identifier is internal and is never printed on the customer copy - the statement is regenerated from live data and has no document number - but the run log is the only record that an issued statement existed, and re-running a statement as of a past date reads its period and as-of date from here. These rows are exempt from retention for that reason. The internal-copy flag distinguishes the copy that carries the accrued-not-yet-claimed and general-ledger sections from the customer copy that never does.

PropertyValue
OData entity setMGCEarmarkClaimStatementRuns (entity type MGCEarmarkClaimStatementRun)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkClaimStatementRunStaging
CompanyCompany-specific (DataAreaId)
Primary keyStatementRunId (Statement run ID)
Data sourcesMGCEarmarkClaimStatementRun; ReRunOfRun = MGCEarmarkClaimStatementRun (outer join, read-only)

Fields

FieldLabelTypeSource
StatementRunId (key)Statement run IDString (MGCEarmarkStatementRunId)MGCEarmarkClaimStatementRun.StatementRunId
InvoiceAccountInvoice accountString (MGCEarmarkAccountRelation)MGCEarmarkClaimStatementRun.InvoiceAccount
AsOfDateAs of dateDate (TransDate)MGCEarmarkClaimStatementRun.AsOfDate
PeriodFromPeriod fromDate (TransDate)MGCEarmarkClaimStatementRun.PeriodFrom
PeriodToPeriod toDate (TransDate)MGCEarmarkClaimStatementRun.PeriodTo
ModeStatement modeEnum MGCEarmarkStatementModeMGCEarmarkClaimStatementRun.Mode
InternalCopyInternal copyEnum NoYesMGCEarmarkClaimStatementRun.InternalCopy
AvailableBalanceAvailable balanceReal (MGCEarmarkAvailableBalance)MGCEarmarkClaimStatementRun.AvailableBalance
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkClaimStatementRun.CurrencyCode
LineCountLinesInteger (Counter)MGCEarmarkClaimStatementRun.LineCount
IsReRunRe-runEnum NoYesMGCEarmarkClaimStatementRun.IsReRun
ReRunOfStatementRunIdStatement run IDString (MGCEarmarkStatementRunId)ReRunOfRun.StatementRunId
RunByRun byString (UserId)MGCEarmarkClaimStatementRun.RunBy
RunDateTimeRun onUtcDateTime (TransDateTime)MGCEarmarkClaimStatementRun.RunDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark Claim Statement Run (data entity) (MGCEarmarkClaimStatementRunEntityViewPriv)ReadInquire into Earmark claims (MGCEarmarkClaimInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkClaimsAvailableByCustomerEntity​

Earmark claims available by customer

The read-only export of the Earmark credit available to each counterparty account, aggregated from the open claim lines - the balance, the age of the oldest approved claim behind it, how many claim lines make it up, and how many settlement preferences are still outstanding. It is one row per invoice account, counterparty type and currency rather than one row per claim line, so it is safe to publish to a data lake or a reporting warehouse at a cadence a line-level export could not sustain, and every row is a figure a business reader can act on without a join. The balance is computed from live settlement data every time it is read; nothing here is stored, so two reads on the same day can legitimately differ and neither is a ledger. The date a customer was last sent a statement is deliberately not a column here: the statement run log holds one row per run per account, and joining it into this aggregate would multiply every claim line by the number of statements that account has ever received and overstate the balance. Read the statement run export beside this one and join on the invoice account.

PropertyValue
OData entity setMGCEarmarkClaimsAvailableByCustomers (entity type MGCEarmarkClaimsAvailableByCustomer)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkClaimsAvailableByCustomerStaging
CompanyCompany-specific (DataAreaId)
Primary keyInvoiceAccount (Invoice account), CounterpartyType (Counterparty type), CurrencyCode (Currency)
Data sourcesMGCEarmarkClaimsAvailableByCustomerView

Fields

FieldLabelTypeSource
InvoiceAccount (key)Invoice accountString (MGCEarmarkAccountRelation)MGCEarmarkClaimsAvailableByCustomerView.InvoiceAccount
CounterpartyType (key)Counterparty typeEnum MGCEarmarkClaimCounterpartyTypeMGCEarmarkClaimsAvailableByCustomerView.CounterpartyType
CurrencyCode (key)CurrencyString (CurrencyCode)MGCEarmarkClaimsAvailableByCustomerView.CurrencyCode
AvailableBalanceAvailable balanceReal (MGCEarmarkAvailableBalance)MGCEarmarkClaimsAvailableByCustomerView.AvailableBalance
AvailableBalanceMSTAmountReal (AmountMST)MGCEarmarkClaimsAvailableByCustomerView.AvailableBalanceMST
OldestApprovalDateOldest approval dateUtcDateTime (TransDateTime)MGCEarmarkClaimsAvailableByCustomerView.OldestApprovalDate
OpenLineCountOpen linesCountMGCEarmarkClaimsAvailableByCustomerView.OpenLineCount
PreferencesOutstandingLines without a preferenceIntegerMGCEarmarkClaimsAvailableByCustomerView.PreferencesOutstanding

Security

PrivilegeGrantsDutyRoles
View Earmark Claims Available By Customer (data entity) (MGCEarmarkClaimsAvailableByCustomerEntityViewPriv)ReadInquire into Earmark claims (MGCEarmarkClaimInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkControlVerdictEntity​

Earmark control verdict entity

The read-only export of the control verdict register - the breach export. It is what a finance team pulls to answer why a program accrued less than the commercial team expected, and what a reporting model reads to plot clipping over time. Read-only is the posture rather than a convenience: the register is written by the control evaluator and by nothing else, and an entity that could create a verdict would be a second, ungoverned way to assert that a control fired. Each row carries both the computed and the applied figures, so the export says what a control did rather than only that it did something.

PropertyValue
OData entity setMGCEarmarkControlVerdicts (entity type MGCEarmarkControlVerdict)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkControlVerdictStaging
CompanyCompany-specific (DataAreaId)
Primary keyControlVerdictRecId (Record ID), DealId (Deal ID), VerdictType (Verdict), VerdictDateTime (Verdict date and time)
Data sourcesMGCEarmarkControlVerdict

Fields

FieldLabelTypeSource
ControlVerdictRecId (key)Record IDInt64 (RecId)MGCEarmarkControlVerdict.RecId
VerdictType (key)VerdictEnum MGCEarmarkControlVerdictTypeMGCEarmarkControlVerdict.VerdictType
VerdictDateTime (key)Verdict date and timeUtcDateTime (TransDateTime)MGCEarmarkControlVerdict.VerdictDateTime
DealId (key)Deal IDString (MGCEarmarkDealId)MGCEarmarkControlVerdict.DealId
CounterpartyAccountCounterpartyString (MGCEarmarkAccountRelation)MGCEarmarkControlVerdict.CounterpartyAccount
AccrualInstanceAccrual instanceInt64 (RefRecId)MGCEarmarkControlVerdict.AccrualInstance
AccrualTransAccrual transactionInt64 (RefRecId)MGCEarmarkControlVerdict.AccrualTrans
ComputedAmountComputed amountReal (MGCEarmarkAccrualAmount)MGCEarmarkControlVerdict.ComputedAmount
AppliedAmountApplied amountReal (MGCEarmarkAccrualAmount)MGCEarmarkControlVerdict.AppliedAmount
ComputedQtyComputed quantityReal (MGCEarmarkDealQty)MGCEarmarkControlVerdict.ComputedQty
AppliedQtyApplied quantityReal (MGCEarmarkDealQty)MGCEarmarkControlVerdict.AppliedQty
ResolvedResolvedEnum NoYesMGCEarmarkControlVerdict.Resolved
ResolvedByResolved byString (UserId)MGCEarmarkControlVerdict.ResolvedBy
ResolvedDateTimeResolved date and timeUtcDateTime (TransDateTime)MGCEarmarkControlVerdict.ResolvedDateTime
ResolutionNoteResolution noteString (MGCEarmarkReasonNote)MGCEarmarkControlVerdict.ResolutionNote

Security

PrivilegeGrantsDutyRoles
View Earmark Control Verdict (data entity) (MGCEarmarkControlVerdictEntityViewPriv)ReadMonitor Earmark deal control (MGCEarmarkMonitorDealControlDuty)Sales manager (TradeSalesManager)

MGCEarmarkDealBalanceEntity​

Earmark deal balances

The maintained Earmark deal balances, read-only, keyed on the balance level, the deal ID, the counterparty account and the funding rule. It is the lake-safe aggregate behind the deal control workspace's figures and the integration answer to how much a deal has accrued: money accrued and posted, money accrued into an unposted journal, money reversed, returned, claimed and claim-approved, quantity to date, quantity accumulated below the qualifying minimum, the value waiting to be caught up, and the headroom left against the lifetime cap. It carries no settled figure and deliberately never will: settled money is derived on read from the open claim lines, and a stored copy exported into a lake would keep reporting settled money as outstanding for as long as the extract lived. The entity cannot create, change or delete a balance - a balance is derived from movements, and one written any other way would be money asserted from nothing. It is deliberately not part of the copy-configuration set: a balance is evidence about one environment.

PropertyValue
OData entity setMGCEarmarkDealBalances (entity type MGCEarmarkDealBalance)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkDealBalanceStaging
CompanyCompany-specific (DataAreaId)
Primary keyLevel (Balance level), DealId (Deal ID), CounterpartyAccount (Counterparty account), FundingRule (Funding rule) (record ID)
Data sourcesMGCEarmarkDealBalance

Fields

FieldLabelTypeSource
Level (key)Balance levelEnum MGCEarmarkBalanceLevelMGCEarmarkDealBalance.Level
DealId (key)Deal IDString (MGCEarmarkDealId)MGCEarmarkDealBalance.DealId
CounterpartyAccount (key)Counterparty accountString (MGCEarmarkAccountRelation)MGCEarmarkDealBalance.CounterpartyAccount
FundingRule (key)Funding ruleInt64 (RefRecId)MGCEarmarkDealBalance.FundingRule
AccruedPostedAccrued and postedReal (MGCEarmarkBalanceAmount)MGCEarmarkDealBalance.AccruedPosted
AccruedPendingAccrued, journal pendingReal (MGCEarmarkBalanceAmount)MGCEarmarkDealBalance.AccruedPending
ReversedReversedReal (MGCEarmarkBalanceAmount)MGCEarmarkDealBalance.Reversed
ReturnedReturnedReal (MGCEarmarkBalanceAmount)MGCEarmarkDealBalance.Returned
ClaimedClaimedReal (MGCEarmarkBalanceAmount)MGCEarmarkDealBalance.Claimed
ClaimApprovedClaim approvedReal (MGCEarmarkBalanceAmount)MGCEarmarkDealBalance.ClaimApproved
QuantityToDateQuantity to dateReal (MGCEarmarkDealQty)MGCEarmarkDealBalance.QuantityToDate
QuantityBelowThresholdQuantity below thresholdReal (MGCEarmarkDealQty)MGCEarmarkDealBalance.QuantityBelowThreshold
PendingCatchUpValuePending catch-up valueReal (MGCEarmarkCatchUpValue)MGCEarmarkDealBalance.PendingCatchUpValue
HeadroomAmountHeadroom amountReal (MGCEarmarkHeadroomAmount)MGCEarmarkDealBalance.HeadroomAmount
HeadroomPercentHeadroom percentageReal (MGCEarmarkHeadroomPercent)MGCEarmarkDealBalance.HeadroomPercent
LastAccrualDateLast accrual dateDate (TransDate)MGCEarmarkDealBalance.LastAccrualDate
RebuiltDateTimeRebuiltUtcDateTime (TransDateTime)MGCEarmarkDealBalance.RebuiltDateTime
RebuildVarianceRebuild varianceReal (MGCEarmarkBalanceAmount)MGCEarmarkDealBalance.RebuildVariance

Security

PrivilegeGrantsDutyRoles
View Earmark Deal Balance (data entity) (MGCEarmarkDealBalanceEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkDealMigrationEntity​

Earmark deal migration

Lands trade deals from the legacy system, including deals that were already approved there. It is a SECOND deal entity on purpose: the everyday deal entity cannot create an approved deal, because approval is a workflow outcome and an import that could assert it would make the approver column worthless - but a cut-over has to, or every historic accrual under a migrated deal becomes unexplainable. This entity is reachable only under the time-boxed migration bypass privilege, which certification lists for revocation at go-live. The legacy accrual identifier is carried forward as the deal identifier rather than re-numbered, so that documents and conversations that already quote it still resolve. The owning table still validates every row: the load bypasses the approval workflow, never the rules that are true of a deal.

Cut-over only. Writes are granted only through Migrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty), which ships attached to no role and is removed at go-live. See Migration and cut-over entities.

PropertyValue
OData entity setMGCEarmarkDealMigrations (entity type MGCEarmarkDealMigration)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkDealMigrationStaging
CompanyCompany-specific (DataAreaId)
Primary keyDealId (Deal ID)
Data sourcesMGCEarmarkDeal

Fields

FieldLabelTypeMandatoryEditSource
DealId (key)Deal IDString (MGCEarmarkDealId)YesCreate onlyMGCEarmarkDeal.DealId
NameNameString (MGCEarmarkDealName)YesYesMGCEarmarkDeal.Name
DealGroupIdDeal groupString (MGCEarmarkDealGroupId)YesMGCEarmarkDeal.DealGroupId
DealOwnerDeal ownerString (UserId)YesMGCEarmarkDeal.DealOwner
ModuleModuleEnum MGCEarmarkModuleYesCreate onlyMGCEarmarkDeal.Module
ShapeDeal shapeEnum MGCEarmarkDealShapeYesCreate onlyMGCEarmarkDeal.Shape
TriggerSideTrigger sideEnum MGCEarmarkTriggerSideYesMGCEarmarkDeal.TriggerSide
ValidFromEffectiveDate (TransDate)YesYesMGCEarmarkDeal.ValidFrom
ValidToExpirationDate (TransDate)YesYesMGCEarmarkDeal.ValidTo
CurrencyCodeDeal currencyString (CurrencyCode)YesYesMGCEarmarkDeal.CurrencyCode
TaxGroupSales tax groupString (TaxGroup)YesMGCEarmarkDeal.TaxGroup
PaymModeIdMethod of paymentString (MGCEarmarkNaturalKey)YesMGCEarmarkDeal.PaymModeId
AccrualPointAccrual pointEnum MGCEarmarkAccrualPointYesMGCEarmarkDeal.AccrualPoint
PriceModePrice modeEnum MGCEarmarkPriceModeYesMGCEarmarkDeal.PriceMode
DealUnitDeal unitString (UnitOfMeasureSymbol)YesMGCEarmarkDeal.DealUnit
RateBasisRate basisEnum MGCEarmarkRateBasisYesYesMGCEarmarkDeal.RateBasis
AccrualAmountAccrual amountReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.AccrualAmount
AccrualAmountUnitQtyPer quantityReal (MGCEarmarkAmountUnitQty)YesMGCEarmarkDeal.AccrualAmountUnitQty
AccrualPercentAccrual percentageReal (MGCEarmarkRatePercent)YesMGCEarmarkDeal.AccrualPercent
FixedAmountFixed amountReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.FixedAmount
MinAccrualPerTransMinimum accrual per transactionReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.MinAccrualPerTrans
MaxAccrualPerTransMaximum accrual per transactionReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.MaxAccrualPerTrans
LifetimeCapLifetime capReal (MGCEarmarkAccrualAmount)YesMGCEarmarkDeal.LifetimeCap
MinQuantityMinimum qualifying quantityReal (MGCEarmarkDealQty)YesMGCEarmarkDeal.MinQuantity
MaxQuantityMaximum qualifying quantityReal (MGCEarmarkDealQty)YesMGCEarmarkDeal.MaxQuantity
CriteriaTypeCriteria typeEnum MGCEarmarkCriteriaTypeYesMGCEarmarkDeal.CriteriaType
AllowAmountEditAllow amount editEnum NoYesYesMGCEarmarkDeal.AllowAmountEdit
HeadroomAlertPercentHeadroom alert percentageReal (MGCEarmarkRatePercent)YesMGCEarmarkDeal.HeadroomAlertPercent
ClaimableByClaimable byEnum MGCEarmarkClaimableByYesMGCEarmarkDeal.ClaimableBy
AccountSourceAccount sourceEnum MGCEarmarkAccountSourceYesMGCEarmarkDeal.AccountSource
FundingVendorAccountFunding vendorString (VendAccount)YesMGCEarmarkDeal.FundingVendorAccount
StatusDeal statusEnum MGCEarmarkDealStatusCreate onlyMGCEarmarkDeal.Status
ApprovedByApproved byString (UserId)Create onlyMGCEarmarkDeal.ApprovedBy
ApprovedDateTimeApprovedUtcDateTime (TransDateTime)Create onlyMGCEarmarkDeal.ApprovedDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark deal migration entity (MGCEarmarkDealMigrationEntityViewPriv)ReadRun Earmark migration (MGCEarmarkRunMigrationDuty)No role by default
Maintain Earmark deal migration entity (MGCEarmarkDealMigrationEntityMaintainPriv)Read, Create, Update, CorrectMigrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty)No role by default

MGCEarmarkExecutionExceptionEntity​

Earmark execution exceptions

The Earmark execution-exception workbench, read-only, keyed on the exception ID. An execution exception is a malfunction that a post-commit step swallowed so that it could never change a native document's outcome: the account was unresolvable, the journal post threw, the timeline or platform write failed. Each row names the operation, the source document, the legal entity the operation ran in, how many times it has been retried and when. The table is cross-company so that one workbench triages the whole estate, which is why the exception ID draws from a global number sequence and why this entity carries no company context. The entity exists for monitoring and analytics; its staging table serves export only, because the platform routes every data-management export through one. Rows are created, retried, resolved and dismissed only through the exception service, never through a data load. It is deliberately not part of the copy-configuration set.

PropertyValue
OData entity setMGCEarmarkExecutionExceptions (entity type MGCEarmarkExecutionException)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkExecutionExceptionStaging
CompanyShared across companies
Primary keyExceptionId (Exception ID)
Data sourcesMGCEarmarkExecutionException

Fields

FieldLabelTypeSource
ExceptionId (key)Exception IDString (MGCEarmarkExceptionId)MGCEarmarkExecutionException.ExceptionId
SourceDocumentTypeSource document typeEnum MGCEarmarkDocumentTypeMGCEarmarkExecutionException.SourceDocumentType
SourceRecIdSource referenceInt64 (RefRecId)MGCEarmarkExecutionException.SourceRecId
SourceNaturalKeySource documentString (MGCEarmarkNaturalKey)MGCEarmarkExecutionException.SourceNaturalKey
SourcePackageSource areaEnum MGCEarmarkSourcePackageMGCEarmarkExecutionException.SourcePackage
OperationOperationEnum MGCEarmarkExceptionOperationMGCEarmarkExecutionException.Operation
MessageMessageString (Notes)MGCEarmarkExecutionException.Message
CompanyCompanyString (DataAreaId)MGCEarmarkExecutionException.Company
StatusException statusEnum MGCEarmarkExceptionStatusMGCEarmarkExecutionException.Status
DismissReasonDismiss reasonString (MGCEarmarkDismissReason)MGCEarmarkExecutionException.DismissReason
RetryCountRetriesInteger (Integer)MGCEarmarkExecutionException.RetryCount
LastAttemptDateTimeLast attemptUtcDateTime (TransDateTime)MGCEarmarkExecutionException.LastAttemptDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark Execution Exception (data entity) (MGCEarmarkExecutionExceptionEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkLinePriceEntity​

Earmark line price builds

Read-only. The decomposition per build, including history and stale state - the feed that answers how much of what was invoiced is deal money the customer will hand back. Every build is exported, not only the current one, so a revenue model can filter on the current flag while an audit reads the whole history of a line that was priced three times. It cannot create a build: building a price also freezes an accrual instance per included deal in one transaction, and a build no instance backs would be money the deal balance has never heard of.

PropertyValue
OData entity setMGCEarmarkLinePrices (entity type MGCEarmarkLinePrice)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkLinePriceStaging
CompanyCompany-specific (DataAreaId)
Primary keyLinePriceRecId (Record ID), OrderId (Order), LineNum (Line number), BuildNumber (Build number)
Data sourcesMGCEarmarkLinePrice

Fields

FieldLabelTypeSource
LinePriceRecId (key)Record IDInt64 (RecId)MGCEarmarkLinePrice.RecId
OrderId (key)OrderString (MGCEarmarkNaturalKey)MGCEarmarkLinePrice.OrderId
LineNum (key)Line numberReal (LineNum)MGCEarmarkLinePrice.LineNum
BuildNumber (key)Build numberInteger (MGCEarmarkBuildNumber)MGCEarmarkLinePrice.BuildNumber
LineTableIdLine tableInteger (RefTableId)MGCEarmarkLinePrice.LineTableId
LineRecIdLine referenceInt64 (RefRecId)MGCEarmarkLinePrice.LineRecId
InventTransIdInventory transactionString (InventTransId)MGCEarmarkLinePrice.InventTransId
CurrentCurrentEnum NoYesMGCEarmarkLinePrice.Current
BuildStateBuild stateEnum MGCEarmarkBuildStateMGCEarmarkLinePrice.BuildState
BuildSourceBuild sourceEnum MGCEarmarkBuildSourceMGCEarmarkLinePrice.BuildSource
IdempotencyKeyIdempotency keyString (MGCEarmarkIdempotencyKey)MGCEarmarkLinePrice.IdempotencyKey
BuiltByBuilt byString (UserId)MGCEarmarkLinePrice.BuiltBy
BuiltDateTimeBuilt onUtcDateTime (TransDateTime)MGCEarmarkLinePrice.BuiltDateTime
BasePriceCurBase priceReal (MGCEarmarkUnitPriceAmount)MGCEarmarkLinePrice.BasePriceCur
BasePriceMSTBase price (accounting currency)Real (MGCEarmarkUnitPriceAmount)MGCEarmarkLinePrice.BasePriceMST
OverBasisCurOver-basisReal (MGCEarmarkOverBasisAmount)MGCEarmarkLinePrice.OverBasisCur
OverBasisMSTOver-basis (accounting currency)Real (MGCEarmarkOverBasisAmount)MGCEarmarkLinePrice.OverBasisMST
DealMoneyCurDeal moneyReal (MGCEarmarkDealMoneyAmount)MGCEarmarkLinePrice.DealMoneyCur
DealMoneyMSTDeal money (accounting currency)Real (MGCEarmarkDealMoneyAmount)MGCEarmarkLinePrice.DealMoneyMST
AllowanceCurAllowanceReal (MGCEarmarkAllowanceAmount)MGCEarmarkLinePrice.AllowanceCur
AllowanceMSTAllowance (accounting currency)Real (MGCEarmarkAllowanceAmount)MGCEarmarkLinePrice.AllowanceMST
UnitPriceCurBuilt unit priceReal (MGCEarmarkUnitPriceAmount)MGCEarmarkLinePrice.UnitPriceCur
UnitPriceMSTBuilt unit price (accounting currency)Real (MGCEarmarkUnitPriceAmount)MGCEarmarkLinePrice.UnitPriceMST
PriceUnitPrice unitReal (PriceUnit)MGCEarmarkLinePrice.PriceUnit
PriceModeSummaryPrice modeEnum MGCEarmarkPriceModeMGCEarmarkLinePrice.PriceModeSummary
PreBuildUnitPricePrice before buildReal (MGCEarmarkUnitPriceAmount)MGCEarmarkLinePrice.PreBuildUnitPrice
BuildExchRateExchange rateReal (ExchRate)MGCEarmarkLinePrice.BuildExchRate
BuildRateTypeExchange rate typeString (ExchangeRateTypeName)MGCEarmarkLinePrice.BuildRateType
BuildRateDateExchange rate dateDate (TransDate)MGCEarmarkLinePrice.BuildRateDate
FpItemIdItem at buildString (ItemId)MGCEarmarkLinePrice.FpItemId
FpInventDimIdDimensions at buildString (InventDimId)MGCEarmarkLinePrice.FpInventDimId
FpQtyQuantity at buildReal (MGCEarmarkDealQty)MGCEarmarkLinePrice.FpQty
FpSalesUnitUnit at buildString (UnitOfMeasureSymbol)MGCEarmarkLinePrice.FpSalesUnit
FpPriceUnitPrice unit at buildReal (PriceUnit)MGCEarmarkLinePrice.FpPriceUnit
FpInvoiceAccountInvoice account at buildString (MGCEarmarkAccountRelation)MGCEarmarkLinePrice.FpInvoiceAccount
FpEligibilityDateEligibility date at buildDate (TransDate)MGCEarmarkLinePrice.FpEligibilityDate
FpCurrencyCodeCurrency at buildString (CurrencyCode)MGCEarmarkLinePrice.FpCurrencyCode
AcknowledgedByAcknowledged byString (UserId)MGCEarmarkLinePrice.AcknowledgedBy
AcknowledgedDateTimeAcknowledged onUtcDateTime (TransDateTime)MGCEarmarkLinePrice.AcknowledgedDateTime
AcknowledgeReasonCodeAcknowledgement reasonString (ReasonCode)MGCEarmarkLinePrice.AcknowledgeReasonCode

Security

PrivilegeGrantsDutyRoles
View Earmark Line Price (data entity) (MGCEarmarkLinePriceEntityViewPriv)ReadInquire into price build-up (MGCEarmarkLinePriceInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Earmark auditor (MGCEarmarkAuditor), Earmark deal approver (MGCEarmarkDealApprover), Customer service representative (TradeCustomerServiceRepresentative), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager)

MGCEarmarkLinePriceComponentEntity​

Earmark line price components

Read-only. Deal money and allowance per deal per line - the feed that nets deal money out of gross revenue. It joins its parent build for the order, line and build number, so those facts are read from the one place they are true. The price mode on each row decides where the money went: a grossed-up component was added into the invoiced price and will be claimed back, while an off-invoice allowance never entered the price at all, and a model that summed both would count the liability twice.

PropertyValue
OData entity setMGCEarmarkLinePriceComponents (entity type MGCEarmarkLinePriceComponent)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkLinePriceComponentStaging
CompanyCompany-specific (DataAreaId)
Primary keyLinePriceComponentRecId (Record ID), OrderId (Order), LineNum (Line number), BuildNumber (Build number), ComponentType (Component type), DealId (Deal)
Data sourcesMGCEarmarkLinePriceComponent; LinePrice = MGCEarmarkLinePrice (inner join, read-only)

Fields

FieldLabelTypeSource
LinePriceComponentRecId (key)Record IDInt64 (RecId)MGCEarmarkLinePriceComponent.RecId
OrderId (key)OrderString (MGCEarmarkNaturalKey)LinePrice.OrderId
LineNum (key)Line numberReal (LineNum)LinePrice.LineNum
BuildNumber (key)Build numberInteger (MGCEarmarkBuildNumber)LinePrice.BuildNumber
CurrentCurrentEnum NoYesLinePrice.Current
BuildStateBuild stateEnum MGCEarmarkBuildStateLinePrice.BuildState
InventTransIdInventory transactionString (InventTransId)LinePrice.InventTransId
CurrencyCodeCurrency at buildString (CurrencyCode)LinePrice.FpCurrencyCode
ComponentType (key)Component typeEnum MGCEarmarkComponentTypeMGCEarmarkLinePriceComponent.ComponentType
DealId (key)DealString (MGCEarmarkDealId)MGCEarmarkLinePriceComponent.DealId
ResolvedPriceModePrice modeEnum MGCEarmarkPriceModeMGCEarmarkLinePriceComponent.ResolvedPriceMode
AccrualInstanceAccrual instanceInt64 (RefRecId)MGCEarmarkLinePriceComponent.AccrualInstance
AmountPerDealUnitCurAmount per deal unitReal (MGCEarmarkAccrualAmount)MGCEarmarkLinePriceComponent.AmountPerDealUnitCur
AmountPerDealUnitMSTAmount per deal unit (accounting currency)Real (MGCEarmarkAccrualAmountMST)MGCEarmarkLinePriceComponent.AmountPerDealUnitMST
AmountPerSalesUnitCurAmount per sales unitReal (MGCEarmarkAccrualAmount)MGCEarmarkLinePriceComponent.AmountPerSalesUnitCur
AmountPerSalesUnitMSTAmount per sales unit (accounting currency)Real (MGCEarmarkAccrualAmountMST)MGCEarmarkLinePriceComponent.AmountPerSalesUnitMST
AmountPerPriceUnitCurAmount per price unitReal (MGCEarmarkAccrualAmount)MGCEarmarkLinePriceComponent.AmountPerPriceUnitCur
AmountPerPriceUnitMSTAmount per price unit (accounting currency)Real (MGCEarmarkAccrualAmountMST)MGCEarmarkLinePriceComponent.AmountPerPriceUnitMST
DealUnitFactorDeal unit factorReal (MGCEarmarkConversionFactor)MGCEarmarkLinePriceComponent.DealUnitFactor
SalesUnitFactorSales unit factorReal (MGCEarmarkSalesUnitFactor)MGCEarmarkLinePriceComponent.SalesUnitFactor
AmountEditedAmount editedEnum NoYesMGCEarmarkLinePriceComponent.AmountEdited
OriginalAmountOriginal amountReal (MGCEarmarkAccrualAmount)MGCEarmarkLinePriceComponent.OriginalAmount

Security

PrivilegeGrantsDutyRoles
View Earmark Line Price Component (data entity) (MGCEarmarkLinePriceComponentEntityViewPriv)ReadInquire into price build-up (MGCEarmarkLinePriceInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Earmark auditor (MGCEarmarkAuditor), Earmark deal approver (MGCEarmarkDealApprover), Customer service representative (TradeCustomerServiceRepresentative), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager)

MGCEarmarkMigrationBatchEntity​

Earmark migration batches

Read-only audit export of a cut-over, one row per batch and step, carrying the batch header, the step record counts and the certification. Batches with no steps prepared still appear, with the step columns empty. Tie-out lines and dispositions export through the migration tie-out entity. Nothing is loadable: an importable batch could assert that a ledger was tied out and certified when nothing was ever compared.

Cut-over. Used while running and certifying a migration batch. See Migration and cut-over entities.

PropertyValue
OData entity setMGCEarmarkMigrationBatches (entity type MGCEarmarkMigrationBatch)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkMigrationBatchStaging
CompanyCompany-specific (DataAreaId)
Primary keyMigrationBatchId (Migration batch ID), Step (Migration step)
Data sourcesMGCEarmarkMigrationBatch; MGCEarmarkMigrationBatchStep (outer join, read-only)

Fields

FieldLabelTypeSource
MigrationBatchId (key)Migration batch IDString (MGCEarmarkMigrationBatchId)MGCEarmarkMigrationBatch.MigrationBatchId
SourceSystemSource systemString (MGCEarmarkNaturalKey)MGCEarmarkMigrationBatch.SourceSystem
ExportDateExport dateDate (TransDate)MGCEarmarkMigrationBatch.ExportDate
BatchStatusStatusEnum MGCEarmarkMigrationStepStatusMGCEarmarkMigrationBatch.Status
CertifiedByCertified byString (UserId)MGCEarmarkMigrationBatch.CertifiedBy
CertifiedDateTimeCertifiedUtcDateTime (TransDateTime)MGCEarmarkMigrationBatch.CertifiedDateTime
BypassPrivilegeRevokedBypass privilege revokedEnum NoYesMGCEarmarkMigrationBatch.BypassPrivilegeRevoked
Step (key)Migration stepEnum MGCEarmarkMigrationStepMGCEarmarkMigrationBatchStep.Step
StepStatusStatusEnum MGCEarmarkMigrationStepStatusMGCEarmarkMigrationBatchStep.Status
RowsStagedStagedInteger (Counter)MGCEarmarkMigrationBatchStep.RowsStaged
RowsValidatedValidatedInteger (Counter)MGCEarmarkMigrationBatchStep.RowsValidated
RowsLoadedLoadedInteger (Counter)MGCEarmarkMigrationBatchStep.RowsLoaded
RowsRejectedRejectedInteger (Counter)MGCEarmarkMigrationBatchStep.RowsRejected
RowsDispositionedDispositionedInteger (Counter)MGCEarmarkMigrationBatchStep.RowsDispositioned
LastRunDateTimeLast runUtcDateTime (TransDateTime)MGCEarmarkMigrationBatchStep.LastRunDateTime
ExceptionCountExceptionsInteger (Counter)MGCEarmarkMigrationBatchStep.ExceptionCount

Security

PrivilegeGrantsDutyRoles
View Earmark migration batch entity (MGCEarmarkMigrationBatchEntityViewPriv)ReadCertify Earmark migration (MGCEarmarkCertifyMigrationDuty)No role by default
View Earmark migration batch entity (MGCEarmarkMigrationBatchEntityViewPriv)ReadRun Earmark migration (MGCEarmarkRunMigrationDuty)No role by default

MGCEarmarkOpeningBalanceMigrationEntity​

Earmark migration opening balance

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.

Cut-over only. Writes are granted only through Migrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty), which ships attached to no role and is removed at go-live. See Migration and cut-over entities.

PropertyValue
OData entity setMGCEarmarkOpeningBalanceMigrations (entity type MGCEarmarkOpeningBalanceMigration)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkOpeningBalanceMigrationStaging
CompanyCompany-specific (DataAreaId)
Primary keyMigrationBatchId (Migration batch ID), DealId (Deal ID), CounterpartyType (Counterparty type), CounterpartyAccount (Counterparty)
Data sourcesMGCEarmarkMigrationOpeningBalance

Fields

FieldLabelTypeMandatoryEditSource
MigrationBatchId (key)Migration batch IDString (MGCEarmarkMigrationBatchId)YesCreate onlyMGCEarmarkMigrationOpeningBalance.MigrationBatchId
DealId (key)Deal IDString (MGCEarmarkDealId)YesCreate onlyMGCEarmarkMigrationOpeningBalance.DealId
CounterpartyType (key)Counterparty typeEnum MGCEarmarkClaimCounterpartyTypeCreate onlyMGCEarmarkMigrationOpeningBalance.CounterpartyType
CounterpartyAccount (key)CounterpartyString (MGCEarmarkAccountRelation)Create onlyMGCEarmarkMigrationOpeningBalance.CounterpartyAccount
OpenAmountOpen amountReal (MGCEarmarkAccrualAmount)YesMGCEarmarkMigrationOpeningBalance.OpenAmount
CurrencyCodeCurrencyString (CurrencyCode)YesYesMGCEarmarkMigrationOpeningBalance.CurrencyCode
SourceKeySource keyString (MGCEarmarkSourceKey)YesMGCEarmarkMigrationOpeningBalance.SourceKey
AccrualInstanceIdAccrual instanceString (MGCEarmarkAccrualInstanceId)NoMGCEarmarkMigrationOpeningBalance.AccrualInstanceId
AccrualTransIdAccrual transactionString (MGCEarmarkAccrualTransId)NoMGCEarmarkMigrationOpeningBalance.AccrualTransId
LoadedDateTimeLoadedUtcDateTime (TransDateTime)NoMGCEarmarkMigrationOpeningBalance.LoadedDateTime
RolledBackRolled backEnum NoYesNoMGCEarmarkMigrationOpeningBalance.RolledBack

Security

PrivilegeGrantsDutyRoles
View Earmark migration opening balance entity (MGCEarmarkOpeningBalanceMigrationEntityViewPriv)ReadCertify Earmark migration (MGCEarmarkCertifyMigrationDuty)No role by default
View Earmark migration opening balance entity (MGCEarmarkOpeningBalanceMigrationEntityViewPriv)ReadRun Earmark migration (MGCEarmarkRunMigrationDuty)No role by default
Maintain Earmark migration opening balance entity (MGCEarmarkOpeningBalanceMigrationEntityMaintainPriv)Read, Create, Update, Delete, CorrectMigrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty)No role by default

MGCEarmarkBalanceBaselineEntity​

Earmark migration tie-out

Loads the deal balance baseline computed outside this product against the source database, and exports every tie-out and disposition line of a cut-over. What can be written is the baseline figure, the accounts receivable correction voucher and the disposition with its reason - a decision a person makes after the load has listed the row. The measured figures, the variance and the proposed journal number are produced by the load and cannot be imported, because letting a spreadsheet restate them would let a spreadsheet declare a ledger balanced.

Cut-over. Used while running and certifying a migration batch. See Migration and cut-over entities.

PropertyValue
OData entity setMGCEarmarkBalanceBaselines (entity type MGCEarmarkBalanceBaseline)
AccessRead/write
Data managementEnabled; staging table MGCEarmarkBalanceBaselineStaging
CompanyCompany-specific (DataAreaId)
Primary keyMigrationBatchId (Migration batch ID), RowKind (Row kind), SourceKey (Source key)
Data sourcesMGCEarmarkMigrationTieOut

Fields

FieldLabelTypeMandatoryEditSource
MigrationBatchId (key)Migration batch IDString (MGCEarmarkMigrationBatchId)YesCreate onlyMGCEarmarkMigrationTieOut.MigrationBatchId
RowKind (key)Row kindEnum MGCEarmarkTieOutRowKindCreate onlyMGCEarmarkMigrationTieOut.RowKind
SourceKey (key)Source keyString (MGCEarmarkSourceKey)YesCreate onlyMGCEarmarkMigrationTieOut.SourceKey
MainAccountMain accountString (MainAccountNum)Create onlyMGCEarmarkMigrationTieOut.MainAccount
CurrencyCodeCurrencyString (CurrencyCode)Create onlyMGCEarmarkMigrationTieOut.CurrencyCode
DealIdDeal IDString (MGCEarmarkDealId)Create onlyMGCEarmarkMigrationTieOut.DealId
GLOpeningBalanceGeneral ledger opening balanceReal (AmountMST)NoMGCEarmarkMigrationTieOut.GLOpeningBalance
MigratedMovementTotalMigrated movementsReal (AmountMST)NoMGCEarmarkMigrationTieOut.MigratedMovementTotal
RebuiltBalanceRebuilt balanceReal (AmountMST)NoMGCEarmarkMigrationTieOut.RebuiltBalance
BaselineBalanceBaseline balanceReal (AmountMST)YesMGCEarmarkMigrationTieOut.BaselineBalance
VarianceVarianceReal (MGCEarmarkTieOutVariance)NoMGCEarmarkMigrationTieOut.Variance
ProposedJournalNumProposed journalString (LedgerJournalId)NoMGCEarmarkMigrationTieOut.ProposedJournalNum
ParentSourceKeyParent accrualString (MGCEarmarkSourceKey)Create onlyMGCEarmarkMigrationTieOut.ParentSourceKey
CreditVoucherFirst creditString (Voucher)Create onlyMGCEarmarkMigrationTieOut.CreditVoucher
DuplicateCreditVoucherDuplicate creditString (Voucher)Create onlyMGCEarmarkMigrationTieOut.DuplicateCreditVoucher
CorrectionVoucherCorrection voucherString (Voucher)YesMGCEarmarkMigrationTieOut.CorrectionVoucher
DoubleClaimDispositionDouble-claim dispositionEnum MGCEarmarkDoubleClaimDispositionYesMGCEarmarkMigrationTieOut.DoubleClaimDisposition
ControlDispositionControl reconciliation dispositionEnum MGCEarmarkControlReconciliationDispositionYesMGCEarmarkMigrationTieOut.ControlDisposition
DispositionReasonCodeReasonString (ReasonCode)YesMGCEarmarkMigrationTieOut.DispositionReasonCode
DispositionNoteReason commentString (MGCEarmarkReasonNote)YesMGCEarmarkMigrationTieOut.DispositionNote
DispositionedByDispositioned byString (UserId)Create onlyMGCEarmarkMigrationTieOut.DispositionedBy
DispositionedDateTimeDispositionedUtcDateTime (TransDateTime)Create onlyMGCEarmarkMigrationTieOut.DispositionedDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark migration tie-out entity (MGCEarmarkBalanceBaselineEntityViewPriv)ReadCertify Earmark migration (MGCEarmarkCertifyMigrationDuty)No role by default
View Earmark migration tie-out entity (MGCEarmarkBalanceBaselineEntityViewPriv)ReadRun Earmark migration (MGCEarmarkRunMigrationDuty)No role by default
Maintain Earmark migration tie-out entity (MGCEarmarkBalanceBaselineEntityMaintainPriv)Read, Create, Update, CorrectRun Earmark migration (MGCEarmarkRunMigrationDuty)No role by default

MGCEarmarkMirrorLinkEntity​

Earmark mirror link

The read-only data entity over the mirror-link table - the single source of which customer-side accrual instance is mirrored, and by which vendor-side instance. Primary key customer instance ID plus vendor instance ID.

PropertyValue
OData entity setMGCEarmarkMirrorLinks (entity type MGCEarmarkMirrorLink)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkMirrorLinkStaging
CompanyCompany-specific (DataAreaId)
Primary keyCustomerInstanceId (Accrual instance), VendorInstanceId (Accrual instance)
Data sourcesMGCEarmarkMirrorLink; CustomerInstance = MGCEarmarkAccrualInstance (outer join, read-only); VendorInstance = MGCEarmarkAccrualInstance (outer join, read-only)

Fields

FieldLabelTypeSource
CustomerInstanceId (key)Accrual instanceString (MGCEarmarkAccrualInstanceId)CustomerInstance.AccrualInstanceId
VendorInstanceId (key)Accrual instanceString (MGCEarmarkAccrualInstanceId)VendorInstance.AccrualInstanceId
FundingRuleRecIdFunding ruleInt64 (RefRecId)MGCEarmarkMirrorLink.FundingRule
SnapVendorAccountVendor account (at creation)String (VendAccount)MGCEarmarkMirrorLink.SnapVendorAccount
SnapShareTypeShare type (at creation)Enum MGCEarmarkFundedShareTypeMGCEarmarkMirrorLink.SnapShareType
SnapShareValueShare value (at creation)Real (MGCEarmarkFundedShareValue)MGCEarmarkMirrorLink.SnapShareValue
SnapFundingCapFunding cap (at creation)Real (MGCEarmarkFundingCap)MGCEarmarkMirrorLink.SnapFundingCap
ConditionConditionEnum MGCEarmarkMirrorConditionMGCEarmarkMirrorLink.Condition
DivergenceAmountDivergenceReal (MGCEarmarkDivergenceAmount)MGCEarmarkMirrorLink.DivergenceAmount
CappedHeadroomCapped headroomReal (MGCEarmarkAccrualAmount)MGCEarmarkMirrorLink.CappedHeadroom
LastEvaluatedDateTimeLast evaluatedUtcDateTime (TransDateTime)MGCEarmarkMirrorLink.LastEvaluatedDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark mirror link (data entity) (MGCEarmarkMirrorLinkEntityViewPriv)ReadInquire into Earmark vendor shapes (MGCEarmarkMirrorInquiryDuty)Accountant (LedgerAccountant), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Purchasing manager (TradePurchasingManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkMirrorTransPairEntity​

Earmark mirror trans pair

The read-only data entity over the mirror trans pair - the evidence that one trigger-driven movement posted on both sides of a mirror in the same post-commit unit. Primary key the pair's own idempotency key.

PropertyValue
OData entity setMGCEarmarkMirrorTransPairs (entity type MGCEarmarkMirrorTransPair)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkMirrorTransPairStaging
CompanyCompany-specific (DataAreaId)
Primary keyPairKey (Pair key)
Data sourcesMGCEarmarkMirrorTransPair

Fields

FieldLabelTypeSource
PairKey (key)Pair keyString (MGCEarmarkPairKey)MGCEarmarkMirrorTransPair.PairKey
MirrorLinkRecIdMirror linkInt64 (RefRecId)MGCEarmarkMirrorTransPair.MirrorLink
MovementTypeMovement typeEnum MGCEarmarkMovementTypeMGCEarmarkMirrorTransPair.MovementType
CustomerTransRecIdCustomer transactionInt64 (RefRecId)MGCEarmarkMirrorTransPair.CustomerTrans
VendorTransRecIdVendor transactionInt64 (RefRecId)MGCEarmarkMirrorTransPair.VendorTrans
CustomerVoucherCustomer voucherString (Voucher)MGCEarmarkMirrorTransPair.CustomerVoucher
VendorVoucherVendor voucherString (Voucher)MGCEarmarkMirrorTransPair.VendorVoucher
PairedDateTimePairedUtcDateTime (TransDateTime)MGCEarmarkMirrorTransPair.PairedDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark mirror trans pair (data entity) (MGCEarmarkMirrorTransPairEntityViewPriv)ReadInquire into Earmark vendor shapes (MGCEarmarkMirrorInquiryDuty)Accountant (LedgerAccountant), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Purchasing manager (TradePurchasingManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkPriceProposalEntity​

Earmark price proposals

Read-only. Decisions and ineligibility reasons while the sessions are retained. It is a window onto a queue and NOT a permanent record: the rows behind it are purged past the proposal session retention day count, so a report reconciling last year's accruals against last year's proposals will find nothing. The permanent record is the timeline, which receives a copy of every decision at Accept. Use this for monitoring - which deals are being offered, taken, and excluded, and why.

PropertyValue
OData entity setMGCEarmarkPriceProposals (entity type MGCEarmarkPriceProposal)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkPriceProposalStaging
CompanyCompany-specific (DataAreaId)
Primary keyPriceProposalRecId (Record ID), SessionId (Session), DealId (Deal)
Data sourcesMGCEarmarkPriceProposal

Fields

FieldLabelTypeSource
PriceProposalRecId (key)Record IDInt64 (RecId)MGCEarmarkPriceProposal.RecId
SessionId (key)SessionString (MGCEarmarkProposalSessionId)MGCEarmarkPriceProposal.SessionId
DealId (key)DealString (MGCEarmarkDealId)MGCEarmarkPriceProposal.DealId
LineTableIdLine tableInteger (RefTableId)MGCEarmarkPriceProposal.LineTableId
LineRecIdLine referenceInt64 (RefRecId)MGCEarmarkPriceProposal.LineRecId
InventTransIdInventory transactionString (InventTransId)MGCEarmarkPriceProposal.InventTransId
QualifyingTargetQualifying targeting rowInt64 (RefRecId)MGCEarmarkPriceProposal.QualifyingTarget
QualifyingRankSpecificityInteger (MGCEarmarkSpecificityRank)MGCEarmarkPriceProposal.QualifyingRank
DecisionDecisionEnum MGCEarmarkProposalDecisionMGCEarmarkPriceProposal.Decision
IneligibleReasonIneligibility reasonEnum MGCEarmarkIneligibleReasonMGCEarmarkPriceProposal.IneligibleReason
AmountPerSalesUnitCurAmount per sales unitReal (MGCEarmarkAccrualAmount)MGCEarmarkPriceProposal.AmountPerSalesUnitCur
AmountPerPriceUnitCurAmount per price unitReal (MGCEarmarkAccrualAmount)MGCEarmarkPriceProposal.AmountPerPriceUnitCur
EditedAmountEdited amountReal (MGCEarmarkAccrualAmount)MGCEarmarkPriceProposal.EditedAmount
OriginalAmountOriginal amountReal (MGCEarmarkAccrualAmount)MGCEarmarkPriceProposal.OriginalAmount
NonTargetedNon-targetedEnum NoYesMGCEarmarkPriceProposal.NonTargeted
NonTargetedReasonNon-targeted reasonString (MGCEarmarkReasonNote)MGCEarmarkPriceProposal.NonTargetedReason
ActorActorString (UserId)MGCEarmarkPriceProposal.Actor
ProposedDateTimeCreated date and timeUtcDateTimeMGCEarmarkPriceProposal.CreatedDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark Price Proposal (data entity) (MGCEarmarkPriceProposalEntityViewPriv)ReadInquire into price build-up (MGCEarmarkLinePriceInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Earmark auditor (MGCEarmarkAuditor), Earmark deal approver (MGCEarmarkDealApprover), Customer service representative (TradeCustomerServiceRepresentative), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager)

MGCEarmarkReconciliationRunEntity​

Earmark reconciliation run entity

The read-only export of the reconciliation runs - the period-end tie-out. This is what leaves the box at close: the row an auditor is handed, and the row a controller compares with last month's to see whether an unexplained variance is drifting or was a one-off. The four explained-by buckets travel with the totals rather than being netted into them, because a reader needs to see what explained a gap and not merely that something did. The unexplained figure is deliberately not a column: it is derived, because a stored copy would go stale the moment a pending journal posted or a workbench exception was retried, and both of those are ordinary events.

PropertyValue
OData entity setMGCEarmarkReconciliationRuns (entity type MGCEarmarkReconciliationRun)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkReconciliationRunStaging
CompanyCompany-specific (DataAreaId)
Primary keyReconciliationRunId (Reconciliation run)
Data sourcesMGCEarmarkReconciliationRun

Fields

FieldLabelTypeSource
ReconciliationRunId (key)Reconciliation runString (MGCEarmarkReconciliationRunId)MGCEarmarkReconciliationRun.ReconciliationRunId
PeriodFromPeriod fromDate (TransDate)MGCEarmarkReconciliationRun.PeriodFrom
PeriodToPeriod toDate (TransDate)MGCEarmarkReconciliationRun.PeriodTo
ScopeDealIdDeal IDString (MGCEarmarkDealId)MGCEarmarkReconciliationRun.ScopeDealId
ScopeCounterpartyCounterpartyString (MGCEarmarkAccountRelation)MGCEarmarkReconciliationRun.ScopeCounterparty
ScopeMainAccountMain accountString (MainAccountNum)MGCEarmarkReconciliationRun.ScopeMainAccount
GLBalanceMSTLedger balanceReal (AmountMST)MGCEarmarkReconciliationRun.GLBalanceMST
SubLedgerBalanceMSTSubledger balanceReal (AmountMST)MGCEarmarkReconciliationRun.SubLedgerBalanceMST
VarianceMSTVarianceReal (MGCEarmarkReconVariance)MGCEarmarkReconciliationRun.VarianceMST
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkReconciliationRun.CurrencyCode
GLBalanceCurLedger balance in transaction currencyReal (MGCEarmarkBalanceAmount)MGCEarmarkReconciliationRun.GLBalanceCur
SubLedgerBalanceCurSubledger balance in transaction currencyReal (MGCEarmarkBalanceAmount)MGCEarmarkReconciliationRun.SubLedgerBalanceCur
ExplainedByPendingJournalsExplained by pending journalsReal (AmountMST)MGCEarmarkReconciliationRun.ExplainedByPendingJournals
ExplainedByUnaccruedExplained by unaccrued movementsReal (AmountMST)MGCEarmarkReconciliationRun.ExplainedByUnaccrued
ExplainedByExceptionsExplained by execution exceptionsReal (AmountMST)MGCEarmarkReconciliationRun.ExplainedByExceptions
ExplainedByProposalsOutstandingExplained by outstanding proposalsReal (AmountMST)MGCEarmarkReconciliationRun.ExplainedByProposalsOutstanding
RunByRun byString (UserId)MGCEarmarkReconciliationRun.RunBy
RunDateTimeRun date and timeUtcDateTime (TransDateTime)MGCEarmarkReconciliationRun.RunDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark Reconciliation Run (data entity) (MGCEarmarkReconciliationRunEntityViewPriv)ReadInquire into Earmark accruals (MGCEarmarkAccrualInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager), Purchasing agent (VendPurchasingAgent)

MGCEarmarkThirdPartySettlementEntity​

Earmark third-party settlement

The read-only data entity over a third-party (Shape 4) settlement - the evidence written instead of a journal when an accrual is settled by reference against a posted vendor invoice. Primary key the vendor invoice voucher plus the settlement's own timestamp.

PropertyValue
OData entity setMGCEarmarkThirdPartySettlements (entity type MGCEarmarkThirdPartySettlement)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkThirdPartySettlementStaging
CompanyCompany-specific (DataAreaId)
Primary keyVendorInvoiceVoucher (Vendor invoice voucher), SettledDateTime (Settled)
Data sourcesMGCEarmarkThirdPartySettlement

Fields

FieldLabelTypeSource
VendorInvoiceVoucher (key)Vendor invoice voucherString (Voucher)MGCEarmarkThirdPartySettlement.VendorInvoiceVoucher
SettledDateTime (key)SettledUtcDateTime (TransDateTime)MGCEarmarkThirdPartySettlement.SettledDateTime
AccrualInstanceRecIdAccrual instanceInt64 (RefRecId)MGCEarmarkThirdPartySettlement.AccrualInstance
AccrualTransRecIdAccrual transactionInt64 (RefRecId)MGCEarmarkThirdPartySettlement.AccrualTrans
VendorInvoiceIdVendor invoice IDString (MGCEarmarkNaturalKey)MGCEarmarkThirdPartySettlement.VendorInvoiceId
SettledAmountSettled amountReal (MGCEarmarkAccrualAmount)MGCEarmarkThirdPartySettlement.SettledAmount
CurrencyCodeCurrencyString (CurrencyCode)MGCEarmarkThirdPartySettlement.CurrencyCode
SettledBySettled byString (UserId)MGCEarmarkThirdPartySettlement.SettledBy
ReasonCodeReasonString (ReasonCode)MGCEarmarkThirdPartySettlement.ReasonCode
ClosingTransRecIdClosing transactionInt64 (RefRecId)MGCEarmarkThirdPartySettlement.ClosingTrans
VoidedVoidedEnum NoYesMGCEarmarkThirdPartySettlement.Voided
VoidedByVoided byString (UserId)MGCEarmarkThirdPartySettlement.VoidedBy
VoidedDateTimeDate voidedUtcDateTime (TransDateTime)MGCEarmarkThirdPartySettlement.VoidedDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark third-party settlement (data entity) (MGCEarmarkThirdPartySettlementEntityViewPriv)ReadInquire into Earmark vendor shapes (MGCEarmarkMirrorInquiryDuty)Accountant (LedgerAccountant), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Purchasing manager (TradePurchasingManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkEventLogEntity​

Earmark timeline

The Earmark timeline, read-only. Every lifecycle act on every Earmark document writes one append-only row here through the timeline service, recording the document, the event, the real executing user, whether the write was made by automation, and the before and after values where they are meaningful. The entity exists for audit export and monitoring; its staging table serves export only, because the platform routes every data-management export through one. It cannot create, change or delete a timeline row, and neither can anything else, because the table's own update and delete refuse. Rows are purged only by the retention task, past the timeline retention day-count on the Earmark parameters. It is deliberately not part of the copy-configuration set - a timeline is evidence about one environment and means nothing in another.

PropertyValue
OData entity setMGCEarmarkEventLogs (entity type MGCEarmarkEventLog)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkEventLogStaging
CompanyCompany-specific (DataAreaId)
Primary keyEventLogRecId (Record ID), DocumentNaturalKey (Document)
Data sourcesMGCEarmarkEventLog

Fields

FieldLabelTypeSource
EventLogRecId (key)Record IDInt64 (RecId)MGCEarmarkEventLog.RecId
DocumentTypeDocument typeEnum MGCEarmarkDocumentTypeMGCEarmarkEventLog.DocumentType
DocumentRecIdDocument referenceInt64 (RefRecId)MGCEarmarkEventLog.DocumentRecId
DocumentNaturalKey (key)DocumentString (MGCEarmarkNaturalKey)MGCEarmarkEventLog.DocumentNaturalKey
EventTypeEvent typeEnum MGCEarmarkEventTypeMGCEarmarkEventLog.EventType
ActorActorString (UserId)MGCEarmarkEventLog.Actor
AutomationWriteAutomationEnum NoYesMGCEarmarkEventLog.AutomationWrite
EventDateTimeDate and timeUtcDateTime (TransDateTime)MGCEarmarkEventLog.EventDateTime
DetailDetailString (Notes)MGCEarmarkEventLog.Detail
BeforeValueBeforeString (MGCEarmarkReasonNote)MGCEarmarkEventLog.BeforeValue
AfterValueAfterString (MGCEarmarkReasonNote)MGCEarmarkEventLog.AfterValue

Security

PrivilegeGrantsDutyRoles
View Earmark Event Log (data entity) (MGCEarmarkEventLogEntityViewPriv)ReadInquire into Earmark (MGCEarmarkInquiryDuty)Accounts receivable clerk (CustInvoiceAccountsReceivableClerk), Accounts receivable manager (CustInvoiceAccountsReceivableManager), Inventory accountant (InventCostAccountant), Accountant (LedgerAccountant), Accounting manager (LedgerAccountingManager), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Earmark claims approver (MGCEarmarkClaimsApprover), Earmark deal approver (MGCEarmarkDealApprover), Purchasing manager (TradePurchasingManager), Sales clerk (TradeSalesClerk), Sales manager (TradeSalesManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

MGCEarmarkVendorSettlementRunEntity​

Earmark vendor settlement run

The read-only data entity over one periodic vendor settlement run - the parameters it ran with, and what it produced. Primary key the run's own ID.

PropertyValue
OData entity setMGCEarmarkVendorSettlementRuns (entity type MGCEarmarkVendorSettlementRun)
AccessRead-only
Data managementEnabled; staging table MGCEarmarkVendorSettlementRunStaging
CompanyCompany-specific (DataAreaId)
Primary keyVendorSettlementRunId (Run ID)
Data sourcesMGCEarmarkVendorSettlementRun

Fields

FieldLabelTypeSource
VendorSettlementRunId (key)Run IDString (MGCEarmarkVendorSettlementRunId)MGCEarmarkVendorSettlementRun.VendorSettlementRunId
StatusStatusEnum MGCEarmarkVendorSettlementRunStatusMGCEarmarkVendorSettlementRun.Status
ShapeSupplierRebateSupplier rebate on purchasesEnum NoYesMGCEarmarkVendorSettlementRun.ShapeSupplierRebate
ShapeMirrorSupplier-funded customer programEnum NoYesMGCEarmarkVendorSettlementRun.ShapeMirror
ShapeSalesTriggeredSales-triggered vendor accrualEnum NoYesMGCEarmarkVendorSettlementRun.ShapeSalesTriggered
VendorSelectorVendor selectorEnum MGCEarmarkAccountSelectorMGCEarmarkVendorSettlementRun.VendorSelector
VendorRelationVendor relationString (MGCEarmarkAccountRelation)MGCEarmarkVendorSettlementRun.VendorRelation
CurrencyFilterCurrency filterString (CurrencyCode)MGCEarmarkVendorSettlementRun.CurrencyFilter
MinimumAmountMinimum amountReal (MGCEarmarkMinSettlementAmount)MGCEarmarkVendorSettlementRun.MinimumAmount
PeriodEndPeriod endDate (TransDate)MGCEarmarkVendorSettlementRun.PeriodEnd
ClaimCountClaimsInteger (Counter)MGCEarmarkVendorSettlementRun.ClaimCount
ExceptionCountExceptionsInteger (Counter)MGCEarmarkVendorSettlementRun.ExceptionCount
TotalAmountTotal amountReal (MGCEarmarkAccrualAmount)MGCEarmarkVendorSettlementRun.TotalAmount
RunByRun byString (UserId)MGCEarmarkVendorSettlementRun.RunBy
RunDateTimeRun date and timeUtcDateTime (TransDateTime)MGCEarmarkVendorSettlementRun.RunDateTime

Security

PrivilegeGrantsDutyRoles
View Earmark vendor settlement run (data entity) (MGCEarmarkVendorSettlementRunEntityViewPriv)ReadInquire into Earmark vendor shapes (MGCEarmarkMirrorInquiryDuty)Accountant (LedgerAccountant), Accounting supervisor (LedgerAccountingSupervisor), Earmark auditor (MGCEarmarkAuditor), Purchasing manager (TradePurchasingManager), Accounts payable clerk (VendInvoiceAccountsPayableClerk), Accounts payable manager (VendInvoiceAccountsPayableManager)

Fields added to standard entities​

Earmark adds no field to any standard table (the model has no table extensions). Instead it adds fields to standard data entities by joining its own tables.

SalesOrderLineV2Entity​

Sales order lines V2, extended by SalesOrderLineV2Entity.MGCEarmark

PropertyValue
OData entity setSalesOrderLines (entity type SalesOrderLine)
CategoryDocument
JoinMGCEarmarkLinePrice joined to SalesLine (outer join, read-only) on SalesLine.RecId = MGCEarmarkLinePrice.CurrentLineRecId and SalesLine.InventTransId = MGCEarmarkLinePrice.InventTransId.
SecurityThe standard entity's own privileges. Earmark adds no privilege for it.
FieldLabelTypeEditSource
MGCEarmarkBasePriceBase priceReal (MGCEarmarkUnitPriceAmount)NoMGCEarmarkLinePrice.BasePriceCur
MGCEarmarkOverBasisOver-basisReal (MGCEarmarkOverBasisAmount)NoMGCEarmarkLinePrice.OverBasisCur
MGCEarmarkDealMoneyDeal moneyReal (MGCEarmarkDealMoneyAmount)NoMGCEarmarkLinePrice.DealMoneyCur
MGCEarmarkAllowanceAllowanceReal (MGCEarmarkAllowanceAmount)NoMGCEarmarkLinePrice.AllowanceCur
MGCEarmarkPriceModePrice modeEnum MGCEarmarkPriceModeNoMGCEarmarkLinePrice.PriceModeSummary
MGCEarmarkBuildStateBuild stateEnum MGCEarmarkBuildStateNoMGCEarmarkLinePrice.BuildState
MGCEarmarkBuildNumberBuild numberInteger (MGCEarmarkBuildNumber)NoMGCEarmarkLinePrice.BuildNumber

Because the join is an outer join, every standard row is still returned; a row with no matching Earmark record shows these fields empty.

  • MGCEarmarkLinePrice.CurrentLineRecId (Current line reference): The line reference while this build is current, and zero otherwise. It is a derived join key, stamped on every write from the current flag so the two can never disagree, and it exists so that the sales order line entity can hang the Earmark columns off a plain outer join with no filter - a filter that landed in the wrong half of the query would make every unpriced order line disappear from that entity, and a join without one would duplicate every line that had ever been priced twice.
  • MGCEarmarkLinePrice.InventTransId (Inventory transaction): The inventory transaction identifier of the line, stored as the second half of the key and as the join to the accrual instances this build froze. It is what lets a movement posted months later be traced back to the price that promised it.