The category map separates specified examples from recorded gaps. The table lists a scenario or finding for each rule requiring proof; a listed scenario may still be proposed. Executable bindings cover their cited assertions, while the transition, permission and invariant registers identify combinations that need further proof.
Through the registered reversal service cancel 40.00 of paid billing with a 5.00 fee and refund treatment. Inspect the memo, receipt-derived fee credit and refund, then repeat the service command.
The 5.00 credit pays the fee and the remaining 35.00 follows source-specific return treatment; the replay retains the same component records and pending outcome. The complete chain remains proposed until one executable run proves its combined outcomes.
Coverage
Rulecovered
Transitiongap: FND-ACC-TRX-079
Validationcovered
Permissioncovered
Edgegap: FND-ACC-TRX-079
Failurecovered
Boundarycovered
Concurrencygap: FND-ACC-TRX-079
Invariantgap: FND-ACC-TRX-079
Interactioncovered
Test Scenarios
9 scenarios proving CAP-ACC-TRX-014; 8 bound to an existing test.
[
{
"do": "Reverse a draft, an unrelated line and excessive remaining value.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/integration/services/reversals/reversals.integration.spec.js#it refuses a draft invoice (invoice_not_draft), a line of another invoice (invoice_mismatch) and more than a line has left (over_application)"
}
]
[
{
"do": "Reverse 40.00 with a 5.00 fee and refund treatment.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/integration/services/reversals/reversals.integration.spec.js#it wrote the credit memo of 4000 on the line, which freed the line’s 4000 back onto the check (W-05)"
}
]
Expected
The memo frees 40.00, receipt-backed credit settles the fee and 35.00 awaits staff refund.
Two receipts paid 70.00 and 30.00, and another bill used one check.
Steps
[
{
"do": "Reverse the first with refunds and the second with credit.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/integration/services/reversals/reversal-two-payments.integration.spec.js#it requests one refund per payment, 7000 and 3000, each from its own payment"
}
]
Expected
Separate source-specific refunds return each share; credit treatment skips fee and refund work when absent.
The date lacks an open period and another reversal already completed.
Steps
[
{
"do": "Submit the invalid date and replay the completed request.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/integration/services/reversals/reversals.integration.spec.js#it refuses a reversal dated in no open period (period_not_open), writing nothing"
}
]
Expected
The invalid request writes nothing and replay adds no records.
[
{
"do": "Preview fee-bearing and full reversal cases.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/integration/services/reversals/reversals.integration.spec.js#it answers the figures of reversing 2000 more of the dues line with a fee of 300 and writes nothing"
}
]
Expected
No financial records remain; results identify 40.00 processor and 60.00 staff responsibility.
Processor scripts offer pending and declined refunds.
Steps
[
{
"do": "Reverse, confirm the pending return by signed event and run the declined case.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/integration/services/reversals/reversal-refund-status.integration.spec.js#it turns succeeded and completed when the signed event settles the refund"
}
]
Expected
Booked adjustments persist while pending; success completes normally and decline completes with exception.
[
{
"do": "Reverse 40.00 of billed value.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/integration/services/settlements/card-fees.integration.spec.js#it credits the fee’s share of the reversed money off the fee invoice and frees it with the rest: 4000 of 10000 reversed frees 4112"
}
]
Expected
Released value totals 41.12 and the corresponding fee share is credited.
[
{
"do": "Attempt creation, preview and inspection.",
"provenance": "test",
"source": "services-accounting:modules/transactions/tests/e2e/settlements.e2e.spec.js#it is refused the reversal routes without accounting.reversals.create, .preview and .read (403)"
}
]
An isolated workspace has eligible customers, products, matching accounts, an open period and two open batches. Each branch owns separate financial records.
Steps
[
{
"do": "Through the registered reversal service cancel 40.00 of paid billing with a 5.00 fee and refund treatment. Inspect the memo, receipt-derived fee credit and refund, then repeat the service command.",
"provenance": "proposed",
"source": "services-accounting:modules/transactions/tests/integration/services/reversals/reversals.integration.spec.js#it wrote the credit memo of 4000 on the line, which freed the line’s 4000 back onto the check (W-05); services-accounting:modules/transactions/tests/integration/services/reversals/reversals.integration.spec.js#it issued the fee invoice of 500 and settled it with a credit of 500 made from the check’s freed money; services-accounting:modules/transactions/tests/integration/services/reversals/reversal-two-payments.integration.spec.js#it requests one refund per payment, 7000 and 3000, each from its own payment; services-accounting:modules/transactions/tests/integration/services/reversals/reversals.integration.spec.js#it refuses a reversal dated in no open period (period_not_open), writing nothing; rhythm-v2-docs:specs/accounting/transactions/design/workflows/WF-ACC-TRX-010-reverse-billing-in-one-operation.md#WF-ACC-TRX-010; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-014-reverse-billing-in-one-operation.md#BR-CAP-ACC-TRX-014-02; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-014-reverse-billing-in-one-operation.md#BR-CAP-ACC-TRX-014-03; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-014-reverse-billing-in-one-operation.md#BR-CAP-ACC-TRX-014-04; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-014-reverse-billing-in-one-operation.md#BR-CAP-ACC-TRX-014-05; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-003-reduce-or-add-to-an-issued-invoice-with-credit-and-debit.md#BR-CAP-ACC-TRX-003-04; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-011-give-a-customer-credit-and-apply-it.md#BR-CAP-ACC-TRX-011-02; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-011-give-a-customer-credit-and-apply-it.md#BR-CAP-ACC-TRX-011-04; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-012-pay-money-back-with-refunds.md#BR-CAP-ACC-TRX-012-03; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-012-pay-money-back-with-refunds.md#BR-CAP-ACC-TRX-012-09; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-020-let-commerce-and-the-processor-work-with-accounting-safely.md#BR-CAP-ACC-TRX-020-01; rhythm-v2-docs:specs/accounting/transactions/planning/capabilities/CAP-ACC-TRX-020-let-commerce-and-the-processor-work-with-accounting-safely.md#BR-CAP-ACC-TRX-020-03"
}
]
Expected
The 5.00 credit pays the fee and the remaining 35.00 follows source-specific return treatment; the replay retains the same component records and pending outcome.
Data
Separate command keys, two customers, invoice lines, receipts and credit; controlled processor outcomes and a fixed calendar where the branch requires them.