Skip to main content

MGCCapstoneReconWriteOffProposal

Governed write-off proposal (B8, B9): the record that somebody proposes writing a match group's residual off, carrying the reason, the amount, the group, and; the SoD evidence surface; WHO proposed and WHO approved. PERMANENT: proposals are never deleted; a proposal nobody wants is Rejected, and the rejection returns the group's legs to open aging. Lifecycle: the disposition processor creates Draft proposals; submit() moves Draft to Submitted and stamps SubmittedBy; approve() moves Submitted to Approved and HARD-BLOCKS an approver whose acting-user history touched the proposal; judged through MGCCapstoneReconSoDEvaluator::isApproveBlocked against ProposedBy, SubmittedBy AND the proposal-side timeline (ProposalCreated, ProposalSubmitted), so the human who drove a batch-created proposal is blocked even though ProposedBy carries the batch context user. The block is thrown AND logged durably on the timeline, so the attempt itself is evidence (B9, mirroring the CAP-001 SoD posture), the acting-user parameter is authenticated through resolveActingUser, and the session user is judged alongside a differing claimed identity. THE LIFECYCLE IS GUARDED AT EVERY STATION: submit, approve and reject each refuse unless the proposal is in the status that station accepts, and each demands its reason. Reads are never guarded; find, findLiveForGroup, the register and the timeline stay fully visible whatever the lifecycle state, because nothing may hide stored evidence. APPROVAL POSTS: once approve() commits, MGCCapstoneReconWriteOffPostingService posts the proposal as a standard general journal (D-CAP-B2) and writes back the Posted status, the journal number and the voucher. There is no native workflow and no auto-post: a write-off posts only through an approved, SoD-checked proposal with a reason code. A posting failure leaves the proposal Approved and raises a retryable execution exception (WriteOffPost). Terminal rows are frozen and LIVE rows move only along the lifecycle: update() refuses any write to a row already stored as Posted or Rejected, refuses any status change outside Draft-Submitted-Approved/Rejected-Posted, and refuses field rewrites outside the lifecycle station that owns them (SubmittedBy at submit, ApprovedBy at approve, journal and voucher at posting); the amounts, reason and references are frozen from insert.

Fields​

NameTypeMandatoryDescription
ProposalIdMGCCapstoneReconWriteOffProposalIdYesWrite-off proposal identifier (number sequence). The proposal is the governed record of a residual write-off from draft through approval and posting.
MatchGroupRefRefRecIdYesThe match group whose residual this proposal writes off (B8). The group id travels into the journal description pattern at posting so the voucher traces back here.
StatusMGCCapstoneReconProposalStatusNoDraft, Submitted, Approved, Posted or Rejected (B9). Changed only through submit, approve, reject and the posting service, which posts on approval; Posted and Rejected rows are frozen.
ReasonCodeReasonCodeNoThe financial reason code the disposition stamped (B7, B8): why this residual is being written off. Native reason codes; the write-off posting rules map it, with the account's main account category, to the offset account.
AmountCurAmountCurNoThe residual being written off, as computed at the group's commit (B7). The currency field says which currency this figure is in.
CurrencyCodeCurrencyCodeNo
ResidualAmountMSTAmountMSTNoThe accounting-currency residual the tolerance band actually judged when this proposal was created (B12). Carried beside the transaction-currency amount so an FX-divergent group cannot present a different figure to governance than the one the band accommodated.
ProposedByUserIdNoWho proposed the write-off; half of the segregation-of-duties evidence (B9). The approver must be a different user; the service refuses and logs any attempt to be both.
SubmittedByUserIdNoWho submitted the proposal for approval (B9). On a batch-created proposal the proposer field carries the batch context user; this stamp names the human who raised the hand, and the approver must differ from both.
ApprovedByUserIdNoWho approved the write-off; the second signature (B9). Blank until approval.
JournalNumLedgerJournalIdNoThe standard ledger journal the write-off posted through, written back by the posting service (B8, D-CAP-B2). Blank until posting.
VoucherVoucherNoThe posted voucher, written back by the posting service (B8). Blank until posting; the register drills from here.
AutoPostBandNoYesNoProvenance flag (B-7): would be Yes for a proposal auto-posted within a configured auto-post band with one signature, flagging it for post-audit review.