Skip to main content

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​

NameTypeMandatoryDescription
RunRefRefRecIdYes
MainAccountRefRecIdYes
GeneralJournalAccountEntryRefRecIdNoThe 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).
VoucherVoucherNo
OriginalTransDateTransDateNoThe 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).
OriginalDocumentstrNoThe original document reference preserved across the year-end boundary (D2, D9).
AmountMSTAmountMSTNoThe residual open amount in accounting currency, net of native settlements and Capstone match groups (D1, D-CAP-D3).
AgeDaysintNoDays from the original transaction date to the run's as-of date.
BucketSeqintNo
BucketNamestrNoThe 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).
AgeSourceMGCCapstoneReconAgeSourceNo
MatchGroupRefRefRecIdNoThe Capstone match group (CAP-002) that netted or dated this row; 0 when none. A provenance reference only; the snapshot stands alone as evidence.
CrossedYECNoYesNoYes when the item survived a year-end close boundary; it ages from a detail opening entry, by its preserved original date (D2).
NettedNativelyNoYesNoYes when native ledger settlement reduced this item's open amount; the Not-settled state is the population's source of truth (D-CAP-D3).