Skip to main content

MGCEarmarkDimensionRule

The ordered list of rules that decides where each posting takes its financial dimensions from, one list per movement type. The rules are walked in sequence and the first one that yields a value for a dimension wins, so the order is a fact about the result rather than a display convenience. One table serves every movement type, which is what lets the walk be changed by editing data instead of by changing code, and stops the five per-movement lists this replaced from drifting apart in shape while nobody is watching.

Fields​

NameTypeMandatoryDescription
ActiveNoYesIdNoWhether the resolver walks this rule. An inactive rule keeps its position in the sequence and is skipped, which is how a rule is taken out of the walk temporarily without renumbering everything after it. New rules are active, because an implementer who adds a rule to a walk means it to be walked.
EffectiveFromTransDateNoThe first date this rule is in force. Blank means there is no lower bound, so a rule with neither date is always in force. Use the dates where a dimension policy changes on a known date and the postings on either side of it must keep the dimensions they were posted with.
EffectiveToTransDateNoThe last date this rule is in force. Blank means there is no upper bound. It must not fall before the effective-from date.
FixedDimensionDimensionDefaultNoThe dimension values this rule contributes when its source is Fixed value. It is required on a Fixed value rule and refused on every other source, in both directions and deliberately so: a Fixed value rule without a dimension contributes nothing and looks configured, and a dimension left behind after the source was changed to something else is a stale value that is carried, exported, copied into the next environment and never read.
MovementTypeMGCEarmarkMovementTypeNoWhich kind of movement this rule applies to. It is the discriminator that lets one table hold what used to be five, and it is part of the rule's key: each movement type has its own independently numbered list. A rule cannot be moved from one movement type to another in place, because that would address a different list rather than edit this one - remove it and add it where it belongs.
SequenceMGCEarmarkPriorityNoWhere this rule sits in its movement type's walk. The walk runs from the lowest sequence upwards and the first rule that yields a value for a dimension wins. Sequences are contiguous and are maintained automatically: adding a rule at a position that is already taken pushes the rest down, and removing one closes the gap behind it. That is not cosmetic - a walk numbered 1, 2, 4 gives a reader no way to tell a deleted rule from one somebody meant to write and has not yet. A rule is re-ordered by removing it and adding it back at the position wanted.
SideMGCEarmarkDimensionSideNoWhich leg of the journal line pair this rule applies to - the account side, the offset side, or both. A rule that applies to one side leaves the other alone, so a walk can take the account dimensions from the deal and the offset dimensions from somewhere else without either rule interfering with the other.
SourceMGCEarmarkDimensionSourceNoWhere this step of the walk reads its dimension values from - the deal, the transaction line, the transaction header, the counterparty master record, the journal, the parent movement, or a fixed value stated on the rule itself. Fixed value is the only source that requires a dimension on the rule, and a dimension is refused on every other source.