MGCCapstoneReconMatchRule
One ordered rule row of a matching rule set (B1, D-CAP-B4): the engine evaluates a set's rules in Sequence order over the open-item population, and a rule is the AND of its populated criteria; amount tolerance (absolute and/or percent, zero meaning exact), date window (zero meaning same date), document/reference equality, description like-pattern, full dimension-value equality, and financial-tag equality (B2). Composability comes from multiple ordered rules, not from a criterion tree: a preparer configures a grid, and the grid is the whole grammar. StopOnMatch is bank-reconciliation semantics: when a rule with the flag produces hits, the engine stops evaluating the set's later rules for that account's run; legs the rule did not consume wait for the next run or the workbench rather than falling through to looser rules. Confidence (0..100) is stamped on every group the rule produces and judged against the set's auto-accept threshold (B4): at or above commits, below queues in the workbench. The stamp is rule-hit provenance; with the set id and this row's sequence, an auditor can re-derive why any group exists (deterministic covenant). ICMirror marks the rule for intercompany mirror matching (B11, Should); engine behavior for it lands with the P2 IC matcher; the flag ships so rule setup does not churn when it does.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
RuleSetId | MGCCapstoneReconRuleSetId | Yes | Identifier of a matching rule set (B1). The engine resolves the most specific enabled rule set for each designated account. |
Sequence | int | Yes | Evaluation order within the set, unique per set (B1). Rules run lowest first; a stop-on-match hit ends the set's evaluation for the run. |
Description | Description255 | No | |
AmountToleranceAmount | MGCCapstoneReconToleranceAmount | No | How far apart, in accounting currency, the legs may net and still match under this rule (B12). Zero means exact-amount match. When both the amount and the percent tolerance are set, the GREATER allowance applies. |
AmountTolerancePercent | MGCCapstoneReconTolerancePercent | No | Amount tolerance as a percent of the larger leg, 0..100 (B12). Zero means exact. When both the amount and the percent tolerance are set, the GREATER allowance applies. |
DateWindowDays | int | No | How many days apart the legs' accounting dates may be and still match (B1). Zero means same date. |
MatchReference | NoYes | No | When on, legs match by document-reference equality; all legs sharing one non-blank reference whose amounts net within tolerance form one group, whatever their count (B1, B3). Blank references never match each other. |
TextPattern | str | No | A like-pattern (* and ? wildcards) the legs' transaction text must match for this rule to consider them (B1). Blank means the description is not a criterion. |
MatchDimensions | NoYes | No | When on, legs match only when they carry the identical full account-and-dimension combination (B1). The population is already same-account; this tightens the fence to every dimension value. |
FinancialTagName | str | No | The financial tag whose values must be equal and non-blank for legs to match under this rule (B2). Blank means tags are not a criterion. Rides native financial tags; no parallel tagging construct. |
StopOnMatch | NoYes | No | When on and this rule produces hits, the set's later rules do not run for the account in this run; unmatched legs wait rather than fall through to looser rules (B1). |
Confidence | MGCCapstoneReconConfidence | No | The score, 0..100, stamped on every group this rule produces and judged against the set's auto-accept threshold (B4): at or above commits, below queues in the workbench. |
ICMirror | NoYes | No | Marks the rule for intercompany mirror matching across configured account pairs; match visibility only, never settlement, never cross-entity posting (B11, Should). Engine behavior for this flag arrives with the intercompany matcher. |