Skip to content

JNY-ACC-TRX-002Settle with credit and correct receipt placement

Markdown

JNY-ACC-TRX-002

Settle with credit and correct receipt placement

Markdown
  • DocumentDraft
  • Product intentProposed
  • ImplementationObserved

KindJourneyProduct areaAccountingModuleTransactionsRevision1End-to-endRequired

Read atreact-console baf6dae3services-accounting f47cb263

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Goal
Combine goodwill credit and check money across member invoices, then relocate a later misapplied receipt.
Screens
/console/{tenantId}/accounting/credits/new/console/{tenantId}/accounting/payments/receive/console/{tenantId}/accounting/settlements/{settlementId}/console/{tenantId}/accounting/payments/{paymentId}

Steps

#SurfaceActionCapabilityExpectedProvenance
1/console/{tenantId}/accounting/credits/newIssue 25.00 of goodwill credit with an explanation and accounting destinations.CAP-ACC-TRX-011A numbered open credit retains the full available amount.test
2/console/{tenantId}/accounting/payments/receiveChoose both invoices and review a 175.00 check with its reference and batch.CAP-ACC-TRX-009The review combines 25.00 credit with 175.00 money and completion settles both bills.test
3/console/{tenantId}/accounting/settlements/{settlementId}Follow the settlement to its credit and application records.CAP-ACC-TRX-009Component references remain inspectable and the consumed credit is used.test
4/console/{tenantId}/accounting/payments/receiveRecord a later check without allocation instructions.CAP-ACC-TRX-006The receipt succeeds with its entire value available.test
5/console/{tenantId}/accounting/payments/{paymentId}Apply that check, identify the wrong target and relocate its allocation.CAP-ACC-TRX-008Opposing history restores the wrong bill while the replacement settles the intended one.test

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
alternate2Staff leave individual credit selection unspecified.Eligible credit is selected oldest first.Tender covers the debt remaining after credit use.test
services-accounting:modules/transactions/tests/integration/services/settlements/settlements.integration.spec.js#it applies the open credit’s 500 first and takes a check of 8000 for the rest: completed with its payment
failure5The bank returns the allocated check.Staff enter its bounced-check outcome with an explanation.The receipt becomes returned and its formerly settled debt reopens.test
failure2The selected population includes an unrelated member’s bill.Customer eligibility rejects settlement before holding value.Staff remove the invalid target without earlier financial changes.documented

Assertions

IdStatementProvenance
01Credit use precedes check allocation and leaves both selected bills settled.test
02Settlement components retain references for following their related records.test
03The earlier application survives reallocation as fully reversed history.test
services-accounting:modules/transactions/tests/integration/services/payments/allocate.integration.spec.js#it writes a reversing row for the 5000 and a new row for the 4000, the original marked reversed in full
04The resulting receivable facts reconcile to the current financial balances.test
services-accounting:modules/transactions/tests/integration/services/payments/allocate.integration.spec.js#it writes the reversal’s facts, mirrored, so the items still agree with the balances

End-to-end policy: required: The settlement review and reallocation controls require browser coverage alongside the financial service assertions.

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.