MGCCapstoneReconOpenItemAge
Permanent aging snapshot line (D1, D8): per run, per account, one row per aged open item; original transaction date and document, residual open amount net of native settlements and Capstone match groups, bucket assignment, the age-source badge (Native keep-detail / Carry-forward mapped), and netting provenance. Every row names its voucher and references the general journal account entry it ages, so every aged item drills to its voucher (D9). MatchGroupRef is a deliberately WEAK provenance reference to the CAP-002 match group that netted or dated this row (0 = none): a RefRecId with no metadata relation, because CAP-002 builds in parallel and the snapshot must stand alone as evidence whatever happens to matching. PERMANENT AND IMMUTABLE (D-CAP-D6, invariant 5): snapshot lines are accounting records, written set-based by the run batch and never touched again. validateWrite refuses the update path, update() throws for callers that skip validation, and delete()/validateDelete() refuse unconditionally. Excluded from every retention cleanup.
Fields
| Name | Type | Mandatory | Description |
|---|---|---|---|
RunRef | RefRecId | Yes | |
MainAccount | RefRecId | Yes | |
GeneralJournalAccountEntry | RefRecId | No | The general journal account entry this row ages; for a match-group residual, the group's oldest unmatched leg (FIFO, C1). The voucher drill on every aged item goes through here (D9). |
Voucher | Voucher | No | |
OriginalTransDate | TransDate | No | The item's original transaction date; the date it ages by, surviving year-end close via native keep-detail linkage or the carry-forward map (D1, D2). |
OriginalDocument | str | No | The original document reference preserved across the year-end boundary (D2, D9). |
AmountMST | AmountMST | No | The residual open amount in accounting currency, net of native settlements and Capstone match groups (D1, D-CAP-D3). |
AgeDays | int | No | Days from the original transaction date to the run's as-of date. |
BucketSeq | int | No | |
BucketName | str | No | The band the item aged into, as the profile's bands were captioned at run time. Bucket assignment is identical across the year-end boundary (D-CAP-D7). |
AgeSource | MGCCapstoneReconAgeSource | No | |
MatchGroupRef | RefRecId | No | The Capstone match group (CAP-002) that netted or dated this row; 0 when none. A provenance reference only; the snapshot stands alone as evidence. |
CrossedYEC | NoYes | No | Yes when the item survived a year-end close boundary; it ages from a detail opening entry, by its preserved original date (D2). |
NettedNatively | NoYes | No | Yes when native ledger settlement reduced this item's open amount; the Not-settled state is the population's source of truth (D-CAP-D3). |