Skip to content

FAS-ACC-TRX-04Credits, Refunds and Returned Money: Feature Acceptance Suite

Markdown

FAS-ACC-TRX-04

Credits, Refunds and Returned Money: Feature Acceptance Suite

Markdown
  • DocumentProposed
  • Product intentProposed

Product areaAccountingModuleTransactionsRevision1

Read atservices-accounting f47cb263react-console baf6dae3

Scenarios

5 scenarios proving FEAT-ACC-TRX-04 as a whole.

01 Held money can become credit or return without double spending behaviour proposed
Exercises
CAP-ACC-TRX-011 CAP-ACC-TRX-012 CAP-ACC-TRX-013
Relies on
ATS-ACC-TRX-011-02 ATS-ACC-TRX-012-02 ATS-ACC-TRX-013-04
Preconditions
A receipt has 50.00 available after paying its customer’s bill.
Steps
[object Object]
Expected
Held value remains unavailable, the credit consumes exactly 20.00 and the live credit prevents source reversal.
Data
An isolated workspace, matching unit and currency, eligible accounts, products and open periods; branch-owned financial records and distinct caller identities.
Source
rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-011-give-a-customer-credit-and-apply-it.md#ATS-ACC-TRX-011-02; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-012-pay-money-back-with-refunds.md#ATS-ACC-TRX-012-02; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-013-undo-a-payment-whose-money-did-not-stay.md#ATS-ACC-TRX-013-04
02 Receipt credit and refund holds prevent source reversal interaction proposed
Exercises
CAP-ACC-TRX-011 CAP-ACC-TRX-012 CAP-ACC-TRX-013
Relies on
ATS-ACC-TRX-011-02 ATS-ACC-TRX-013-04 ATS-ACC-TRX-012-02
Preconditions
An offline receipt has 3.00 unapplied in an eligible open batch.
Steps
[object Object]
Expected
The void is refused while the grant remains live; the 1.00 refund reservation remains held and only the remaining 1.00 is available on the receipt.
Data
An isolated workspace, matching unit and currency, eligible accounts, products and open periods; branch-owned financial records and distinct caller identities.
Source
rhythm-v2-docs:specs/accounting/transactions/design/tests#ATS-ACC-TRX-011-02; ATS-ACC-TRX-012-02; ATS-ACC-TRX-013-04
03 Return approval and payment use separate people and stages lifecycle proposed
Exercises
CAP-ACC-TRX-011 CAP-ACC-TRX-012
Relies on
ATS-ACC-TRX-011-02 ATS-ACC-TRX-012-05 ATS-ACC-TRX-012-07
Preconditions
Approval is enabled and a receipt has 50.00 available.
Steps
[object Object]
Expected
The refund becomes paid only after independent approval, and credit accounts for the rest without another use of the returned money.
Data
An isolated workspace, matching unit and currency, eligible accounts, products and open periods; branch-owned financial records and distinct caller identities.
Source
rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-011-give-a-customer-credit-and-apply-it.md#ATS-ACC-TRX-011-02; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-012-pay-money-back-with-refunds.md#ATS-ACC-TRX-012-05; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-012-pay-money-back-with-refunds.md#ATS-ACC-TRX-012-07
04 Return and credit authority remain separate permissionnegative proposed
Exercises
CAP-ACC-TRX-011 CAP-ACC-TRX-012 CAP-ACC-TRX-013
Relies on
ATS-ACC-TRX-011-09 ATS-ACC-TRX-012-11 ATS-ACC-TRX-013-01
Preconditions
A reader can inspect the source records without sensitive mutation grants.
Steps
[object Object]
Expected
Every mutation fails and the original available, held and settled values remain unchanged.
Data
An isolated workspace, matching unit and currency, eligible accounts, products and open periods; branch-owned financial records and distinct caller identities.
Source
rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-011-give-a-customer-credit-and-apply-it.md#ATS-ACC-TRX-011-09; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-012-pay-money-back-with-refunds.md#ATS-ACC-TRX-012-11; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-013-undo-a-payment-whose-money-did-not-stay.md#ATS-ACC-TRX-013-01
05 A refund cannot consume money held for customer credit regressionnegative proposed
Exercises
CAP-ACC-TRX-011 CAP-ACC-TRX-012
Relies on
ATS-ACC-TRX-011-02 ATS-ACC-TRX-012-01 ATS-ACC-TRX-012-02
Preconditions
A 30.00 receipt has supplied a live 20.00 customer credit.
Steps
[object Object]
Expected
The excessive request fails and the exact request reserves the remaining money without changing the grant.
Data
An isolated workspace, matching unit and currency, eligible accounts, products and open periods; branch-owned financial records and distinct caller identities.
Source
rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-011-give-a-customer-credit-and-apply-it.md#ATS-ACC-TRX-011-02; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-012-pay-money-back-with-refunds.md#ATS-ACC-TRX-012-01; rhythm-v2-docs:specs/accounting/transactions/design/tests/ATS-ACC-TRX-012-pay-money-back-with-refunds.md#ATS-ACC-TRX-012-02

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.