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=trueand filter ondataAreaIdto 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, andMGCEarmarkEventLogEntity. 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
$metadatadocument 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
| Entity | AOT name | OData entity set | Category | Access | Data management |
|---|---|---|---|---|---|
| Earmark parameters | MGCEarmarkParametersEntity | MGCEarmarkParameters | Parameters | Read/write | Yes |
| Earmark deal groups | MGCEarmarkDealGroupEntity | MGCEarmarkDealGroups | Reference | Read/write | Yes |
| Earmark accrual posting control | MGCEarmarkPostingControlEntity | MGCEarmarkPostingControls | Configuration | Read/write | Yes |
| Earmark configuration registers | MGCEarmarkConfigurationRegisterEntity | MGCEarmarkConfigurationRegisters | Configuration | Read/write | Yes |
| Earmark deal funding rule | MGCEarmarkDealFundingRuleEntity | MGCEarmarkDealFundingRules | Configuration | Read/write | Yes |
| Earmark deal targeting | MGCEarmarkDealTargetEntity | MGCEarmarkDealTargets | Configuration | Read/write | Yes |
| Earmark deal-nominated posting set | MGCEarmarkDealPostingEntity | MGCEarmarkDealPostings | Configuration | Read/write | Yes |
| Earmark deals | MGCEarmarkDealEntity | MGCEarmarkDeals | Configuration | Read/write | Yes |
| Earmark dimension rule entity | MGCEarmarkDimensionRuleEntity | MGCEarmarkDimensionRules | Configuration | Read/write | Yes |
| Earmark inbound pricing policies | MGCEarmarkInboundPricingPolicyEntity | MGCEarmarkInboundPricingPolicies | Configuration | Read/write | Yes |
| Earmark license states | MGCEarmarkLicenseStateEntity | MGCEarmarkLicenseStates | Configuration | Read-only | Yes |
| Earmark posting profile | MGCEarmarkPostingProfileEntity | MGCEarmarkPostingProfiles | Configuration | Read/write | Yes |
| Earmark reason applicability | MGCEarmarkReasonApplicabilityEntity | MGCEarmarkReasonApplicabilities | Configuration | Read/write | Yes |
| Earmark accrual instances | MGCEarmarkAccrualInstanceEntity | MGCEarmarkAccrualInstances | Transaction | Read-only | Yes |
| Earmark accrual journal register | MGCEarmarkAccrualJournalRegisterEntity | MGCEarmarkAccrualJournalRegisters | Transaction | Read-only | Yes |
| Earmark accrual transactions | MGCEarmarkAccrualTransEntity | MGCEarmarkAccrualTransactions | Transaction | Read-only | Yes |
| Earmark claim aging | MGCEarmarkClaimAgingEntity | MGCEarmarkClaimAgings | Transaction | Read-only | Yes |
| Earmark claim headers | MGCEarmarkClaimEntity | MGCEarmarkClaims | Transaction | Read-only | Yes |
| Earmark claim lines | MGCEarmarkClaimLineEntity | MGCEarmarkClaimLines | Transaction | Read-only | Yes |
| Earmark claim migration | MGCEarmarkClaimMigrationEntity | MGCEarmarkClaimMigrations | Transaction | Read/write | Yes |
| Earmark claim settlement preferences | MGCEarmarkClaimSettlementPreferenceEntity | MGCEarmarkClaimSettlementPreferences | Transaction | Read-only | Yes |
| Earmark claim statement lines | MGCEarmarkClaimStatementLineEntity | MGCEarmarkClaimStatementLines | Transaction | Read-only | Yes |
| Earmark claim statement runs | MGCEarmarkClaimStatementRunEntity | MGCEarmarkClaimStatementRuns | Transaction | Read-only | Yes |
| Earmark claims available by customer | MGCEarmarkClaimsAvailableByCustomerEntity | MGCEarmarkClaimsAvailableByCustomers | Transaction | Read-only | Yes |
| Earmark control verdict entity | MGCEarmarkControlVerdictEntity | MGCEarmarkControlVerdicts | Transaction | Read-only | Yes |
| Earmark deal balances | MGCEarmarkDealBalanceEntity | MGCEarmarkDealBalances | Transaction | Read-only | Yes |
| Earmark deal migration | MGCEarmarkDealMigrationEntity | MGCEarmarkDealMigrations | Transaction | Read/write | Yes |
| Earmark execution exceptions | MGCEarmarkExecutionExceptionEntity | MGCEarmarkExecutionExceptions | Transaction | Read-only | Yes |
| Earmark line price builds | MGCEarmarkLinePriceEntity | MGCEarmarkLinePrices | Transaction | Read-only | Yes |
| Earmark line price components | MGCEarmarkLinePriceComponentEntity | MGCEarmarkLinePriceComponents | Transaction | Read-only | Yes |
| Earmark migration batches | MGCEarmarkMigrationBatchEntity | MGCEarmarkMigrationBatches | Transaction | Read-only | Yes |
| Earmark migration opening balance | MGCEarmarkOpeningBalanceMigrationEntity | MGCEarmarkOpeningBalanceMigrations | Transaction | Read/write | Yes |
| Earmark migration tie-out | MGCEarmarkBalanceBaselineEntity | MGCEarmarkBalanceBaselines | Transaction | Read/write | Yes |
| Earmark mirror link | MGCEarmarkMirrorLinkEntity | MGCEarmarkMirrorLinks | Transaction | Read-only | Yes |
| Earmark mirror trans pair | MGCEarmarkMirrorTransPairEntity | MGCEarmarkMirrorTransPairs | Transaction | Read-only | Yes |
| Earmark price proposals | MGCEarmarkPriceProposalEntity | MGCEarmarkPriceProposals | Transaction | Read-only | Yes |
| Earmark reconciliation run entity | MGCEarmarkReconciliationRunEntity | MGCEarmarkReconciliationRuns | Transaction | Read-only | Yes |
| Earmark third-party settlement | MGCEarmarkThirdPartySettlementEntity | MGCEarmarkThirdPartySettlements | Transaction | Read-only | Yes |
| Earmark timeline | MGCEarmarkEventLogEntity | MGCEarmarkEventLogs | Transaction | Read-only | Yes |
| Earmark vendor settlement run | MGCEarmarkVendorSettlementRunEntity | MGCEarmarkVendorSettlementRuns | Transaction | Read-only | Yes |
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.
| Entity | Access | Granted through |
|---|---|---|
MGCEarmarkBalanceBaselineEntityEarmark migration tie-out | Read/write | Certify Earmark migration (MGCEarmarkCertifyMigrationDuty): no role by defaultRun Earmark migration ( MGCEarmarkRunMigrationDuty): no role by default |
MGCEarmarkClaimMigrationEntityEarmark claim migration | Read/write | Migrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty): no role by defaultRun Earmark migration ( MGCEarmarkRunMigrationDuty): no role by default |
MGCEarmarkDealMigrationEntityEarmark deal migration | Read/write | Migrate Earmark deals and claims without approval workflow (MGCEarmarkMigrationBypassDuty): no role by defaultRun Earmark migration ( MGCEarmarkRunMigrationDuty): no role by default |
MGCEarmarkMigrationBatchEntityEarmark migration batches | Read-only | Certify Earmark migration (MGCEarmarkCertifyMigrationDuty): no role by defaultRun Earmark migration ( MGCEarmarkRunMigrationDuty): no role by default |
MGCEarmarkOpeningBalanceMigrationEntityEarmark migration opening balance | Read/write | Certify Earmark migration (MGCEarmarkCertifyMigrationDuty): no role by defaultMigrate Earmark deals and claims without approval workflow ( MGCEarmarkMigrationBypassDuty): no role by defaultRun 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.
MGCEarmarkDealMigrationEntityis 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.
MGCEarmarkClaimMigrationEntityloads 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.
MGCEarmarkOpeningBalanceMigrationEntityloads 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkParameters (entity type MGCEarmarkParameters) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkParametersStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | DataAreaId (Company) |
| Data sources | MGCEarmarkParameters |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
CustomerModule | Customer deals | Enum NoYes | Yes | MGCEarmarkParameters.CustomerModule | |
VendorModule | Vendor deals | Enum NoYes | Yes | MGCEarmarkParameters.VendorModule | |
InventoryModule | Inventory deals | Enum NoYes | Yes | MGCEarmarkParameters.InventoryModule | |
ShapeSupplierRebate | Supplier rebate on purchases | Enum NoYes | Yes | MGCEarmarkParameters.ShapeSupplierRebate | |
ShapeSupplierFundedProgramme | Supplier-funded customer program (mirror) | Enum NoYes | Yes | MGCEarmarkParameters.ShapeSupplierFundedProgramme | |
ShapePurchasePriceBuildUp | Purchase price build-up | Enum NoYes | Yes | MGCEarmarkParameters.ShapePurchasePriceBuildUp | |
ShapeSalesTriggeredAccrual | Sales-triggered vendor accrual | Enum NoYes | Yes | MGCEarmarkParameters.ShapeSalesTriggeredAccrual | |
PriceModeDefault | Price mode | Enum MGCEarmarkPriceMode | Yes | MGCEarmarkParameters.PriceModeDefault | |
AllowPerDealPriceMode | Allow per-deal price mode | Enum NoYes | Yes | MGCEarmarkParameters.AllowPerDealPriceMode | |
AccrualAmountUnitQty | Accrual amount unit | Real (MGCEarmarkAmountUnitQty) | Yes | MGCEarmarkParameters.AccrualAmountUnitQty | |
DefaultDealUnit | Default deal unit | String (UnitOfMeasureSymbol) | Yes | MGCEarmarkParameters.DefaultDealUnit | |
AccrualPointCustomer | Accrual point - customer deals | Enum MGCEarmarkAccrualPoint | Yes | MGCEarmarkParameters.AccrualPointCustomer | |
AccrualPointVendor | Accrual point - vendor deals | Enum MGCEarmarkAccrualPoint | Yes | MGCEarmarkParameters.AccrualPointVendor | |
AccrualPointInventory | Accrual point - inventory deals | Enum MGCEarmarkAccrualPoint | Yes | MGCEarmarkParameters.AccrualPointInventory | |
DealCurrencyDefault | Deal currency | String (CurrencyCode) | Yes | MGCEarmarkParameters.DealCurrencyDefault | |
CurrencyPolicy | Currency policy | Enum MGCEarmarkCurrencyPolicy | Yes | MGCEarmarkParameters.CurrencyPolicy | |
LockedRateBasis | Locked rate basis | Enum MGCEarmarkLockedRateBasis | Yes | MGCEarmarkParameters.LockedRateBasis | |
ClaimableByCustomer | Claimable by - customer deals | Enum MGCEarmarkClaimableBy | Yes | MGCEarmarkParameters.ClaimableByCustomer | |
ClaimableByVendor | Claimable by - vendor deals | Enum MGCEarmarkClaimableBy | Yes | MGCEarmarkParameters.ClaimableByVendor | |
ClaimableByInventory | Claimable by - inventory deals | Enum MGCEarmarkClaimableBy | Create only | MGCEarmarkParameters.ClaimableByInventory | |
AccountSourceCustomer | Account source - customer deals | Enum MGCEarmarkAccountSource | Yes | MGCEarmarkParameters.AccountSourceCustomer | |
AccountSourceVendor | Account source - vendor deals | Enum MGCEarmarkAccountSource | Yes | MGCEarmarkParameters.AccountSourceVendor | |
AccountSourceInventory | Account source - inventory deals | Enum MGCEarmarkAccountSource | Yes | MGCEarmarkParameters.AccountSourceInventory | |
TargetingCategoryHierarchyName | Targeting category hierarchy name | String (MGCEarmarkNaturalKey) | No | MGCEarmarkParameters.TargetingCategoryHierarchyName | |
DealExpiryWarningDays | Deal expiry warning (days) | Integer (MGCEarmarkRetentionDays) | Yes | MGCEarmarkParameters.DealExpiryWarningDays | |
HeadroomAlertPercent | Headroom alert % | Real (MGCEarmarkRatePercent) | Yes | MGCEarmarkParameters.HeadroomAlertPercent | |
AllowAmendments | Allow amendments on approved deals | Enum NoYes | Yes | MGCEarmarkParameters.AllowAmendments | |
TimelineRetentionDays | Timeline retention (days) | Integer (MGCEarmarkRetentionDays) | Yes | MGCEarmarkParameters.TimelineRetentionDays | |
ExceptionRetentionDays | Execution exception retention (days) | Integer (MGCEarmarkRetentionDays) | Yes | MGCEarmarkParameters.ExceptionRetentionDays | |
EventsEnabledDealFamily | Publish deal events | Enum NoYes | Yes | MGCEarmarkParameters.EventsEnabledDealFamily | |
EventsEnabledAccrualFamily | Publish accrual events | Enum NoYes | Yes | MGCEarmarkParameters.EventsEnabledAccrualFamily | |
ReversalPresentation | Reversal presentation | Enum MGCEarmarkReversalPresentation | Yes | MGCEarmarkParameters.ReversalPresentation | |
ManualInstanceActionEnabled | Allow manual accrual instances | Enum NoYes | Yes | MGCEarmarkParameters.ManualInstanceActionEnabled | |
ReturnAfterClaimBehaviour | Return after claim behavior | Enum MGCEarmarkReturnAfterClaimBehaviour | Yes | MGCEarmarkParameters.ReturnAfterClaimBehaviour | |
BalanceRebuildVarianceAlert | Alert on balance rebuild variance | Enum NoYes | Yes | MGCEarmarkParameters.BalanceRebuildVarianceAlert | |
EventProcessingMode | Event processing mode | Enum MGCEarmarkEventProcessingMode | Yes | MGCEarmarkParameters.EventProcessingMode | |
EventSweepCadence | Event sweep cadence | Integer (MGCEarmarkCadenceMinutes) | Yes | MGCEarmarkParameters.EventSweepCadence | |
EventStalenessTimeoutMinutes | Event staleness timeout (minutes) | Integer (MGCEarmarkStalenessMinutes) | Yes | MGCEarmarkParameters.EventStalenessTimeoutMinutes | |
EventDrainCapPerRun | Accrual event drain cap (per run) | Integer (MGCEarmarkDrainCap) | Yes | MGCEarmarkParameters.EventDrainCapPerRun | |
UnaccruedSweepCadence | Unaccrued transaction sweep cadence | Integer (MGCEarmarkCadenceMinutes) | Yes | MGCEarmarkParameters.UnaccruedSweepCadence | |
ReconciliationTolerance | Reconciliation tolerance | Real (MGCEarmarkReconVariance) | Yes | MGCEarmarkParameters.ReconciliationTolerance | |
AccrualEventRetentionDays | Accrual event retention (days) | Integer (MGCEarmarkRetentionDays) | Yes | MGCEarmarkParameters.AccrualEventRetentionDays |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Parameters (data entity) (MGCEarmarkParametersEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDealGroups (entity type MGCEarmarkDealGroup) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkDealGroupStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | DealGroupId (Deal group) |
| Data sources | MGCEarmarkDealGroup |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
DealGroupId (key) | Deal group | String (MGCEarmarkDealGroupId) | Yes | Create only | MGCEarmarkDealGroup.DealGroupId |
Name | Name | String (MGCEarmarkDealName) | Yes | MGCEarmarkDealGroup.Name |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Deal Group (data entity) (MGCEarmarkDealGroupEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkPostingControls (entity type MGCEarmarkPostingControl) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkPostingControlStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | MovementType (Movement type) |
| Data sources | MGCEarmarkPostingControl |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
MovementType (key) | Movement type | Enum MGCEarmarkMovementType | Create only | MGCEarmarkPostingControl.MovementType | |
JournalName | Journal name | String (LedgerJournalNameId) | Yes | MGCEarmarkPostingControl.JournalName | |
AutoPost | Post automatically | Enum NoYes | Yes | MGCEarmarkPostingControl.AutoPost | |
ShowInfolog | Show infolog message | Enum NoYes | Yes | MGCEarmarkPostingControl.ShowInfolog | |
AllowUserJournalCreation | Allow manual journals on this name | Enum NoYes | Yes | MGCEarmarkPostingControl.AllowUserJournalCreation |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Posting Control (data entity) (MGCEarmarkPostingControlEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkConfigurationRegisters (entity type MGCEarmarkConfigurationRegister) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkConfigurationRegisterStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ParameterKey (Parameter) |
| Data sources | MGCEarmarkConfigurationRegister |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
ParameterKey (key) | Parameter | String (MGCEarmarkParameterKey) | Yes | No | MGCEarmarkConfigurationRegister.ParameterKey |
OwnerPackage | Owner package | Enum MGCEarmarkSourcePackage | No | MGCEarmarkConfigurationRegister.OwnerPackage | |
ParameterGroup | Group | String (MGCEarmarkNaturalKey) | No | MGCEarmarkConfigurationRegister.ParameterGroup | |
ParameterType | Parameter type | Enum MGCEarmarkParameterType | No | MGCEarmarkConfigurationRegister.ParameterType | |
InstallDefault | Install default | String (MGCEarmarkParameterValue) | No | MGCEarmarkConfigurationRegister.InstallDefault | |
CurrentValue | Current value | String (MGCEarmarkParameterValue) | No | MGCEarmarkConfigurationRegister.CurrentValue | |
ExampleName | Example | String (MGCEarmarkNaturalKey) | Yes | MGCEarmarkConfigurationRegister.ExampleName | |
ExampleValue | Example value | String (MGCEarmarkParameterValue) | Yes | MGCEarmarkConfigurationRegister.ExampleValue | |
DiffersFromDefault | Differs | Enum NoYes | No | MGCEarmarkConfigurationRegister.DiffersFromDefault | |
IsConfigureNative | Configured in a standard form | Enum NoYes | No | MGCEarmarkConfigurationRegister.IsConfigureNative | |
SourceTable | Source table | String (MGCEarmarkNaturalKey) | No | MGCEarmarkConfigurationRegister.SourceTable | |
SourceField | Source column | String (MGCEarmarkNaturalKey) | No | MGCEarmarkConfigurationRegister.SourceField | |
SourceModifiedBy | Parameter last changed by | String (UserId) | No | MGCEarmarkConfigurationRegister.SourceModifiedBy | |
SourceModifiedAt | Parameter last changed | UtcDateTime (TransDateTime) | No | MGCEarmarkConfigurationRegister.SourceModifiedAt |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark configuration register entity (MGCEarmarkConfigurationRegisterEntityViewPriv) | Read | Inquire into Earmark configuration (MGCEarmarkConfigurationInquiryDuty) | Accounting manager (LedgerAccountingManager), Earmark auditor (MGCEarmarkAuditor) |
Maintain Earmark configuration register entity (MGCEarmarkConfigurationRegisterEntityMaintainPriv) | Read, Create, Update, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDealFundingRules (entity type MGCEarmarkDealFundingRule) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkDealFundingRuleStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | DealId (Deal ID), LineNum (Line) |
| Data sources | MGCEarmarkDealFundingRule |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
DealId (key) | Deal ID | String (MGCEarmarkDealId) | Yes | Create only | MGCEarmarkDealFundingRule.DealId |
LineNum (key) | Line | Real (LineNum) | Yes | Create only | MGCEarmarkDealFundingRule.LineNum |
ItemSelector | Item selector | Enum MGCEarmarkItemSelector | Yes | MGCEarmarkDealFundingRule.ItemSelector | |
ItemRelation | Item relation | String (MGCEarmarkItemRelation) | Yes | MGCEarmarkDealFundingRule.ItemRelation | |
InventDimId | Inventory dimension | String (InventDimId) | Yes | MGCEarmarkDealFundingRule.InventDimId | |
Priority | Priority | Integer (MGCEarmarkPriority) | Yes | MGCEarmarkDealFundingRule.Priority | |
EffectiveFrom | Effective from | Date (TransDate) | Yes | MGCEarmarkDealFundingRule.EffectiveFrom | |
EffectiveTo | Effective to | Date (TransDate) | Yes | MGCEarmarkDealFundingRule.EffectiveTo | |
FundingVendorAccount | Funding vendor account | String (VendAccount) | Yes | Yes | MGCEarmarkDealFundingRule.FundingVendorAccount |
ShareType | Share type | Enum MGCEarmarkFundedShareType | Yes | MGCEarmarkDealFundingRule.ShareType | |
ShareValue | Share value | Real (MGCEarmarkFundedShareValue) | Yes | MGCEarmarkDealFundingRule.ShareValue | |
FundingCap | Funding cap | Real (MGCEarmarkFundingCap) | Yes | MGCEarmarkDealFundingRule.FundingCap | |
VendorProfileRefRecId | Vendor profile reference | Int64 (RefRecId) | Yes | MGCEarmarkDealFundingRule.VendorProfileRef | |
SpecificityRank | Specificity rank | Integer (MGCEarmarkSpecificityRank) | No | MGCEarmarkDealFundingRule.SpecificityRank |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark deal funding rule (data entity) (MGCEarmarkDealFundingRuleEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDealTargets (entity type MGCEarmarkDealTarget) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkDealTargetStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | DealId (Deal ID), LineNum (Line number) |
| Data sources | MGCEarmarkDealTarget |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
DealId (key) | Deal ID | String (MGCEarmarkDealId) | Yes | Create only | MGCEarmarkDealTarget.DealId |
LineNum (key) | Line number | Real (LineNum) | Yes | Create only | MGCEarmarkDealTarget.LineNum |
ItemSelector | Item code | Enum MGCEarmarkItemSelector | Yes | MGCEarmarkDealTarget.ItemSelector | |
ItemRelation | Item relation | String (MGCEarmarkItemRelation) | Yes | MGCEarmarkDealTarget.ItemRelation | |
AccountSelector | Account code | Enum MGCEarmarkAccountSelector | Yes | MGCEarmarkDealTarget.AccountSelector | |
AccountRelation | Account relation | String (MGCEarmarkAccountRelation) | Yes | MGCEarmarkDealTarget.AccountRelation | |
InventDimId | Inventory dimension combination | String (InventDimId) | Yes | MGCEarmarkDealTarget.InventDimId | |
UnitSymbol | Unit | String (UnitOfMeasureSymbol) | Yes | MGCEarmarkDealTarget.UnitSymbol | |
Priority | Priority | Integer (MGCEarmarkPriority) | Yes | MGCEarmarkDealTarget.Priority | |
EffectiveFrom | Effective | Date (TransDate) | Yes | MGCEarmarkDealTarget.EffectiveFrom | |
EffectiveTo | Expiration | Date (TransDate) | Yes | MGCEarmarkDealTarget.EffectiveTo | |
SpecificityRank | Specificity rank | Integer (MGCEarmarkSpecificityRank) | No | MGCEarmarkDealTarget.SpecificityRank |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Deal Target (data entity) (MGCEarmarkDealTargetEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDealPostings (entity type MGCEarmarkDealPosting) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkDealPostingStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | DealId (Deal ID), MovementType (Movement type) |
| Data sources | MGCEarmarkDealPosting; LedgerDimensionDAVC = DimensionCombinationEntity (outer join, read-only); OffsetLedgerDimensionDAVC = DimensionCombinationEntity (outer join, read-only) |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
DealId (key) | Deal ID | String (MGCEarmarkDealId) | Yes | Create only | MGCEarmarkDealPosting.DealId |
MovementType (key) | Movement type | Enum MGCEarmarkMovementType | Create only | MGCEarmarkDealPosting.MovementType | |
AccountType | Account type | Enum LedgerJournalACType | Yes | MGCEarmarkDealPosting.AccountType | |
PostingType | Posting type | Enum MGCEarmarkPostingType | Yes | MGCEarmarkDealPosting.PostingType | |
OffsetAccountType | Offset account type | Enum LedgerJournalACType | Yes | MGCEarmarkDealPosting.OffsetAccountType | |
OffsetPostingType | Offset posting type | Enum MGCEarmarkPostingType | Yes | MGCEarmarkDealPosting.OffsetPostingType | |
MainAccount | Dimension combination display value | String (DimensionDisplayValue) | No | LedgerDimensionDAVC.DisplayValue | |
OffsetMainAccount | Dimension combination display value | String (DimensionDisplayValue) | No | OffsetLedgerDimensionDAVC.DisplayValue |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Deal Posting (data entity) (MGCEarmarkDealPostingEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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
Statuson 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, useMGCEarmarkDealMigrationEntityduring cut-over.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDeals (entity type MGCEarmarkDeal) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkDealStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | DealId (Deal ID) |
| Data sources | MGCEarmarkDeal |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
DealId (key) | Deal ID | String (MGCEarmarkDealId) | Yes | Create only | MGCEarmarkDeal.DealId |
Name | Name | String (MGCEarmarkDealName) | Yes | Yes | MGCEarmarkDeal.Name |
DealGroupId | Deal group | String (MGCEarmarkDealGroupId) | Yes | MGCEarmarkDeal.DealGroupId | |
DealOwner | Deal owner | String (UserId) | Yes | MGCEarmarkDeal.DealOwner | |
Module | Module | Enum MGCEarmarkModule | Yes | Create only | MGCEarmarkDeal.Module |
Shape | Deal shape | Enum MGCEarmarkDealShape | Yes | Create only | MGCEarmarkDeal.Shape |
TriggerSide | Trigger side | Enum MGCEarmarkTriggerSide | Yes | MGCEarmarkDeal.TriggerSide | |
ValidFrom | Effective | Date (TransDate) | Yes | Yes | MGCEarmarkDeal.ValidFrom |
ValidTo | Expiration | Date (TransDate) | Yes | Yes | MGCEarmarkDeal.ValidTo |
CurrencyCode | Deal currency | String (CurrencyCode) | Yes | Yes | MGCEarmarkDeal.CurrencyCode |
TaxGroup | Sales tax group | String (TaxGroup) | Yes | MGCEarmarkDeal.TaxGroup | |
PaymModeId | Method of payment | String (MGCEarmarkNaturalKey) | Yes | MGCEarmarkDeal.PaymModeId | |
AccrualPoint | Accrual point | Enum MGCEarmarkAccrualPoint | Yes | MGCEarmarkDeal.AccrualPoint | |
PriceMode | Price mode | Enum MGCEarmarkPriceMode | Yes | MGCEarmarkDeal.PriceMode | |
DealUnit | Deal unit | String (UnitOfMeasureSymbol) | Yes | MGCEarmarkDeal.DealUnit | |
RateBasis | Rate basis | Enum MGCEarmarkRateBasis | Yes | Yes | MGCEarmarkDeal.RateBasis |
AccrualAmount | Accrual amount | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.AccrualAmount | |
AccrualAmountUnitQty | Per quantity | Real (MGCEarmarkAmountUnitQty) | Yes | MGCEarmarkDeal.AccrualAmountUnitQty | |
AccrualPercent | Accrual percentage | Real (MGCEarmarkRatePercent) | Yes | MGCEarmarkDeal.AccrualPercent | |
FixedAmount | Fixed amount | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.FixedAmount | |
MinAccrualPerTrans | Minimum accrual per transaction | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.MinAccrualPerTrans | |
MaxAccrualPerTrans | Maximum accrual per transaction | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.MaxAccrualPerTrans | |
LifetimeCap | Lifetime cap | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.LifetimeCap | |
MinQuantity | Minimum qualifying quantity | Real (MGCEarmarkDealQty) | Yes | MGCEarmarkDeal.MinQuantity | |
MaxQuantity | Maximum qualifying quantity | Real (MGCEarmarkDealQty) | Yes | MGCEarmarkDeal.MaxQuantity | |
CriteriaType | Criteria type | Enum MGCEarmarkCriteriaType | Yes | MGCEarmarkDeal.CriteriaType | |
AllowAmountEdit | Allow amount edit | Enum NoYes | Yes | MGCEarmarkDeal.AllowAmountEdit | |
HeadroomAlertPercent | Headroom alert percentage | Real (MGCEarmarkRatePercent) | Yes | MGCEarmarkDeal.HeadroomAlertPercent | |
ClaimableBy | Claimable by | Enum MGCEarmarkClaimableBy | Yes | MGCEarmarkDeal.ClaimableBy | |
AccountSource | Account source | Enum MGCEarmarkAccountSource | Yes | MGCEarmarkDeal.AccountSource | |
FundingVendorAccount | Funding vendor | String (VendAccount) | Yes | MGCEarmarkDeal.FundingVendorAccount | |
Status | Deal status | Enum MGCEarmarkDealStatus | Create only | MGCEarmarkDeal.Status | |
SubmittedBy | Submitted by | String (UserId) | No | MGCEarmarkDeal.SubmittedBy | |
SubmittedDateTime | Submitted | UtcDateTime (TransDateTime) | No | MGCEarmarkDeal.SubmittedDateTime | |
ApprovedBy | Approved by | String (UserId) | No | MGCEarmarkDeal.ApprovedBy | |
ApprovedDateTime | Approved | UtcDateTime (TransDateTime) | No | MGCEarmarkDeal.ApprovedDateTime | |
EndedBy | Ended by | String (UserId) | No | MGCEarmarkDeal.EndedBy | |
EndedDateTime | Ended | UtcDateTime (TransDateTime) | No | MGCEarmarkDeal.EndedDateTime | |
EndReasonCode | End reason | String (ReasonCode) | No | MGCEarmarkDeal.EndReasonCode | |
EndReasonNote | End reason note | String (MGCEarmarkReasonNote) | No | MGCEarmarkDeal.EndReasonNote | |
WorkflowInstanceId | Workflow instance | Guid (WorkflowInstanceId) | No | MGCEarmarkDeal.WorkflowInstanceId |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Deal (data entity) (MGCEarmarkDealEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDimensionRules (entity type MGCEarmarkDimensionRule) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkDimensionRuleStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | MovementType (Movement type), Sequence (Sequence) |
| Data sources | MGCEarmarkDimensionRule |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
MovementType (key) | Movement type | Enum MGCEarmarkMovementType | Create only | MGCEarmarkDimensionRule.MovementType | |
Sequence (key) | Sequence | Integer (MGCEarmarkPriority) | Create only | MGCEarmarkDimensionRule.Sequence | |
Source | Source | Enum MGCEarmarkDimensionSource | Yes | MGCEarmarkDimensionRule.Source | |
Side | Side | Enum MGCEarmarkDimensionSide | Yes | MGCEarmarkDimensionRule.Side | |
FixedDimensionValue | Fixed dimension values | String (DimensionDisplayValue) | Yes | Virtual | |
Active | Active | Enum NoYes | Yes | MGCEarmarkDimensionRule.Active | |
EffectiveFrom | Effective from | Date (TransDate) | Yes | MGCEarmarkDimensionRule.EffectiveFrom | |
EffectiveTo | Effective to | Date (TransDate) | Yes | MGCEarmarkDimensionRule.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
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Dimension Rule (data entity) (MGCEarmarkDimensionRuleEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkInboundPricingPolicies (entity type MGCEarmarkInboundPricingPolicy) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkInboundPricingPolicyStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | CustomerCode (Customer code), CustomerRelation (Customer relation), OriginCode (Sales origin code), SalesOriginId (Sales origin), EffectiveFrom (Effective from) |
| Data sources | MGCEarmarkInboundPricingPolicy |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
CustomerCode (key) | Customer code | Enum MGCEarmarkAccountSelector | Yes | Create only | MGCEarmarkInboundPricingPolicy.CustomerCode |
CustomerRelation (key) | Customer relation | String (MGCEarmarkAccountRelation) | Create only | MGCEarmarkInboundPricingPolicy.CustomerRelation | |
OriginCode (key) | Sales origin code | Enum MGCEarmarkOriginSelector | Yes | Create only | MGCEarmarkInboundPricingPolicy.OriginCode |
SalesOriginId (key) | Sales origin | String (SalesOriginId) | Create only | MGCEarmarkInboundPricingPolicy.SalesOriginId | |
EffectiveFrom (key) | Effective from | Date (TransDate) | Create only | MGCEarmarkInboundPricingPolicy.EffectiveFrom | |
EffectiveTo | Effective to | Date (TransDate) | Yes | MGCEarmarkInboundPricingPolicy.EffectiveTo | |
Action | Action | Enum MGCEarmarkInboundPricingAction | Yes | MGCEarmarkInboundPricingPolicy.Action | |
BaseSource | Base price source | Enum MGCEarmarkInboundBaseSource | Yes | MGCEarmarkInboundPricingPolicy.BaseSource | |
Priority | Priority | Integer (MGCEarmarkPriority) | Yes | MGCEarmarkInboundPricingPolicy.Priority |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Inbound Pricing Policy (data entity) (MGCEarmarkInboundPricingPolicyEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkLicenseStates (entity type MGCEarmarkLicenseState) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkLicenseStateStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ProductCode (Product code) |
| Data sources | MGCEarmarkLicenseState |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ProductCode (key) | Product code | String (MGCEarmarkNaturalKey) | MGCEarmarkLicenseState.ProductCode |
Verdict | License verdict | Enum MGCEarmarkLicenseVerdict | MGCEarmarkLicenseState.Verdict |
Source | Verdict source | Enum MGCEarmarkLicenseSource | MGCEarmarkLicenseState.Source |
GraceEndDate | Grace period ends | Date (TransDate) | MGCEarmarkLicenseState.GraceEndDate |
LastCheckDateTime | Last checked | UtcDateTime (TransDateTime) | MGCEarmarkLicenseState.LastCheckDateTime |
LastSuccessfulCheckDateTime | Last successful check | UtcDateTime (TransDateTime) | MGCEarmarkLicenseState.LastSuccessfulCheckDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark license state entity (MGCEarmarkLicenseStateEntityViewPriv) | Read | Inquire into Earmark configuration (MGCEarmarkConfigurationInquiryDuty) | Accounting manager (LedgerAccountingManager), Earmark auditor (MGCEarmarkAuditor) |
View Earmark license state entity (MGCEarmarkLicenseStateEntityViewPriv) | Read | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkPostingProfiles (entity type MGCEarmarkPostingProfile) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkPostingProfileStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | PostingType (Posting type), ItemCode (Item code), ItemRelation (Item relation), AccountCode (Account code), AccountRelation (Account relation) |
| Data sources | MGCEarmarkPostingProfile; LedgerDimensionDAVC = DimensionCombinationEntity (outer join, read-only) |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
PostingType (key) | Posting type | Enum MGCEarmarkPostingType | Create only | MGCEarmarkPostingProfile.PostingType | |
ItemCode (key) | Item code | Enum MGCEarmarkItemSelector | Create only | MGCEarmarkPostingProfile.ItemCode | |
ItemRelation (key) | Item relation | String (MGCEarmarkItemRelation) | Create only | MGCEarmarkPostingProfile.ItemRelation | |
AccountCode (key) | Account code | Enum MGCEarmarkAccountSelector | Create only | MGCEarmarkPostingProfile.AccountCode | |
AccountRelation (key) | Account relation | String (MGCEarmarkAccountRelation) | Create only | MGCEarmarkPostingProfile.AccountRelation | |
MainAccount | Dimension combination display value | String (DimensionDisplayValue) | No | LedgerDimensionDAVC.DisplayValue |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Posting Profile (data entity) (MGCEarmarkPostingProfileEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkReasonApplicabilities (entity type MGCEarmarkReasonApplicability) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkReasonApplicabilityStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ReasonCode (Reason code) |
| Data sources | MGCEarmarkReasonApplicability |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
ReasonCode (key) | Reason code | String (ReasonCode) | Yes | Create only | MGCEarmarkReasonApplicability.ReasonCode |
EarmarkApplicable | Applicable to Earmark | Enum NoYes | Yes | MGCEarmarkReasonApplicability.EarmarkApplicable |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Reason Applicability (data entity) (MGCEarmarkReasonApplicabilityEntityViewPriv) | Read | Inquire 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, Correct | Maintain 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkAccrualInstances (entity type MGCEarmarkAccrualInstance) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkAccrualInstanceStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | AccrualInstanceId (Accrual instance) |
| Data sources | MGCEarmarkAccrualInstance |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
AccrualInstanceId (key) | Accrual instance | String (MGCEarmarkAccrualInstanceId) | MGCEarmarkAccrualInstance.AccrualInstanceId |
Status | Status | Enum MGCEarmarkAccrualInstanceStatus | MGCEarmarkAccrualInstance.Status |
StatusReasonCode | Reason | String (ReasonCode) | MGCEarmarkAccrualInstance.StatusReasonCode |
StatusReasonNote | Reason comment | String (MGCEarmarkReasonNote) | MGCEarmarkAccrualInstance.StatusReasonNote |
StatusChangedBy | Changed by | String (UserId) | MGCEarmarkAccrualInstance.StatusChangedBy |
StatusChangedDateTime | Changed on | UtcDateTime (TransDateTime) | MGCEarmarkAccrualInstance.StatusChangedDateTime |
DealId | Deal | String (MGCEarmarkDealId) | MGCEarmarkAccrualInstance.DealId |
DealShape | Deal shape | Enum MGCEarmarkDealShape | MGCEarmarkAccrualInstance.DealShape |
Module | Module | Enum MGCEarmarkModule | MGCEarmarkAccrualInstance.Module |
QualifyingRank | Qualifying rank | Integer (MGCEarmarkSpecificityRank) | MGCEarmarkAccrualInstance.QualifyingRank |
InventTransId | Lot ID | String (InventTransId) | MGCEarmarkAccrualInstance.InventTransId |
ReferenceCategory | Source document type | String (MGCEarmarkSourceRefCategory) | MGCEarmarkAccrualInstance.ReferenceCategory |
ReferenceId | Source document | String (MGCEarmarkNaturalKey) | MGCEarmarkAccrualInstance.ReferenceId |
CounterpartyType | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | MGCEarmarkAccrualInstance.CounterpartyType |
CounterpartyAccount | Counterparty | String (MGCEarmarkAccountRelation) | MGCEarmarkAccrualInstance.CounterpartyAccount |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkAccrualInstance.CurrencyCode |
AccrualPoint | Accrual point | Enum MGCEarmarkAccrualPoint | MGCEarmarkAccrualInstance.AccrualPoint |
ClaimableBy | Claimable by | Enum MGCEarmarkClaimableBy | MGCEarmarkAccrualInstance.ClaimableBy |
AccountSource | Account source | Enum MGCEarmarkAccountSource | MGCEarmarkAccrualInstance.AccountSource |
PriceMode | Price mode | Enum MGCEarmarkPriceMode | MGCEarmarkAccrualInstance.PriceMode |
Direction | Direction | Enum MGCEarmarkAccrualDirection | MGCEarmarkAccrualInstance.Direction |
TriggerSide | Trigger side | Enum MGCEarmarkTriggerSide | MGCEarmarkAccrualInstance.TriggerSide |
MirrorSide | Mirror side | Enum MGCEarmarkMirrorSide | MGCEarmarkAccrualInstance.MirrorSide |
DealUnit | Deal unit | String (UnitOfMeasureSymbol) | MGCEarmarkAccrualInstance.DealUnit |
InventoryUnit | Inventory unit | String (UnitOfMeasureSymbol) | MGCEarmarkAccrualInstance.InventoryUnit |
DealUnitFactor | Conversion factor | Real (MGCEarmarkConversionFactor) | MGCEarmarkAccrualInstance.DealUnitFactor |
CatchWeightItem | Catch weight item | Enum NoYes | MGCEarmarkAccrualInstance.CatchWeightItem |
RateBasis | Rate basis | Enum MGCEarmarkRateBasis | MGCEarmarkAccrualInstance.RateBasis |
AccrualAmount | Amount per unit | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualInstance.AccrualAmount |
AccrualAmountUnitQty | Per quantity | Real (MGCEarmarkAmountUnitQty) | MGCEarmarkAccrualInstance.AccrualAmountUnitQty |
AccrualPercent | Percentage | Real (MGCEarmarkRatePercent) | MGCEarmarkAccrualInstance.AccrualPercent |
FixedAmount | Fixed amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualInstance.FixedAmount |
MinAccrualPerTrans | Minimum per transaction | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualInstance.MinAccrualPerTrans |
MaxAccrualPerTrans | Maximum per transaction | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualInstance.MaxAccrualPerTrans |
AllowAmountEdit | Amount editable | Enum NoYes | MGCEarmarkAccrualInstance.AllowAmountEdit |
LifetimeCapSnapshot | Lifetime cap when committed | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualInstance.LifetimeCapSnapshot |
MinQuantitySnapshot | Qualifying quantity when committed | Real (MGCEarmarkDealQty) | MGCEarmarkAccrualInstance.MinQuantitySnapshot |
MaxQuantitySnapshot | Maximum quantity when committed | Real (MGCEarmarkDealQty) | MGCEarmarkAccrualInstance.MaxQuantitySnapshot |
CriteriaTypeSnapshot | Criteria type when committed | Enum MGCEarmarkCriteriaType | MGCEarmarkAccrualInstance.CriteriaTypeSnapshot |
BasePrice | Base price | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualInstance.BasePrice |
OverBasis | Over basis | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualInstance.OverBasis |
PriceUnit | Price unit | Real (PriceUnit) | MGCEarmarkAccrualInstance.PriceUnit |
BuildExchRate | Exchange rate at build | Real (ExchRate) | MGCEarmarkAccrualInstance.BuildExchRate |
BuildRateType | Exchange rate type at build | String (ExchangeRateTypeName) | MGCEarmarkAccrualInstance.BuildRateType |
BuildRateDate | Exchange rate date at build | Date (TransDate) | MGCEarmarkAccrualInstance.BuildRateDate |
PercentBasisSource | Percent basis | Enum MGCEarmarkPercentBasisSource | MGCEarmarkAccrualInstance.PercentBasisSource |
JournalNameAccumulation | Accumulation journal name | String (LedgerJournalNameId) | MGCEarmarkAccrualInstance.JournalNameAccumulation |
JournalNameReversal | Reversal journal name | String (LedgerJournalNameId) | MGCEarmarkAccrualInstance.JournalNameReversal |
JournalNameAdjustment | Adjustment journal name | String (LedgerJournalNameId) | MGCEarmarkAccrualInstance.JournalNameAdjustment |
JournalNameClaim | Claim journal name | String (LedgerJournalNameId) | MGCEarmarkAccrualInstance.JournalNameClaim |
JournalNameClaimApproval | Claim approval journal name | String (LedgerJournalNameId) | MGCEarmarkAccrualInstance.JournalNameClaimApproval |
JournalNameClaimReversal | Claim reversal journal name | String (LedgerJournalNameId) | MGCEarmarkAccrualInstance.JournalNameClaimReversal |
SettlementSource | Settlement source | Enum MGCEarmarkSettlementSource | MGCEarmarkAccrualInstance.SettlementSource |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Accrual Instance (data entity) (MGCEarmarkAccrualInstanceEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkAccrualJournalRegisters (entity type MGCEarmarkAccrualJournalRegister) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkAccrualJournalRegisterStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | JournalNum (Journal number), Voucher (Voucher) |
| Data sources | MGCEarmarkAccrualJournalRegister |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
JournalNum (key) | Journal number | String (LedgerJournalId) | MGCEarmarkAccrualJournalRegister.JournalNum |
Voucher (key) | Voucher | String (Voucher) | MGCEarmarkAccrualJournalRegister.Voucher |
LedgerJournalTableRecId | Journal reference | Int64 (RefRecId) | MGCEarmarkAccrualJournalRegister.LedgerJournalTable |
EarmarkJournalType | Earmark journal type | Enum MGCEarmarkJournalType | MGCEarmarkAccrualJournalRegister.EarmarkJournalType |
MovementType | Movement type | Enum MGCEarmarkMovementType | MGCEarmarkAccrualJournalRegister.MovementType |
DealRecId | Deal | Int64 (RefRecId) | MGCEarmarkAccrualJournalRegister.Deal |
AccrualInstanceRecId | Accrual instance | Int64 (RefRecId) | MGCEarmarkAccrualJournalRegister.AccrualInstance |
AccrualTransRecId | Accrual transaction | Int64 (RefRecId) | MGCEarmarkAccrualJournalRegister.AccrualTrans |
SystemGenerated | System generated | Enum NoYes | MGCEarmarkAccrualJournalRegister.SystemGenerated |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Accrual Journal Register (data entity) (MGCEarmarkAccrualJournalRegisterEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkAccrualTransactions (entity type MGCEarmarkAccrualTransaction) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkAccrualTransStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | AccrualTransId (Accrual transaction) |
| Data sources | MGCEarmarkAccrualTrans; 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
| Field | Label | Type | Source |
|---|---|---|---|
AccrualTransId (key) | Accrual transaction | String (MGCEarmarkAccrualTransId) | MGCEarmarkAccrualTrans.AccrualTransId |
ParentAccrualTransId | Accrual transaction | String (MGCEarmarkAccrualTransId) | ParentTrans.AccrualTransId |
AccrualInstanceId | Accrual instance | String (MGCEarmarkAccrualInstanceId) | AccrualInstance.AccrualInstanceId |
DealId | Deal | String (MGCEarmarkDealId) | AccrualInstance.DealId |
CounterpartyType | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | AccrualInstance.CounterpartyType |
CounterpartyAccount | Counterparty | String (MGCEarmarkAccountRelation) | AccrualInstance.CounterpartyAccount |
InventTransId | Lot ID | String (InventTransId) | AccrualInstance.InventTransId |
ReferenceCategory | Source document type | String (MGCEarmarkSourceRefCategory) | AccrualInstance.ReferenceCategory |
ReferenceId | Source document | String (MGCEarmarkNaturalKey) | AccrualInstance.ReferenceId |
MovementType | Movement type | Enum MGCEarmarkMovementType | MGCEarmarkAccrualTrans.MovementType |
Origin | Origin | Enum MGCEarmarkMovementOrigin | MGCEarmarkAccrualTrans.Origin |
State | State | Enum MGCEarmarkAccrualTransState | MGCEarmarkAccrualTrans.State |
PostingStatus | Posting status | Enum MGCEarmarkAccrualPostingStatus | MGCEarmarkAccrualTrans.PostingStatus |
AmountCur | Amount in deal currency | Real (MGCEarmarkAccrualAmount) | MGCEarmarkAccrualTrans.AmountCur |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkAccrualTrans.CurrencyCode |
AmountMST | Amount in accounting currency | Real (MGCEarmarkAccrualAmountMST) | MGCEarmarkAccrualTrans.AmountMST |
ExchRate | Exchange rate | Real (ExchRate) | MGCEarmarkAccrualTrans.ExchRate |
ExchRateDate | Exchange rate date | Date (TransDate) | MGCEarmarkAccrualTrans.ExchRateDate |
PostingDate | Posting date | Date (TransDate) | MGCEarmarkAccrualTrans.PostingDate |
Qty | Quantity | Real (MGCEarmarkDealQty) | MGCEarmarkAccrualTrans.Qty |
QtyUnit | Unit | String (UnitOfMeasureSymbol) | MGCEarmarkAccrualTrans.QtyUnit |
JournalNum | Journal | String (LedgerJournalId) | MGCEarmarkAccrualTrans.JournalNum |
Voucher | Voucher | String (Voucher) | MGCEarmarkAccrualTrans.Voucher |
LedgerAccount | Dimension combination display value | String (DimensionDisplayValue) | LedgerAccountDAVC.DisplayValue |
OffsetLedgerAccount | Dimension combination display value | String (DimensionDisplayValue) | OffsetAccountDAVC.DisplayValue |
SourceDocumentType | Source document type | Enum MGCEarmarkSourceDocType | MGCEarmarkAccrualTrans.SourceDocumentType |
PackingSlipId | Packing slip | String (PackingSlipId) | MGCEarmarkAccrualTrans.PackingSlipId |
InvoiceId | Invoice | String (InvoiceId) | MGCEarmarkAccrualTrans.InvoiceId |
ProductReceiptId | Product receipt | String (ProductReceiptId) | MGCEarmarkAccrualTrans.ProductReceiptId |
ReturnPackingSlipId | Return packing slip | String (PackingSlipId) | MGCEarmarkAccrualTrans.ReturnPackingSlipId |
CreditNoteId | Credit note | String (CustCreditNoteId) | MGCEarmarkAccrualTrans.CreditNoteId |
ItemId | Item | String (ItemId) | MGCEarmarkAccrualTrans.ItemId |
InventDimId | Inventory dimensions | String (InventDimId) | MGCEarmarkAccrualTrans.InventDimId |
ReasonCode | Reason | String (ReasonCode) | MGCEarmarkAccrualTrans.ReasonCode |
ReasonNote | Reason note | String (MGCEarmarkReasonNote) | MGCEarmarkAccrualTrans.ReasonNote |
Actor | Actor | String (UserId) | MGCEarmarkAccrualTrans.Actor |
AutomationWrite | Automated | Enum NoYes | MGCEarmarkAccrualTrans.AutomationWrite |
ReturnAfterClaimFlag | Return after claim | Enum NoYes | MGCEarmarkAccrualTrans.ReturnAfterClaimFlag |
ClaimReference | Claim reference | String (MGCEarmarkClaimLineRef) | Computed |
ClaimStatus | Claim status | Enum MGCEarmarkClaimStatus | Computed |
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
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Accrual Trans (data entity) (MGCEarmarkAccrualTransEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaimAgings (entity type MGCEarmarkClaimAging) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkClaimAgingStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ClaimId (Claim ID), LineNum (Line number) |
| Data sources | MGCEarmarkClaimAgingView |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ClaimId (key) | Claim ID | String (MGCEarmarkClaimId) | MGCEarmarkClaimAgingView.ClaimId |
LineNum (key) | Line number | Real (LineNum) | MGCEarmarkClaimAgingView.LineNum |
ClaimReference | Claim reference | String (MGCEarmarkClaimLineRef) | Computed |
CounterpartyType | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | MGCEarmarkClaimAgingView.CounterpartyType |
CounterpartyAccount | Counterparty account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaimAgingView.CounterpartyAccount |
InvoiceAccount | Invoice account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaimAgingView.InvoiceAccount |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkClaimAgingView.CurrencyCode |
DealId | Deal ID | String (MGCEarmarkDealId) | MGCEarmarkClaimAgingView.DealId |
DealGroupId | Deal group ID | String (MGCEarmarkDealGroupId) | MGCEarmarkClaimAgingView.DealGroupId |
ItemId | Item number | String (ItemId) | MGCEarmarkClaimAgingView.ItemId |
ClaimAmountCur | Claim amount | Real (MGCEarmarkClaimAmount) | MGCEarmarkClaimAgingView.ClaimAmountCur |
ClaimAmountMST | Claim amount (accounting currency) | Real (AmountMST) | MGCEarmarkClaimAgingView.ClaimAmountMST |
ApprovalVoucher | Approval voucher | String (Voucher) | MGCEarmarkClaimAgingView.ApprovalVoucher |
PostingStatus | Posting status | Enum MGCEarmarkClaimPostingStatus | MGCEarmarkClaimAgingView.PostingStatus |
ApprovedDateTime | Approved on | UtcDateTime (TransDateTime) | MGCEarmarkClaimAgingView.ApprovedDateTime |
DaysSinceApproval | Days since approval | Integer | MGCEarmarkClaimAgingView.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
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Claim Aging (data entity) (MGCEarmarkClaimAgingEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaims (entity type MGCEarmarkClaim) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkClaimStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ClaimId (Claim ID) |
| Data sources | MGCEarmarkClaim; ReversalClaim = MGCEarmarkClaim (outer join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ClaimId (key) | Claim ID | String (MGCEarmarkClaimId) | MGCEarmarkClaim.ClaimId |
CounterpartyType | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | MGCEarmarkClaim.CounterpartyType |
CounterpartyAccount | Counterparty account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaim.CounterpartyAccount |
InvoiceAccount | Invoice account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaim.InvoiceAccount |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkClaim.CurrencyCode |
Status | Claim status | Enum MGCEarmarkClaimStatus | MGCEarmarkClaim.Status |
PostingStatus | Posting status | Enum MGCEarmarkClaimPostingStatus | MGCEarmarkClaim.PostingStatus |
AssignedTo | Assigned to | String (UserId) | MGCEarmarkClaim.AssignedTo |
AssignedBy | Assigned by | String (UserId) | MGCEarmarkClaim.AssignedBy |
AssignedDateTime | Assigned on | UtcDateTime (TransDateTime) | MGCEarmarkClaim.AssignedDateTime |
GeneratedBy | Generated by | String (UserId) | MGCEarmarkClaim.GeneratedBy |
GeneratedDateTime | Generated on | UtcDateTime (TransDateTime) | MGCEarmarkClaim.GeneratedDateTime |
SubmittedBy | Submitted by | String (UserId) | MGCEarmarkClaim.SubmittedBy |
SubmittedDateTime | Submitted on | UtcDateTime (TransDateTime) | MGCEarmarkClaim.SubmittedDateTime |
ApprovedBy | Approved by | String (UserId) | MGCEarmarkClaim.ApprovedBy |
ApprovedDateTime | Approved on | UtcDateTime (TransDateTime) | MGCEarmarkClaim.ApprovedDateTime |
WorkflowInstanceId | Workflow instance | Guid (WorkflowInstanceId) | MGCEarmarkClaim.WorkflowInstanceId |
TotalAmountCur | Total claim amount | Real (MGCEarmarkClaimAmount) | MGCEarmarkClaim.TotalAmountCur |
TotalAmountMST | Total claim amount (accounting currency) | Real (AmountMST) | MGCEarmarkClaim.TotalAmountMST |
ReturnFlagBadge | Return review outstanding | Enum NoYes | MGCEarmarkClaim.ReturnFlagBadge |
ReversalClaimId | Claim ID | String (MGCEarmarkClaimId) | ReversalClaim.ClaimId |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Claim (data entity) (MGCEarmarkClaimEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaimLines (entity type MGCEarmarkClaimLine) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkClaimLineStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ClaimId (Claim ID), LineNum (Line number) |
| Data sources | MGCEarmarkClaimLine; Claim = MGCEarmarkClaim (outer join, read-only); AccrualInstance = MGCEarmarkAccrualInstance (outer join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ClaimId (key) | Claim ID | String (MGCEarmarkClaimId) | Claim.ClaimId |
LineNum (key) | Line number | Real (LineNum) | MGCEarmarkClaimLine.LineNum |
ClaimReference | Claim reference | String (MGCEarmarkClaimLineRef) | Computed |
ClaimStatus | Claim status | Enum MGCEarmarkClaimStatus | Claim.Status |
CounterpartyType | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | Claim.CounterpartyType |
CounterpartyAccount | Counterparty account | String (MGCEarmarkAccountRelation) | Claim.CounterpartyAccount |
InvoiceAccount | Invoice account | String (MGCEarmarkAccountRelation) | Claim.InvoiceAccount |
CurrencyCode | Currency | String (CurrencyCode) | Claim.CurrencyCode |
AccrualTransId | Accrual transaction ID | String (MGCEarmarkAccrualTransId) | MGCEarmarkClaimLine.AccrualTransId |
AccrualInstanceId | Accrual instance | String (MGCEarmarkAccrualInstanceId) | AccrualInstance.AccrualInstanceId |
DealId | Deal ID | String (MGCEarmarkDealId) | MGCEarmarkClaimLine.DealId |
DealGroupId | Deal group ID | String (MGCEarmarkDealGroupId) | MGCEarmarkClaimLine.DealGroupId |
ItemId | Item number | String (ItemId) | MGCEarmarkClaimLine.ItemId |
Qty | Quantity | Real (MGCEarmarkDealQty) | MGCEarmarkClaimLine.Qty |
QtyUnit | Quantity unit | String (UnitOfMeasureSymbol) | MGCEarmarkClaimLine.QtyUnit |
Rate | Rate | Real (MGCEarmarkAllowanceAmount) | MGCEarmarkClaimLine.Rate |
RateUnit | Rate unit | String (UnitOfMeasureSymbol) | MGCEarmarkClaimLine.RateUnit |
ClaimAmountCur | Claim amount | Real (MGCEarmarkClaimAmount) | MGCEarmarkClaimLine.ClaimAmountCur |
ClaimAmountMST | Claim amount (accounting currency) | Real (AmountMST) | MGCEarmarkClaimLine.ClaimAmountMST |
CustomerPO | Customer purchase order | String (CustPurchaseOrder) | MGCEarmarkClaimLine.CustomerPO |
SalesId | Sales order | String (SalesIdBase) | MGCEarmarkClaimLine.SalesId |
InvoiceId | Invoice | String (InvoiceId) | MGCEarmarkClaimLine.InvoiceId |
InvoiceDate | Invoice date | Date (TransDate) | MGCEarmarkClaimLine.InvoiceDate |
PackingSlipId | Packing slip | String (PackingSlipId) | MGCEarmarkClaimLine.PackingSlipId |
ShipDate | Ship date | Date (TransDate) | MGCEarmarkClaimLine.ShipDate |
ApprovalJournalNum | Approval journal | String (LedgerJournalId) | MGCEarmarkClaimLine.ApprovalJournalNum |
ApprovalVoucher | Approval voucher | String (Voucher) | MGCEarmarkClaimLine.ApprovalVoucher |
PostingStatus | Posting status | Enum MGCEarmarkClaimPostingStatus | MGCEarmarkClaimLine.PostingStatus |
ReturnFlag | Return after claim | Enum NoYes | MGCEarmarkClaimLine.ReturnFlag |
ReturnFlagAccepted | Return review accepted | Enum NoYes | MGCEarmarkClaimLine.ReturnFlagAccepted |
ReturnFlagReason | Return review note | String (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
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Claim Line (data entity) (MGCEarmarkClaimLineEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaimMigrations (entity type MGCEarmarkClaimMigration) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkClaimMigrationStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ClaimId (Claim ID) |
| Data sources | MGCEarmarkClaim |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
ClaimId (key) | Claim ID | String (MGCEarmarkClaimId) | Yes | Create only | MGCEarmarkClaim.ClaimId |
CounterpartyType | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | Create only | MGCEarmarkClaim.CounterpartyType | |
CounterpartyAccount | Counterparty account | String (MGCEarmarkAccountRelation) | Create only | MGCEarmarkClaim.CounterpartyAccount | |
InvoiceAccount | Invoice account | String (MGCEarmarkAccountRelation) | Yes | Create only | MGCEarmarkClaim.InvoiceAccount |
CurrencyCode | Currency | String (CurrencyCode) | Yes | Create only | MGCEarmarkClaim.CurrencyCode |
Status | Claim status | Enum MGCEarmarkClaimStatus | Create only | MGCEarmarkClaim.Status | |
PostingStatus | Posting status | Enum MGCEarmarkClaimPostingStatus | Create only | MGCEarmarkClaim.PostingStatus | |
AssignedTo | Assigned to | String (UserId) | Yes | MGCEarmarkClaim.AssignedTo | |
AssignedDateTime | Assigned on | UtcDateTime (TransDateTime) | Create only | MGCEarmarkClaim.AssignedDateTime | |
AssignedBy | Assigned by | String (UserId) | Create only | MGCEarmarkClaim.AssignedBy | |
GeneratedBy | Generated by | String (UserId) | Create only | MGCEarmarkClaim.GeneratedBy | |
GeneratedDateTime | Generated on | UtcDateTime (TransDateTime) | Create only | MGCEarmarkClaim.GeneratedDateTime | |
SubmittedBy | Submitted by | String (UserId) | Create only | MGCEarmarkClaim.SubmittedBy | |
SubmittedDateTime | Submitted on | UtcDateTime (TransDateTime) | Create only | MGCEarmarkClaim.SubmittedDateTime | |
ApprovedBy | Approved by | String (UserId) | Create only | MGCEarmarkClaim.ApprovedBy | |
ApprovedDateTime | Approved on | UtcDateTime (TransDateTime) | Create only | MGCEarmarkClaim.ApprovedDateTime | |
TotalAmountCur | Total claim amount | Real (MGCEarmarkClaimAmount) | Create only | MGCEarmarkClaim.TotalAmountCur | |
TotalAmountMST | Total claim amount (accounting currency) | Real (AmountMST) | Create only | MGCEarmarkClaim.TotalAmountMST | |
ReturnFlagBadge | Return review outstanding | Enum NoYes | Create only | MGCEarmarkClaim.ReturnFlagBadge |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark claim migration entity (MGCEarmarkClaimMigrationEntityViewPriv) | Read | Run Earmark migration (MGCEarmarkRunMigrationDuty) | No role by default |
Maintain Earmark claim migration entity (MGCEarmarkClaimMigrationEntityMaintainPriv) | Read, Create, Update, Correct | Migrate 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaimSettlementPreferences (entity type MGCEarmarkClaimSettlementPreference) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkClaimSettlementPreferenceStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | SettlementPreferenceRecId (Record ID), ClaimId (Claim ID), LineNum (Line number), RecordedDateTime (Recorded on) |
| Data sources | MGCEarmarkClaimSettlementPreference; ClaimLine = MGCEarmarkClaimLine (outer join, read-only); Claim = MGCEarmarkClaim (outer join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
SettlementPreferenceRecId (key) | Record ID | Int64 (RecId) | MGCEarmarkClaimSettlementPreference.RecId |
ClaimId (key) | Claim ID | String (MGCEarmarkClaimId) | Claim.ClaimId |
LineNum (key) | Line number | Real (LineNum) | ClaimLine.LineNum |
ClaimReference | Claim reference | String (MGCEarmarkClaimLineRef) | Computed |
InvoiceAccount | Invoice account | String (MGCEarmarkAccountRelation) | Claim.InvoiceAccount |
Preference | Settlement preference | Enum MGCEarmarkSettlementPreference | MGCEarmarkClaimSettlementPreference.Preference |
DateReceived | Date received | Date (TransDate) | MGCEarmarkClaimSettlementPreference.DateReceived |
Source | Preference source | Enum MGCEarmarkPreferenceSource | MGCEarmarkClaimSettlementPreference.Source |
Note | Preference note | String (MGCEarmarkPreferenceNote) | MGCEarmarkClaimSettlementPreference.Note |
IsCurrent | Current | Enum NoYes | MGCEarmarkClaimSettlementPreference.Current |
RecordedBy | Recorded by | String (UserId) | MGCEarmarkClaimSettlementPreference.RecordedBy |
RecordedDateTime (key) | Recorded on | UtcDateTime (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
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Claim Settlement Preference (data entity) (MGCEarmarkClaimSettlementPreferenceEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaimStatementLines (entity type MGCEarmarkClaimStatementLine) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkClaimStatementLineStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ClaimId (Claim ID), LineNum (Line number) |
| Data sources | MGCEarmarkClaimLineOpenView; ClaimLine = MGCEarmarkClaimLine (outer join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ClaimId (key) | Claim ID | String (MGCEarmarkClaimId) | MGCEarmarkClaimLineOpenView.ClaimId |
LineNum (key) | Line number | Real (LineNum) | MGCEarmarkClaimLineOpenView.LineNum |
ClaimReference | Claim reference | String (MGCEarmarkClaimLineRef) | Computed |
CounterpartyType | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | MGCEarmarkClaimLineOpenView.CounterpartyType |
CounterpartyAccount | Counterparty account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaimLineOpenView.CounterpartyAccount |
InvoiceAccount | Invoice account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaimLineOpenView.InvoiceAccount |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkClaimLineOpenView.CurrencyCode |
DealId | Deal ID | String (MGCEarmarkDealId) | MGCEarmarkClaimLineOpenView.DealId |
DealGroupId | Deal group ID | String (MGCEarmarkDealGroupId) | MGCEarmarkClaimLineOpenView.DealGroupId |
AccrualTransId | Accrual transaction ID | String (MGCEarmarkAccrualTransId) | MGCEarmarkClaimLineOpenView.AccrualTransId |
ItemId | Item number | String (ItemId) | MGCEarmarkClaimLineOpenView.ItemId |
Qty | Quantity | Real (MGCEarmarkDealQty) | ClaimLine.Qty |
QtyUnit | Quantity unit | String (UnitOfMeasureSymbol) | ClaimLine.QtyUnit |
Rate | Rate | Real (MGCEarmarkAllowanceAmount) | ClaimLine.Rate |
RateUnit | Rate unit | String (UnitOfMeasureSymbol) | ClaimLine.RateUnit |
ClaimAmountCur | Claim amount | Real (MGCEarmarkClaimAmount) | MGCEarmarkClaimLineOpenView.ClaimAmountCur |
ClaimAmountMST | Claim amount (accounting currency) | Real (AmountMST) | MGCEarmarkClaimLineOpenView.ClaimAmountMST |
CustomerPO | Customer purchase order | String (CustPurchaseOrder) | ClaimLine.CustomerPO |
SalesId | Sales order | String (SalesIdBase) | ClaimLine.SalesId |
InvoiceId | Invoice | String (InvoiceId) | ClaimLine.InvoiceId |
InvoiceDate | Invoice date | Date (TransDate) | ClaimLine.InvoiceDate |
PackingSlipId | Packing slip | String (PackingSlipId) | ClaimLine.PackingSlipId |
ShipDate | Ship date | Date (TransDate) | ClaimLine.ShipDate |
ReturnFlag | Return after claim | Enum NoYes | ClaimLine.ReturnFlag |
ReturnFlagAccepted | Return review accepted | Enum NoYes | ClaimLine.ReturnFlagAccepted |
PostingStatus | Posting status | Enum MGCEarmarkClaimPostingStatus | ClaimLine.PostingStatus |
ApprovedDateTime | Approved on | UtcDateTime (TransDateTime) | MGCEarmarkClaimLineOpenView.ApprovedDateTime |
ApprovalJournalNum | Journal | String (LedgerJournalId) | MGCEarmarkClaimLineOpenView.ApprovalJournalNum |
ApprovalVoucher | Voucher | String (Voucher) | MGCEarmarkClaimLineOpenView.ApprovalVoucher |
TransDate | Date | Date (TransDate) | MGCEarmarkClaimLineOpenView.TransDate |
TransCurrencyCode | Currency | String (CustCurrencyCode) | MGCEarmarkClaimLineOpenView.TransCurrencyCode |
TransAmountCur | Amount in transaction currency | Real (AmountCurDebCred) | MGCEarmarkClaimLineOpenView.TransAmountCur |
SettledAmount | Settled | Real (AmountCur) | MGCEarmarkClaimLineOpenView.SettledAmount |
SettledAmountMST | Amount settled | Real (AmountMST) | MGCEarmarkClaimLineOpenView.SettledAmountMST |
Remaining | Remaining | Real (MGCEarmarkRemainingAmount) | MGCEarmarkClaimLineOpenView.Remaining |
RemainingMST | Amount | Real (AmountMST) | MGCEarmarkClaimLineOpenView.RemainingMST |
LastSettlementDate | Last settlement date | Date (TransDate) | MGCEarmarkClaimLineOpenView.LastSettlementDate |
Closed | Closed | Date (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
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Claim Statement Line (data entity) (MGCEarmarkClaimStatementLineEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaimStatementRuns (entity type MGCEarmarkClaimStatementRun) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkClaimStatementRunStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | StatementRunId (Statement run ID) |
| Data sources | MGCEarmarkClaimStatementRun; ReRunOfRun = MGCEarmarkClaimStatementRun (outer join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
StatementRunId (key) | Statement run ID | String (MGCEarmarkStatementRunId) | MGCEarmarkClaimStatementRun.StatementRunId |
InvoiceAccount | Invoice account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaimStatementRun.InvoiceAccount |
AsOfDate | As of date | Date (TransDate) | MGCEarmarkClaimStatementRun.AsOfDate |
PeriodFrom | Period from | Date (TransDate) | MGCEarmarkClaimStatementRun.PeriodFrom |
PeriodTo | Period to | Date (TransDate) | MGCEarmarkClaimStatementRun.PeriodTo |
Mode | Statement mode | Enum MGCEarmarkStatementMode | MGCEarmarkClaimStatementRun.Mode |
InternalCopy | Internal copy | Enum NoYes | MGCEarmarkClaimStatementRun.InternalCopy |
AvailableBalance | Available balance | Real (MGCEarmarkAvailableBalance) | MGCEarmarkClaimStatementRun.AvailableBalance |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkClaimStatementRun.CurrencyCode |
LineCount | Lines | Integer (Counter) | MGCEarmarkClaimStatementRun.LineCount |
IsReRun | Re-run | Enum NoYes | MGCEarmarkClaimStatementRun.IsReRun |
ReRunOfStatementRunId | Statement run ID | String (MGCEarmarkStatementRunId) | ReRunOfRun.StatementRunId |
RunBy | Run by | String (UserId) | MGCEarmarkClaimStatementRun.RunBy |
RunDateTime | Run on | UtcDateTime (TransDateTime) | MGCEarmarkClaimStatementRun.RunDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Claim Statement Run (data entity) (MGCEarmarkClaimStatementRunEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkClaimsAvailableByCustomers (entity type MGCEarmarkClaimsAvailableByCustomer) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkClaimsAvailableByCustomerStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | InvoiceAccount (Invoice account), CounterpartyType (Counterparty type), CurrencyCode (Currency) |
| Data sources | MGCEarmarkClaimsAvailableByCustomerView |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
InvoiceAccount (key) | Invoice account | String (MGCEarmarkAccountRelation) | MGCEarmarkClaimsAvailableByCustomerView.InvoiceAccount |
CounterpartyType (key) | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | MGCEarmarkClaimsAvailableByCustomerView.CounterpartyType |
CurrencyCode (key) | Currency | String (CurrencyCode) | MGCEarmarkClaimsAvailableByCustomerView.CurrencyCode |
AvailableBalance | Available balance | Real (MGCEarmarkAvailableBalance) | MGCEarmarkClaimsAvailableByCustomerView.AvailableBalance |
AvailableBalanceMST | Amount | Real (AmountMST) | MGCEarmarkClaimsAvailableByCustomerView.AvailableBalanceMST |
OldestApprovalDate | Oldest approval date | UtcDateTime (TransDateTime) | MGCEarmarkClaimsAvailableByCustomerView.OldestApprovalDate |
OpenLineCount | Open lines | Count | MGCEarmarkClaimsAvailableByCustomerView.OpenLineCount |
PreferencesOutstanding | Lines without a preference | Integer | MGCEarmarkClaimsAvailableByCustomerView.PreferencesOutstanding |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Claims Available By Customer (data entity) (MGCEarmarkClaimsAvailableByCustomerEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkControlVerdicts (entity type MGCEarmarkControlVerdict) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkControlVerdictStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ControlVerdictRecId (Record ID), DealId (Deal ID), VerdictType (Verdict), VerdictDateTime (Verdict date and time) |
| Data sources | MGCEarmarkControlVerdict |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ControlVerdictRecId (key) | Record ID | Int64 (RecId) | MGCEarmarkControlVerdict.RecId |
VerdictType (key) | Verdict | Enum MGCEarmarkControlVerdictType | MGCEarmarkControlVerdict.VerdictType |
VerdictDateTime (key) | Verdict date and time | UtcDateTime (TransDateTime) | MGCEarmarkControlVerdict.VerdictDateTime |
DealId (key) | Deal ID | String (MGCEarmarkDealId) | MGCEarmarkControlVerdict.DealId |
CounterpartyAccount | Counterparty | String (MGCEarmarkAccountRelation) | MGCEarmarkControlVerdict.CounterpartyAccount |
AccrualInstance | Accrual instance | Int64 (RefRecId) | MGCEarmarkControlVerdict.AccrualInstance |
AccrualTrans | Accrual transaction | Int64 (RefRecId) | MGCEarmarkControlVerdict.AccrualTrans |
ComputedAmount | Computed amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkControlVerdict.ComputedAmount |
AppliedAmount | Applied amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkControlVerdict.AppliedAmount |
ComputedQty | Computed quantity | Real (MGCEarmarkDealQty) | MGCEarmarkControlVerdict.ComputedQty |
AppliedQty | Applied quantity | Real (MGCEarmarkDealQty) | MGCEarmarkControlVerdict.AppliedQty |
Resolved | Resolved | Enum NoYes | MGCEarmarkControlVerdict.Resolved |
ResolvedBy | Resolved by | String (UserId) | MGCEarmarkControlVerdict.ResolvedBy |
ResolvedDateTime | Resolved date and time | UtcDateTime (TransDateTime) | MGCEarmarkControlVerdict.ResolvedDateTime |
ResolutionNote | Resolution note | String (MGCEarmarkReasonNote) | MGCEarmarkControlVerdict.ResolutionNote |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Control Verdict (data entity) (MGCEarmarkControlVerdictEntityViewPriv) | Read | Monitor 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDealBalances (entity type MGCEarmarkDealBalance) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkDealBalanceStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | Level (Balance level), DealId (Deal ID), CounterpartyAccount (Counterparty account), FundingRule (Funding rule) (record ID) |
| Data sources | MGCEarmarkDealBalance |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
Level (key) | Balance level | Enum MGCEarmarkBalanceLevel | MGCEarmarkDealBalance.Level |
DealId (key) | Deal ID | String (MGCEarmarkDealId) | MGCEarmarkDealBalance.DealId |
CounterpartyAccount (key) | Counterparty account | String (MGCEarmarkAccountRelation) | MGCEarmarkDealBalance.CounterpartyAccount |
FundingRule (key) | Funding rule | Int64 (RefRecId) | MGCEarmarkDealBalance.FundingRule |
AccruedPosted | Accrued and posted | Real (MGCEarmarkBalanceAmount) | MGCEarmarkDealBalance.AccruedPosted |
AccruedPending | Accrued, journal pending | Real (MGCEarmarkBalanceAmount) | MGCEarmarkDealBalance.AccruedPending |
Reversed | Reversed | Real (MGCEarmarkBalanceAmount) | MGCEarmarkDealBalance.Reversed |
Returned | Returned | Real (MGCEarmarkBalanceAmount) | MGCEarmarkDealBalance.Returned |
Claimed | Claimed | Real (MGCEarmarkBalanceAmount) | MGCEarmarkDealBalance.Claimed |
ClaimApproved | Claim approved | Real (MGCEarmarkBalanceAmount) | MGCEarmarkDealBalance.ClaimApproved |
QuantityToDate | Quantity to date | Real (MGCEarmarkDealQty) | MGCEarmarkDealBalance.QuantityToDate |
QuantityBelowThreshold | Quantity below threshold | Real (MGCEarmarkDealQty) | MGCEarmarkDealBalance.QuantityBelowThreshold |
PendingCatchUpValue | Pending catch-up value | Real (MGCEarmarkCatchUpValue) | MGCEarmarkDealBalance.PendingCatchUpValue |
HeadroomAmount | Headroom amount | Real (MGCEarmarkHeadroomAmount) | MGCEarmarkDealBalance.HeadroomAmount |
HeadroomPercent | Headroom percentage | Real (MGCEarmarkHeadroomPercent) | MGCEarmarkDealBalance.HeadroomPercent |
LastAccrualDate | Last accrual date | Date (TransDate) | MGCEarmarkDealBalance.LastAccrualDate |
RebuiltDateTime | Rebuilt | UtcDateTime (TransDateTime) | MGCEarmarkDealBalance.RebuiltDateTime |
RebuildVariance | Rebuild variance | Real (MGCEarmarkBalanceAmount) | MGCEarmarkDealBalance.RebuildVariance |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Deal Balance (data entity) (MGCEarmarkDealBalanceEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkDealMigrations (entity type MGCEarmarkDealMigration) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkDealMigrationStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | DealId (Deal ID) |
| Data sources | MGCEarmarkDeal |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
DealId (key) | Deal ID | String (MGCEarmarkDealId) | Yes | Create only | MGCEarmarkDeal.DealId |
Name | Name | String (MGCEarmarkDealName) | Yes | Yes | MGCEarmarkDeal.Name |
DealGroupId | Deal group | String (MGCEarmarkDealGroupId) | Yes | MGCEarmarkDeal.DealGroupId | |
DealOwner | Deal owner | String (UserId) | Yes | MGCEarmarkDeal.DealOwner | |
Module | Module | Enum MGCEarmarkModule | Yes | Create only | MGCEarmarkDeal.Module |
Shape | Deal shape | Enum MGCEarmarkDealShape | Yes | Create only | MGCEarmarkDeal.Shape |
TriggerSide | Trigger side | Enum MGCEarmarkTriggerSide | Yes | MGCEarmarkDeal.TriggerSide | |
ValidFrom | Effective | Date (TransDate) | Yes | Yes | MGCEarmarkDeal.ValidFrom |
ValidTo | Expiration | Date (TransDate) | Yes | Yes | MGCEarmarkDeal.ValidTo |
CurrencyCode | Deal currency | String (CurrencyCode) | Yes | Yes | MGCEarmarkDeal.CurrencyCode |
TaxGroup | Sales tax group | String (TaxGroup) | Yes | MGCEarmarkDeal.TaxGroup | |
PaymModeId | Method of payment | String (MGCEarmarkNaturalKey) | Yes | MGCEarmarkDeal.PaymModeId | |
AccrualPoint | Accrual point | Enum MGCEarmarkAccrualPoint | Yes | MGCEarmarkDeal.AccrualPoint | |
PriceMode | Price mode | Enum MGCEarmarkPriceMode | Yes | MGCEarmarkDeal.PriceMode | |
DealUnit | Deal unit | String (UnitOfMeasureSymbol) | Yes | MGCEarmarkDeal.DealUnit | |
RateBasis | Rate basis | Enum MGCEarmarkRateBasis | Yes | Yes | MGCEarmarkDeal.RateBasis |
AccrualAmount | Accrual amount | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.AccrualAmount | |
AccrualAmountUnitQty | Per quantity | Real (MGCEarmarkAmountUnitQty) | Yes | MGCEarmarkDeal.AccrualAmountUnitQty | |
AccrualPercent | Accrual percentage | Real (MGCEarmarkRatePercent) | Yes | MGCEarmarkDeal.AccrualPercent | |
FixedAmount | Fixed amount | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.FixedAmount | |
MinAccrualPerTrans | Minimum accrual per transaction | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.MinAccrualPerTrans | |
MaxAccrualPerTrans | Maximum accrual per transaction | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.MaxAccrualPerTrans | |
LifetimeCap | Lifetime cap | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkDeal.LifetimeCap | |
MinQuantity | Minimum qualifying quantity | Real (MGCEarmarkDealQty) | Yes | MGCEarmarkDeal.MinQuantity | |
MaxQuantity | Maximum qualifying quantity | Real (MGCEarmarkDealQty) | Yes | MGCEarmarkDeal.MaxQuantity | |
CriteriaType | Criteria type | Enum MGCEarmarkCriteriaType | Yes | MGCEarmarkDeal.CriteriaType | |
AllowAmountEdit | Allow amount edit | Enum NoYes | Yes | MGCEarmarkDeal.AllowAmountEdit | |
HeadroomAlertPercent | Headroom alert percentage | Real (MGCEarmarkRatePercent) | Yes | MGCEarmarkDeal.HeadroomAlertPercent | |
ClaimableBy | Claimable by | Enum MGCEarmarkClaimableBy | Yes | MGCEarmarkDeal.ClaimableBy | |
AccountSource | Account source | Enum MGCEarmarkAccountSource | Yes | MGCEarmarkDeal.AccountSource | |
FundingVendorAccount | Funding vendor | String (VendAccount) | Yes | MGCEarmarkDeal.FundingVendorAccount | |
Status | Deal status | Enum MGCEarmarkDealStatus | Create only | MGCEarmarkDeal.Status | |
ApprovedBy | Approved by | String (UserId) | Create only | MGCEarmarkDeal.ApprovedBy | |
ApprovedDateTime | Approved | UtcDateTime (TransDateTime) | Create only | MGCEarmarkDeal.ApprovedDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark deal migration entity (MGCEarmarkDealMigrationEntityViewPriv) | Read | Run Earmark migration (MGCEarmarkRunMigrationDuty) | No role by default |
Maintain Earmark deal migration entity (MGCEarmarkDealMigrationEntityMaintainPriv) | Read, Create, Update, Correct | Migrate 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkExecutionExceptions (entity type MGCEarmarkExecutionException) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkExecutionExceptionStaging |
| Company | Shared across companies |
| Primary key | ExceptionId (Exception ID) |
| Data sources | MGCEarmarkExecutionException |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ExceptionId (key) | Exception ID | String (MGCEarmarkExceptionId) | MGCEarmarkExecutionException.ExceptionId |
SourceDocumentType | Source document type | Enum MGCEarmarkDocumentType | MGCEarmarkExecutionException.SourceDocumentType |
SourceRecId | Source reference | Int64 (RefRecId) | MGCEarmarkExecutionException.SourceRecId |
SourceNaturalKey | Source document | String (MGCEarmarkNaturalKey) | MGCEarmarkExecutionException.SourceNaturalKey |
SourcePackage | Source area | Enum MGCEarmarkSourcePackage | MGCEarmarkExecutionException.SourcePackage |
Operation | Operation | Enum MGCEarmarkExceptionOperation | MGCEarmarkExecutionException.Operation |
Message | Message | String (Notes) | MGCEarmarkExecutionException.Message |
Company | Company | String (DataAreaId) | MGCEarmarkExecutionException.Company |
Status | Exception status | Enum MGCEarmarkExceptionStatus | MGCEarmarkExecutionException.Status |
DismissReason | Dismiss reason | String (MGCEarmarkDismissReason) | MGCEarmarkExecutionException.DismissReason |
RetryCount | Retries | Integer (Integer) | MGCEarmarkExecutionException.RetryCount |
LastAttemptDateTime | Last attempt | UtcDateTime (TransDateTime) | MGCEarmarkExecutionException.LastAttemptDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Execution Exception (data entity) (MGCEarmarkExecutionExceptionEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkLinePrices (entity type MGCEarmarkLinePrice) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkLinePriceStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | LinePriceRecId (Record ID), OrderId (Order), LineNum (Line number), BuildNumber (Build number) |
| Data sources | MGCEarmarkLinePrice |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
LinePriceRecId (key) | Record ID | Int64 (RecId) | MGCEarmarkLinePrice.RecId |
OrderId (key) | Order | String (MGCEarmarkNaturalKey) | MGCEarmarkLinePrice.OrderId |
LineNum (key) | Line number | Real (LineNum) | MGCEarmarkLinePrice.LineNum |
BuildNumber (key) | Build number | Integer (MGCEarmarkBuildNumber) | MGCEarmarkLinePrice.BuildNumber |
LineTableId | Line table | Integer (RefTableId) | MGCEarmarkLinePrice.LineTableId |
LineRecId | Line reference | Int64 (RefRecId) | MGCEarmarkLinePrice.LineRecId |
InventTransId | Inventory transaction | String (InventTransId) | MGCEarmarkLinePrice.InventTransId |
Current | Current | Enum NoYes | MGCEarmarkLinePrice.Current |
BuildState | Build state | Enum MGCEarmarkBuildState | MGCEarmarkLinePrice.BuildState |
BuildSource | Build source | Enum MGCEarmarkBuildSource | MGCEarmarkLinePrice.BuildSource |
IdempotencyKey | Idempotency key | String (MGCEarmarkIdempotencyKey) | MGCEarmarkLinePrice.IdempotencyKey |
BuiltBy | Built by | String (UserId) | MGCEarmarkLinePrice.BuiltBy |
BuiltDateTime | Built on | UtcDateTime (TransDateTime) | MGCEarmarkLinePrice.BuiltDateTime |
BasePriceCur | Base price | Real (MGCEarmarkUnitPriceAmount) | MGCEarmarkLinePrice.BasePriceCur |
BasePriceMST | Base price (accounting currency) | Real (MGCEarmarkUnitPriceAmount) | MGCEarmarkLinePrice.BasePriceMST |
OverBasisCur | Over-basis | Real (MGCEarmarkOverBasisAmount) | MGCEarmarkLinePrice.OverBasisCur |
OverBasisMST | Over-basis (accounting currency) | Real (MGCEarmarkOverBasisAmount) | MGCEarmarkLinePrice.OverBasisMST |
DealMoneyCur | Deal money | Real (MGCEarmarkDealMoneyAmount) | MGCEarmarkLinePrice.DealMoneyCur |
DealMoneyMST | Deal money (accounting currency) | Real (MGCEarmarkDealMoneyAmount) | MGCEarmarkLinePrice.DealMoneyMST |
AllowanceCur | Allowance | Real (MGCEarmarkAllowanceAmount) | MGCEarmarkLinePrice.AllowanceCur |
AllowanceMST | Allowance (accounting currency) | Real (MGCEarmarkAllowanceAmount) | MGCEarmarkLinePrice.AllowanceMST |
UnitPriceCur | Built unit price | Real (MGCEarmarkUnitPriceAmount) | MGCEarmarkLinePrice.UnitPriceCur |
UnitPriceMST | Built unit price (accounting currency) | Real (MGCEarmarkUnitPriceAmount) | MGCEarmarkLinePrice.UnitPriceMST |
PriceUnit | Price unit | Real (PriceUnit) | MGCEarmarkLinePrice.PriceUnit |
PriceModeSummary | Price mode | Enum MGCEarmarkPriceMode | MGCEarmarkLinePrice.PriceModeSummary |
PreBuildUnitPrice | Price before build | Real (MGCEarmarkUnitPriceAmount) | MGCEarmarkLinePrice.PreBuildUnitPrice |
BuildExchRate | Exchange rate | Real (ExchRate) | MGCEarmarkLinePrice.BuildExchRate |
BuildRateType | Exchange rate type | String (ExchangeRateTypeName) | MGCEarmarkLinePrice.BuildRateType |
BuildRateDate | Exchange rate date | Date (TransDate) | MGCEarmarkLinePrice.BuildRateDate |
FpItemId | Item at build | String (ItemId) | MGCEarmarkLinePrice.FpItemId |
FpInventDimId | Dimensions at build | String (InventDimId) | MGCEarmarkLinePrice.FpInventDimId |
FpQty | Quantity at build | Real (MGCEarmarkDealQty) | MGCEarmarkLinePrice.FpQty |
FpSalesUnit | Unit at build | String (UnitOfMeasureSymbol) | MGCEarmarkLinePrice.FpSalesUnit |
FpPriceUnit | Price unit at build | Real (PriceUnit) | MGCEarmarkLinePrice.FpPriceUnit |
FpInvoiceAccount | Invoice account at build | String (MGCEarmarkAccountRelation) | MGCEarmarkLinePrice.FpInvoiceAccount |
FpEligibilityDate | Eligibility date at build | Date (TransDate) | MGCEarmarkLinePrice.FpEligibilityDate |
FpCurrencyCode | Currency at build | String (CurrencyCode) | MGCEarmarkLinePrice.FpCurrencyCode |
AcknowledgedBy | Acknowledged by | String (UserId) | MGCEarmarkLinePrice.AcknowledgedBy |
AcknowledgedDateTime | Acknowledged on | UtcDateTime (TransDateTime) | MGCEarmarkLinePrice.AcknowledgedDateTime |
AcknowledgeReasonCode | Acknowledgement reason | String (ReasonCode) | MGCEarmarkLinePrice.AcknowledgeReasonCode |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Line Price (data entity) (MGCEarmarkLinePriceEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkLinePriceComponents (entity type MGCEarmarkLinePriceComponent) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkLinePriceComponentStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | LinePriceComponentRecId (Record ID), OrderId (Order), LineNum (Line number), BuildNumber (Build number), ComponentType (Component type), DealId (Deal) |
| Data sources | MGCEarmarkLinePriceComponent; LinePrice = MGCEarmarkLinePrice (inner join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
LinePriceComponentRecId (key) | Record ID | Int64 (RecId) | MGCEarmarkLinePriceComponent.RecId |
OrderId (key) | Order | String (MGCEarmarkNaturalKey) | LinePrice.OrderId |
LineNum (key) | Line number | Real (LineNum) | LinePrice.LineNum |
BuildNumber (key) | Build number | Integer (MGCEarmarkBuildNumber) | LinePrice.BuildNumber |
Current | Current | Enum NoYes | LinePrice.Current |
BuildState | Build state | Enum MGCEarmarkBuildState | LinePrice.BuildState |
InventTransId | Inventory transaction | String (InventTransId) | LinePrice.InventTransId |
CurrencyCode | Currency at build | String (CurrencyCode) | LinePrice.FpCurrencyCode |
ComponentType (key) | Component type | Enum MGCEarmarkComponentType | MGCEarmarkLinePriceComponent.ComponentType |
DealId (key) | Deal | String (MGCEarmarkDealId) | MGCEarmarkLinePriceComponent.DealId |
ResolvedPriceMode | Price mode | Enum MGCEarmarkPriceMode | MGCEarmarkLinePriceComponent.ResolvedPriceMode |
AccrualInstance | Accrual instance | Int64 (RefRecId) | MGCEarmarkLinePriceComponent.AccrualInstance |
AmountPerDealUnitCur | Amount per deal unit | Real (MGCEarmarkAccrualAmount) | MGCEarmarkLinePriceComponent.AmountPerDealUnitCur |
AmountPerDealUnitMST | Amount per deal unit (accounting currency) | Real (MGCEarmarkAccrualAmountMST) | MGCEarmarkLinePriceComponent.AmountPerDealUnitMST |
AmountPerSalesUnitCur | Amount per sales unit | Real (MGCEarmarkAccrualAmount) | MGCEarmarkLinePriceComponent.AmountPerSalesUnitCur |
AmountPerSalesUnitMST | Amount per sales unit (accounting currency) | Real (MGCEarmarkAccrualAmountMST) | MGCEarmarkLinePriceComponent.AmountPerSalesUnitMST |
AmountPerPriceUnitCur | Amount per price unit | Real (MGCEarmarkAccrualAmount) | MGCEarmarkLinePriceComponent.AmountPerPriceUnitCur |
AmountPerPriceUnitMST | Amount per price unit (accounting currency) | Real (MGCEarmarkAccrualAmountMST) | MGCEarmarkLinePriceComponent.AmountPerPriceUnitMST |
DealUnitFactor | Deal unit factor | Real (MGCEarmarkConversionFactor) | MGCEarmarkLinePriceComponent.DealUnitFactor |
SalesUnitFactor | Sales unit factor | Real (MGCEarmarkSalesUnitFactor) | MGCEarmarkLinePriceComponent.SalesUnitFactor |
AmountEdited | Amount edited | Enum NoYes | MGCEarmarkLinePriceComponent.AmountEdited |
OriginalAmount | Original amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkLinePriceComponent.OriginalAmount |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Line Price Component (data entity) (MGCEarmarkLinePriceComponentEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkMigrationBatches (entity type MGCEarmarkMigrationBatch) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkMigrationBatchStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | MigrationBatchId (Migration batch ID), Step (Migration step) |
| Data sources | MGCEarmarkMigrationBatch; MGCEarmarkMigrationBatchStep (outer join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
MigrationBatchId (key) | Migration batch ID | String (MGCEarmarkMigrationBatchId) | MGCEarmarkMigrationBatch.MigrationBatchId |
SourceSystem | Source system | String (MGCEarmarkNaturalKey) | MGCEarmarkMigrationBatch.SourceSystem |
ExportDate | Export date | Date (TransDate) | MGCEarmarkMigrationBatch.ExportDate |
BatchStatus | Status | Enum MGCEarmarkMigrationStepStatus | MGCEarmarkMigrationBatch.Status |
CertifiedBy | Certified by | String (UserId) | MGCEarmarkMigrationBatch.CertifiedBy |
CertifiedDateTime | Certified | UtcDateTime (TransDateTime) | MGCEarmarkMigrationBatch.CertifiedDateTime |
BypassPrivilegeRevoked | Bypass privilege revoked | Enum NoYes | MGCEarmarkMigrationBatch.BypassPrivilegeRevoked |
Step (key) | Migration step | Enum MGCEarmarkMigrationStep | MGCEarmarkMigrationBatchStep.Step |
StepStatus | Status | Enum MGCEarmarkMigrationStepStatus | MGCEarmarkMigrationBatchStep.Status |
RowsStaged | Staged | Integer (Counter) | MGCEarmarkMigrationBatchStep.RowsStaged |
RowsValidated | Validated | Integer (Counter) | MGCEarmarkMigrationBatchStep.RowsValidated |
RowsLoaded | Loaded | Integer (Counter) | MGCEarmarkMigrationBatchStep.RowsLoaded |
RowsRejected | Rejected | Integer (Counter) | MGCEarmarkMigrationBatchStep.RowsRejected |
RowsDispositioned | Dispositioned | Integer (Counter) | MGCEarmarkMigrationBatchStep.RowsDispositioned |
LastRunDateTime | Last run | UtcDateTime (TransDateTime) | MGCEarmarkMigrationBatchStep.LastRunDateTime |
ExceptionCount | Exceptions | Integer (Counter) | MGCEarmarkMigrationBatchStep.ExceptionCount |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark migration batch entity (MGCEarmarkMigrationBatchEntityViewPriv) | Read | Certify Earmark migration (MGCEarmarkCertifyMigrationDuty) | No role by default |
View Earmark migration batch entity (MGCEarmarkMigrationBatchEntityViewPriv) | Read | Run 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkOpeningBalanceMigrations (entity type MGCEarmarkOpeningBalanceMigration) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkOpeningBalanceMigrationStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | MigrationBatchId (Migration batch ID), DealId (Deal ID), CounterpartyType (Counterparty type), CounterpartyAccount (Counterparty) |
| Data sources | MGCEarmarkMigrationOpeningBalance |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
MigrationBatchId (key) | Migration batch ID | String (MGCEarmarkMigrationBatchId) | Yes | Create only | MGCEarmarkMigrationOpeningBalance.MigrationBatchId |
DealId (key) | Deal ID | String (MGCEarmarkDealId) | Yes | Create only | MGCEarmarkMigrationOpeningBalance.DealId |
CounterpartyType (key) | Counterparty type | Enum MGCEarmarkClaimCounterpartyType | Create only | MGCEarmarkMigrationOpeningBalance.CounterpartyType | |
CounterpartyAccount (key) | Counterparty | String (MGCEarmarkAccountRelation) | Create only | MGCEarmarkMigrationOpeningBalance.CounterpartyAccount | |
OpenAmount | Open amount | Real (MGCEarmarkAccrualAmount) | Yes | MGCEarmarkMigrationOpeningBalance.OpenAmount | |
CurrencyCode | Currency | String (CurrencyCode) | Yes | Yes | MGCEarmarkMigrationOpeningBalance.CurrencyCode |
SourceKey | Source key | String (MGCEarmarkSourceKey) | Yes | MGCEarmarkMigrationOpeningBalance.SourceKey | |
AccrualInstanceId | Accrual instance | String (MGCEarmarkAccrualInstanceId) | No | MGCEarmarkMigrationOpeningBalance.AccrualInstanceId | |
AccrualTransId | Accrual transaction | String (MGCEarmarkAccrualTransId) | No | MGCEarmarkMigrationOpeningBalance.AccrualTransId | |
LoadedDateTime | Loaded | UtcDateTime (TransDateTime) | No | MGCEarmarkMigrationOpeningBalance.LoadedDateTime | |
RolledBack | Rolled back | Enum NoYes | No | MGCEarmarkMigrationOpeningBalance.RolledBack |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark migration opening balance entity (MGCEarmarkOpeningBalanceMigrationEntityViewPriv) | Read | Certify Earmark migration (MGCEarmarkCertifyMigrationDuty) | No role by default |
View Earmark migration opening balance entity (MGCEarmarkOpeningBalanceMigrationEntityViewPriv) | Read | Run Earmark migration (MGCEarmarkRunMigrationDuty) | No role by default |
Maintain Earmark migration opening balance entity (MGCEarmarkOpeningBalanceMigrationEntityMaintainPriv) | Read, Create, Update, Delete, Correct | Migrate 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkBalanceBaselines (entity type MGCEarmarkBalanceBaseline) |
| Access | Read/write |
| Data management | Enabled; staging table MGCEarmarkBalanceBaselineStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | MigrationBatchId (Migration batch ID), RowKind (Row kind), SourceKey (Source key) |
| Data sources | MGCEarmarkMigrationTieOut |
Fields
| Field | Label | Type | Mandatory | Edit | Source |
|---|---|---|---|---|---|
MigrationBatchId (key) | Migration batch ID | String (MGCEarmarkMigrationBatchId) | Yes | Create only | MGCEarmarkMigrationTieOut.MigrationBatchId |
RowKind (key) | Row kind | Enum MGCEarmarkTieOutRowKind | Create only | MGCEarmarkMigrationTieOut.RowKind | |
SourceKey (key) | Source key | String (MGCEarmarkSourceKey) | Yes | Create only | MGCEarmarkMigrationTieOut.SourceKey |
MainAccount | Main account | String (MainAccountNum) | Create only | MGCEarmarkMigrationTieOut.MainAccount | |
CurrencyCode | Currency | String (CurrencyCode) | Create only | MGCEarmarkMigrationTieOut.CurrencyCode | |
DealId | Deal ID | String (MGCEarmarkDealId) | Create only | MGCEarmarkMigrationTieOut.DealId | |
GLOpeningBalance | General ledger opening balance | Real (AmountMST) | No | MGCEarmarkMigrationTieOut.GLOpeningBalance | |
MigratedMovementTotal | Migrated movements | Real (AmountMST) | No | MGCEarmarkMigrationTieOut.MigratedMovementTotal | |
RebuiltBalance | Rebuilt balance | Real (AmountMST) | No | MGCEarmarkMigrationTieOut.RebuiltBalance | |
BaselineBalance | Baseline balance | Real (AmountMST) | Yes | MGCEarmarkMigrationTieOut.BaselineBalance | |
Variance | Variance | Real (MGCEarmarkTieOutVariance) | No | MGCEarmarkMigrationTieOut.Variance | |
ProposedJournalNum | Proposed journal | String (LedgerJournalId) | No | MGCEarmarkMigrationTieOut.ProposedJournalNum | |
ParentSourceKey | Parent accrual | String (MGCEarmarkSourceKey) | Create only | MGCEarmarkMigrationTieOut.ParentSourceKey | |
CreditVoucher | First credit | String (Voucher) | Create only | MGCEarmarkMigrationTieOut.CreditVoucher | |
DuplicateCreditVoucher | Duplicate credit | String (Voucher) | Create only | MGCEarmarkMigrationTieOut.DuplicateCreditVoucher | |
CorrectionVoucher | Correction voucher | String (Voucher) | Yes | MGCEarmarkMigrationTieOut.CorrectionVoucher | |
DoubleClaimDisposition | Double-claim disposition | Enum MGCEarmarkDoubleClaimDisposition | Yes | MGCEarmarkMigrationTieOut.DoubleClaimDisposition | |
ControlDisposition | Control reconciliation disposition | Enum MGCEarmarkControlReconciliationDisposition | Yes | MGCEarmarkMigrationTieOut.ControlDisposition | |
DispositionReasonCode | Reason | String (ReasonCode) | Yes | MGCEarmarkMigrationTieOut.DispositionReasonCode | |
DispositionNote | Reason comment | String (MGCEarmarkReasonNote) | Yes | MGCEarmarkMigrationTieOut.DispositionNote | |
DispositionedBy | Dispositioned by | String (UserId) | Create only | MGCEarmarkMigrationTieOut.DispositionedBy | |
DispositionedDateTime | Dispositioned | UtcDateTime (TransDateTime) | Create only | MGCEarmarkMigrationTieOut.DispositionedDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark migration tie-out entity (MGCEarmarkBalanceBaselineEntityViewPriv) | Read | Certify Earmark migration (MGCEarmarkCertifyMigrationDuty) | No role by default |
View Earmark migration tie-out entity (MGCEarmarkBalanceBaselineEntityViewPriv) | Read | Run Earmark migration (MGCEarmarkRunMigrationDuty) | No role by default |
Maintain Earmark migration tie-out entity (MGCEarmarkBalanceBaselineEntityMaintainPriv) | Read, Create, Update, Correct | Run 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkMirrorLinks (entity type MGCEarmarkMirrorLink) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkMirrorLinkStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | CustomerInstanceId (Accrual instance), VendorInstanceId (Accrual instance) |
| Data sources | MGCEarmarkMirrorLink; CustomerInstance = MGCEarmarkAccrualInstance (outer join, read-only); VendorInstance = MGCEarmarkAccrualInstance (outer join, read-only) |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
CustomerInstanceId (key) | Accrual instance | String (MGCEarmarkAccrualInstanceId) | CustomerInstance.AccrualInstanceId |
VendorInstanceId (key) | Accrual instance | String (MGCEarmarkAccrualInstanceId) | VendorInstance.AccrualInstanceId |
FundingRuleRecId | Funding rule | Int64 (RefRecId) | MGCEarmarkMirrorLink.FundingRule |
SnapVendorAccount | Vendor account (at creation) | String (VendAccount) | MGCEarmarkMirrorLink.SnapVendorAccount |
SnapShareType | Share type (at creation) | Enum MGCEarmarkFundedShareType | MGCEarmarkMirrorLink.SnapShareType |
SnapShareValue | Share value (at creation) | Real (MGCEarmarkFundedShareValue) | MGCEarmarkMirrorLink.SnapShareValue |
SnapFundingCap | Funding cap (at creation) | Real (MGCEarmarkFundingCap) | MGCEarmarkMirrorLink.SnapFundingCap |
Condition | Condition | Enum MGCEarmarkMirrorCondition | MGCEarmarkMirrorLink.Condition |
DivergenceAmount | Divergence | Real (MGCEarmarkDivergenceAmount) | MGCEarmarkMirrorLink.DivergenceAmount |
CappedHeadroom | Capped headroom | Real (MGCEarmarkAccrualAmount) | MGCEarmarkMirrorLink.CappedHeadroom |
LastEvaluatedDateTime | Last evaluated | UtcDateTime (TransDateTime) | MGCEarmarkMirrorLink.LastEvaluatedDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark mirror link (data entity) (MGCEarmarkMirrorLinkEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkMirrorTransPairs (entity type MGCEarmarkMirrorTransPair) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkMirrorTransPairStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | PairKey (Pair key) |
| Data sources | MGCEarmarkMirrorTransPair |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
PairKey (key) | Pair key | String (MGCEarmarkPairKey) | MGCEarmarkMirrorTransPair.PairKey |
MirrorLinkRecId | Mirror link | Int64 (RefRecId) | MGCEarmarkMirrorTransPair.MirrorLink |
MovementType | Movement type | Enum MGCEarmarkMovementType | MGCEarmarkMirrorTransPair.MovementType |
CustomerTransRecId | Customer transaction | Int64 (RefRecId) | MGCEarmarkMirrorTransPair.CustomerTrans |
VendorTransRecId | Vendor transaction | Int64 (RefRecId) | MGCEarmarkMirrorTransPair.VendorTrans |
CustomerVoucher | Customer voucher | String (Voucher) | MGCEarmarkMirrorTransPair.CustomerVoucher |
VendorVoucher | Vendor voucher | String (Voucher) | MGCEarmarkMirrorTransPair.VendorVoucher |
PairedDateTime | Paired | UtcDateTime (TransDateTime) | MGCEarmarkMirrorTransPair.PairedDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark mirror trans pair (data entity) (MGCEarmarkMirrorTransPairEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkPriceProposals (entity type MGCEarmarkPriceProposal) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkPriceProposalStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | PriceProposalRecId (Record ID), SessionId (Session), DealId (Deal) |
| Data sources | MGCEarmarkPriceProposal |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
PriceProposalRecId (key) | Record ID | Int64 (RecId) | MGCEarmarkPriceProposal.RecId |
SessionId (key) | Session | String (MGCEarmarkProposalSessionId) | MGCEarmarkPriceProposal.SessionId |
DealId (key) | Deal | String (MGCEarmarkDealId) | MGCEarmarkPriceProposal.DealId |
LineTableId | Line table | Integer (RefTableId) | MGCEarmarkPriceProposal.LineTableId |
LineRecId | Line reference | Int64 (RefRecId) | MGCEarmarkPriceProposal.LineRecId |
InventTransId | Inventory transaction | String (InventTransId) | MGCEarmarkPriceProposal.InventTransId |
QualifyingTarget | Qualifying targeting row | Int64 (RefRecId) | MGCEarmarkPriceProposal.QualifyingTarget |
QualifyingRank | Specificity | Integer (MGCEarmarkSpecificityRank) | MGCEarmarkPriceProposal.QualifyingRank |
Decision | Decision | Enum MGCEarmarkProposalDecision | MGCEarmarkPriceProposal.Decision |
IneligibleReason | Ineligibility reason | Enum MGCEarmarkIneligibleReason | MGCEarmarkPriceProposal.IneligibleReason |
AmountPerSalesUnitCur | Amount per sales unit | Real (MGCEarmarkAccrualAmount) | MGCEarmarkPriceProposal.AmountPerSalesUnitCur |
AmountPerPriceUnitCur | Amount per price unit | Real (MGCEarmarkAccrualAmount) | MGCEarmarkPriceProposal.AmountPerPriceUnitCur |
EditedAmount | Edited amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkPriceProposal.EditedAmount |
OriginalAmount | Original amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkPriceProposal.OriginalAmount |
NonTargeted | Non-targeted | Enum NoYes | MGCEarmarkPriceProposal.NonTargeted |
NonTargetedReason | Non-targeted reason | String (MGCEarmarkReasonNote) | MGCEarmarkPriceProposal.NonTargetedReason |
Actor | Actor | String (UserId) | MGCEarmarkPriceProposal.Actor |
ProposedDateTime | Created date and time | UtcDateTime | MGCEarmarkPriceProposal.CreatedDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Price Proposal (data entity) (MGCEarmarkPriceProposalEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkReconciliationRuns (entity type MGCEarmarkReconciliationRun) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkReconciliationRunStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | ReconciliationRunId (Reconciliation run) |
| Data sources | MGCEarmarkReconciliationRun |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
ReconciliationRunId (key) | Reconciliation run | String (MGCEarmarkReconciliationRunId) | MGCEarmarkReconciliationRun.ReconciliationRunId |
PeriodFrom | Period from | Date (TransDate) | MGCEarmarkReconciliationRun.PeriodFrom |
PeriodTo | Period to | Date (TransDate) | MGCEarmarkReconciliationRun.PeriodTo |
ScopeDealId | Deal ID | String (MGCEarmarkDealId) | MGCEarmarkReconciliationRun.ScopeDealId |
ScopeCounterparty | Counterparty | String (MGCEarmarkAccountRelation) | MGCEarmarkReconciliationRun.ScopeCounterparty |
ScopeMainAccount | Main account | String (MainAccountNum) | MGCEarmarkReconciliationRun.ScopeMainAccount |
GLBalanceMST | Ledger balance | Real (AmountMST) | MGCEarmarkReconciliationRun.GLBalanceMST |
SubLedgerBalanceMST | Subledger balance | Real (AmountMST) | MGCEarmarkReconciliationRun.SubLedgerBalanceMST |
VarianceMST | Variance | Real (MGCEarmarkReconVariance) | MGCEarmarkReconciliationRun.VarianceMST |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkReconciliationRun.CurrencyCode |
GLBalanceCur | Ledger balance in transaction currency | Real (MGCEarmarkBalanceAmount) | MGCEarmarkReconciliationRun.GLBalanceCur |
SubLedgerBalanceCur | Subledger balance in transaction currency | Real (MGCEarmarkBalanceAmount) | MGCEarmarkReconciliationRun.SubLedgerBalanceCur |
ExplainedByPendingJournals | Explained by pending journals | Real (AmountMST) | MGCEarmarkReconciliationRun.ExplainedByPendingJournals |
ExplainedByUnaccrued | Explained by unaccrued movements | Real (AmountMST) | MGCEarmarkReconciliationRun.ExplainedByUnaccrued |
ExplainedByExceptions | Explained by execution exceptions | Real (AmountMST) | MGCEarmarkReconciliationRun.ExplainedByExceptions |
ExplainedByProposalsOutstanding | Explained by outstanding proposals | Real (AmountMST) | MGCEarmarkReconciliationRun.ExplainedByProposalsOutstanding |
RunBy | Run by | String (UserId) | MGCEarmarkReconciliationRun.RunBy |
RunDateTime | Run date and time | UtcDateTime (TransDateTime) | MGCEarmarkReconciliationRun.RunDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Reconciliation Run (data entity) (MGCEarmarkReconciliationRunEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkThirdPartySettlements (entity type MGCEarmarkThirdPartySettlement) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkThirdPartySettlementStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | VendorInvoiceVoucher (Vendor invoice voucher), SettledDateTime (Settled) |
| Data sources | MGCEarmarkThirdPartySettlement |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
VendorInvoiceVoucher (key) | Vendor invoice voucher | String (Voucher) | MGCEarmarkThirdPartySettlement.VendorInvoiceVoucher |
SettledDateTime (key) | Settled | UtcDateTime (TransDateTime) | MGCEarmarkThirdPartySettlement.SettledDateTime |
AccrualInstanceRecId | Accrual instance | Int64 (RefRecId) | MGCEarmarkThirdPartySettlement.AccrualInstance |
AccrualTransRecId | Accrual transaction | Int64 (RefRecId) | MGCEarmarkThirdPartySettlement.AccrualTrans |
VendorInvoiceId | Vendor invoice ID | String (MGCEarmarkNaturalKey) | MGCEarmarkThirdPartySettlement.VendorInvoiceId |
SettledAmount | Settled amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkThirdPartySettlement.SettledAmount |
CurrencyCode | Currency | String (CurrencyCode) | MGCEarmarkThirdPartySettlement.CurrencyCode |
SettledBy | Settled by | String (UserId) | MGCEarmarkThirdPartySettlement.SettledBy |
ReasonCode | Reason | String (ReasonCode) | MGCEarmarkThirdPartySettlement.ReasonCode |
ClosingTransRecId | Closing transaction | Int64 (RefRecId) | MGCEarmarkThirdPartySettlement.ClosingTrans |
Voided | Voided | Enum NoYes | MGCEarmarkThirdPartySettlement.Voided |
VoidedBy | Voided by | String (UserId) | MGCEarmarkThirdPartySettlement.VoidedBy |
VoidedDateTime | Date voided | UtcDateTime (TransDateTime) | MGCEarmarkThirdPartySettlement.VoidedDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark third-party settlement (data entity) (MGCEarmarkThirdPartySettlementEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkEventLogs (entity type MGCEarmarkEventLog) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkEventLogStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | EventLogRecId (Record ID), DocumentNaturalKey (Document) |
| Data sources | MGCEarmarkEventLog |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
EventLogRecId (key) | Record ID | Int64 (RecId) | MGCEarmarkEventLog.RecId |
DocumentType | Document type | Enum MGCEarmarkDocumentType | MGCEarmarkEventLog.DocumentType |
DocumentRecId | Document reference | Int64 (RefRecId) | MGCEarmarkEventLog.DocumentRecId |
DocumentNaturalKey (key) | Document | String (MGCEarmarkNaturalKey) | MGCEarmarkEventLog.DocumentNaturalKey |
EventType | Event type | Enum MGCEarmarkEventType | MGCEarmarkEventLog.EventType |
Actor | Actor | String (UserId) | MGCEarmarkEventLog.Actor |
AutomationWrite | Automation | Enum NoYes | MGCEarmarkEventLog.AutomationWrite |
EventDateTime | Date and time | UtcDateTime (TransDateTime) | MGCEarmarkEventLog.EventDateTime |
Detail | Detail | String (Notes) | MGCEarmarkEventLog.Detail |
BeforeValue | Before | String (MGCEarmarkReasonNote) | MGCEarmarkEventLog.BeforeValue |
AfterValue | After | String (MGCEarmarkReasonNote) | MGCEarmarkEventLog.AfterValue |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark Event Log (data entity) (MGCEarmarkEventLogEntityViewPriv) | Read | Inquire 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.
| Property | Value |
|---|---|
| OData entity set | MGCEarmarkVendorSettlementRuns (entity type MGCEarmarkVendorSettlementRun) |
| Access | Read-only |
| Data management | Enabled; staging table MGCEarmarkVendorSettlementRunStaging |
| Company | Company-specific (DataAreaId) |
| Primary key | VendorSettlementRunId (Run ID) |
| Data sources | MGCEarmarkVendorSettlementRun |
Fields
| Field | Label | Type | Source |
|---|---|---|---|
VendorSettlementRunId (key) | Run ID | String (MGCEarmarkVendorSettlementRunId) | MGCEarmarkVendorSettlementRun.VendorSettlementRunId |
Status | Status | Enum MGCEarmarkVendorSettlementRunStatus | MGCEarmarkVendorSettlementRun.Status |
ShapeSupplierRebate | Supplier rebate on purchases | Enum NoYes | MGCEarmarkVendorSettlementRun.ShapeSupplierRebate |
ShapeMirror | Supplier-funded customer program | Enum NoYes | MGCEarmarkVendorSettlementRun.ShapeMirror |
ShapeSalesTriggered | Sales-triggered vendor accrual | Enum NoYes | MGCEarmarkVendorSettlementRun.ShapeSalesTriggered |
VendorSelector | Vendor selector | Enum MGCEarmarkAccountSelector | MGCEarmarkVendorSettlementRun.VendorSelector |
VendorRelation | Vendor relation | String (MGCEarmarkAccountRelation) | MGCEarmarkVendorSettlementRun.VendorRelation |
CurrencyFilter | Currency filter | String (CurrencyCode) | MGCEarmarkVendorSettlementRun.CurrencyFilter |
MinimumAmount | Minimum amount | Real (MGCEarmarkMinSettlementAmount) | MGCEarmarkVendorSettlementRun.MinimumAmount |
PeriodEnd | Period end | Date (TransDate) | MGCEarmarkVendorSettlementRun.PeriodEnd |
ClaimCount | Claims | Integer (Counter) | MGCEarmarkVendorSettlementRun.ClaimCount |
ExceptionCount | Exceptions | Integer (Counter) | MGCEarmarkVendorSettlementRun.ExceptionCount |
TotalAmount | Total amount | Real (MGCEarmarkAccrualAmount) | MGCEarmarkVendorSettlementRun.TotalAmount |
RunBy | Run by | String (UserId) | MGCEarmarkVendorSettlementRun.RunBy |
RunDateTime | Run date and time | UtcDateTime (TransDateTime) | MGCEarmarkVendorSettlementRun.RunDateTime |
Security
| Privilege | Grants | Duty | Roles |
|---|---|---|---|
View Earmark vendor settlement run (data entity) (MGCEarmarkVendorSettlementRunEntityViewPriv) | Read | Inquire 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
| Property | Value |
|---|---|
| OData entity set | SalesOrderLines (entity type SalesOrderLine) |
| Category | Document |
| Join | MGCEarmarkLinePrice joined to SalesLine (outer join, read-only) on SalesLine.RecId = MGCEarmarkLinePrice.CurrentLineRecId and SalesLine.InventTransId = MGCEarmarkLinePrice.InventTransId. |
| Security | The standard entity's own privileges. Earmark adds no privilege for it. |
| Field | Label | Type | Edit | Source |
|---|---|---|---|---|
MGCEarmarkBasePrice | Base price | Real (MGCEarmarkUnitPriceAmount) | No | MGCEarmarkLinePrice.BasePriceCur |
MGCEarmarkOverBasis | Over-basis | Real (MGCEarmarkOverBasisAmount) | No | MGCEarmarkLinePrice.OverBasisCur |
MGCEarmarkDealMoney | Deal money | Real (MGCEarmarkDealMoneyAmount) | No | MGCEarmarkLinePrice.DealMoneyCur |
MGCEarmarkAllowance | Allowance | Real (MGCEarmarkAllowanceAmount) | No | MGCEarmarkLinePrice.AllowanceCur |
MGCEarmarkPriceMode | Price mode | Enum MGCEarmarkPriceMode | No | MGCEarmarkLinePrice.PriceModeSummary |
MGCEarmarkBuildState | Build state | Enum MGCEarmarkBuildState | No | MGCEarmarkLinePrice.BuildState |
MGCEarmarkBuildNumber | Build number | Integer (MGCEarmarkBuildNumber) | No | MGCEarmarkLinePrice.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.