MGCEarmarkPostingProfile
The company-level account path for every Earmark movement. Each row answers one question: for this Earmark posting type, this item and this counterparty, which ledger account does the movement post to? The grammar is cloned from the inventory posting profile - posting type by item code and relation by account code and relation - but the table is Earmark's own: the native inventory posting profile is neither extended nor read, and both the customer and the vendor side resolve here. Neither axis carries a category. Targeting answers which deals apply and needs the merchandising hierarchy; the profile answers which account, and accountants maintain it in the item-code grammar they already use for inventory posting. A deal targeted at a category therefore resolves its account by the item's item group. Resolution walks the rows most specific first and is implemented once, in the Earmark account resolver, which is also what the Test account resolution action calls.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
PostingType | MGCEarmarkPostingType | No | The Earmark posting type this row supplies an account for - accrual, accrual offset, claim or claim offset on the customer side, plus the vendor-side types the vendor package registers into the same extensible enum. The posting type is what tells the two sides of a movement apart, and it is the first field of the row's unique key, so one item and account pair can carry a different account for each type. Accrual is the first value and the one an implementer configures first; there is no blank or none posting type, because a profile row that named no posting type would answer for nothing. |
ItemCode | MGCEarmarkItemSelector | No | How this row selects items - Table for one item, Group for an item group, or All for every item. Resolution tries Table first, then Group, then All, so a more specific row always wins over a more general one. Category is deliberately not available here even though Earmark deal targeting offers it: the posting profile clones the inventory posting grammar, which has no category axis, and a category-targeted deal resolves its account by the item's item group instead. A row whose item code is Category is refused when it is written. |
ItemRelation | MGCEarmarkItemRelation | No | The item or item group this row applies to. It is required when the item code is Table or Group, and must be left blank for All, because a row that claims to cover every item cannot also name one. What the value means follows from the item code and nothing else, which is why changing the code clears it. |
AccountCode | MGCEarmarkAccountSelector | No | How this row selects counterparties - Table for one customer or vendor, Group for a customer or vendor group, or All for every account. Resolution tries Table first, then Group, then All. The account axis has no category value at all, so a category account selection is not merely refused, it cannot be expressed. Deals in the inventory module have no counterparty and resolve All only. |
AccountRelation | MGCEarmarkAccountRelation | No | The customer, vendor, customer group or vendor group this row applies to. It is required when the account code is Table or Group and must be left blank for All. Whether the value is read as a customer or as a vendor follows from the deal's module, not from the posting type. |
LedgerDimension | LedgerDimensionDefaultAccount | Yes | The ledger account and default dimensions this row resolves to. It is mandatory: a profile row with no account resolves to nothing while looking configured, which is exactly the gap the Posting profile incomplete tile exists to make visible, so it is refused when the row is written instead. |