Skip to content

ATS-ACC-BAT-015Produce document entries using the applicable accounting method: Capability Test Specification

Markdown

ATS-ACC-BAT-015

Produce document entries using the applicable accounting method: Capability Test Specification

Markdown
  • DocumentProposed
  • Product intentProposed

KindAcceptance test setProduct areaAccountingModuleBatch ManagementRevision2

Read atservices-accounting f47cb263react-console baf6dae3rhythm-v2-docs 37405d50

Produce document entries using the applicable accounting method: Capability Test Specification ​

Coverage ​

The scenarios define focused checks for this outcome. The coverage map distinguishes specified checks from unresolved proof; executable bindings identify inspected assertions and carry no execution result.

Dependency failure differs from whole-job failure. Resolved destinations drive generated entries. Generated balances survive storage enforcement. Correction entries agree with remaining releases. These checks use the related capability’s outcome as part of the setup or verification. Unbound interactions remain proposed until a suite executes the complete chain.

Coverage

  • Rule covered
  • Transition not-applicable
  • Validation gap: FND-ACC-BAT-069
  • Permission not-applicable
  • Edge gap: FND-ACC-BAT-069
  • Failure covered
  • Boundary covered
  • Concurrency gap: FND-ACC-BAT-069
  • Invariant covered
  • Interaction covered

Test Scenarios

15 scenarios proving CAP-ACC-BAT-015; 10 bound to an existing test.

01 Live documents produce the applicable entriesruleapitest
Proves
BR-CAP-ACC-BAT-015-01
Preconditions
The batch contains live documents alongside voided invoices, memos and checks.
Steps
Complete accounting for the selected collection.
Expected
Applicable live documents receive entries; voided documents receive none and do not cause errors.
Data
Provide rebuilt document fixtures.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-documents.integration.spec.js#writes one entry per live document, none for the void invoice
02 Entries use batch fiscal placementrulebrowsertest
Proves
BR-CAP-ACC-BAT-015-02
Preconditions
A September document belongs to an October batch and an October document to a backdated September batch.
Steps
Post both and inspect the ledger.
Expected
Each entry uses its batch date and period while retaining the document date separately.
Data
Provide two open periods.
Bound to
Source
react-console:acceptance/accounting/playwright/journeys/batches-posting/ACT-ACC-0550.spec.ts#ACT-ACC-0550
03 Document kinds determine ledger sidesrulebrowsertest
Proves
BR-CAP-ACC-BAT-015-03 BR-CAP-ACC-BAT-015-04
Preconditions
A taxed invoice has both credit and debit memos.
Steps
Post and expand their entries.
Expected
Each kind uses its specified debit and credit pattern, including tax lines.
Data
Provide tax rates and products.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-tax.integration.spec.js#posts the invoice per line: the receivable debited the total with the tax, revenue credited the net, and a tax credit per tax line to its account
04 Corrections split recognised and deferred balancesinteractionapitest
Proves
BR-CAP-ACC-BAT-015-05
Preconditions
Half of a one-hundred-twenty-dollar deferred line is recognised.
Steps
Post a sixty-dollar credit memo and write-off.
Expected
Each credits receivable by sixty and debits revenue and deferred revenue by thirty apiece.
Data
Provide a recognised period.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/memo-split-by-schedule.integration.spec.js#posts the credit memo of 60.00 as Cr receivable 6000, Dr deferred revenue 3000 and Dr revenue 3000
05 Money movements retain their source dependenciesrulebrowsertest
Proves
BR-CAP-ACC-BAT-015-06 BR-CAP-ACC-BAT-015-07 BR-CAP-ACC-BAT-015-08 BR-CAP-ACC-BAT-015-09
Preconditions
Payments and credits precede later allocations, refunds and a bounced check.
Steps
Post the three months in order.
Expected
Each document uses its ledger pattern and later outflows retain dependencies on the originating and allocation batches.
Data
Provide rebuilt payment fixtures.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-payments.integration.spec.js#posts the payment: cash debited its total, the invoice line's receivable credited the allocation, unapplied cash credited the rest
06 Dependencies can post in the same requestinteractionbrowsernegativetest
Proves
BR-CAP-ACC-BAT-015-10
Preconditions
November’s memo refers to an invoice in an Open October batch.
Steps
Post November alone and then both batches together.
Expected
The isolated attempt names the source invoice and batch status; the combined attempt posts both and records November downstream of October.
Data
Provide no fixtures beyond the stated setup.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-documents.integration.spec.js#refuses November alone while October is open: November in error, naming the memo's invoice and October's status
07 Exchange rates govern foreign-currency postingboundaryapinegativetest
Proves
BR-CAP-ACC-BAT-015-11
Preconditions
Foreign invoices include one with a stored rate and one without, plus payments, credits and refunds.
Steps
Submit accounting work for the containing collections.
Expected
Stored-rate documents balance in both currencies with final-line residuals; the rate-less invoice fails its batch with an identifying reason.
Data
Provide exchange rates.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/foreign-currency-invoice.integration.spec.js#marks the batch in error with the same sentence when posted, and writes no entry
08 Cash accounting recognises receiptruleapitest
Proves
BR-CAP-ACC-BAT-015-12
Preconditions
The unit uses cash accounting.
Steps
Post an invoice and its allocated payment.
Expected
The invoice creates no entry; the payment debits cash and credits revenue.
Data
Provide a cash-basis unit.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-posting-edges.integration.spec.js#posts nothing for the invoice, and the payment as cash against the revenue of the line it pays (the frozen account), no receivable
09 Reconciliation requests create ledger entriesruleunittest
Proves
BR-CAP-ACC-BAT-015-13
Preconditions
The batch holds transfer, fee, reserve, adjustment and write-off requests.
Steps
Generate posting.
Expected
Every request produces its applicable cash and request lines; request-only batches remain and statistics include them.
Data
Provide no fixtures beyond the stated setup.
Bound to
Source
services-accounting:modules/batches/tests/unit/rules/reconciliation-entry-rules.spec.js#posts a bank line and a clearing line as cash lines naming their accounts, debits and credits as stored
10 Entries balance and retain traceabilityinvariantapitest
Proves
BR-CAP-ACC-BAT-015-14 INV-DOM-ACC-BAT-004-01
Preconditions
A posted batch contains every supported document kind.
Steps
Total entry lines and trace them to their originating documents.
Expected
Debit and credit totals agree in each currency and every line retains its document reference.
Data
Provide no fixtures beyond the stated setup.
Bound to
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-documents.integration.spec.js#traces every line of every entry to a line of a document in the batch
11 Dependency failure differs from whole-job failureinteractionapiproposed
Proves
BR-CAP-ACC-BAT-013-10 BR-CAP-ACC-BAT-015-10
Preconditions
January is valid, April depends on an unposted credit and May depends on April.
Steps
Submit all three and inspect job, batch states and entries.
Expected
January is Posted; April and May are Error without entries, with their respective reasons.
Data
An isolated workspace with the stated business-unit calendar, documents and configuration.
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-posting-edges.integration.spec.js#posts January, puts April in error naming the application whose credit's batch is not posted, and May in error as April's dependent; services-accounting:modules/batches/tests/integration/services/posting/rebuilt-documents.integration.spec.js#refuses November alone while October is open: November in error, naming the memo's invoice and October's status
12 Resolved destinations drive generated entriesinteractionapiproposed
Proves
BR-CAP-ACC-BAT-014-02 BR-CAP-ACC-BAT-015-03
Preconditions
An issued invoice line lacks product accounting but the unit has its revenue default.
Steps
Post the batch and inspect the line snapshot and revenue ledger line.
Expected
Both identify the unit’s resolved revenue account.
Data
An isolated workspace with the stated business-unit calendar, documents and configuration.
Source
services-accounting:modules/batches/tests/integration/services/posting/gl-resolution-at-posting.integration.spec.js#posts the invoice to the resolved accounts: the receivable from the unit’s default, the revenue from the product’s setup, the discounted line net of its discount; services-accounting:modules/batches/tests/integration/services/posting/rebuilt-tax.integration.spec.js#posts the invoice per line: the receivable debited the total with the tax, revenue credited the net, and a tax credit per tax line to its account
13 Generated balances survive storage enforcementinteractionapiproposed
Proves
BR-CAP-ACC-BAT-015-14 BR-CAP-ACC-BAT-017-01
Preconditions
A taxed invoice and its memo are eligible for posting.
Steps
Post them and sum stored debit and credit lines per entry.
Expected
Each stored entry balances and its document-line references remain readable.
Data
An isolated workspace with the stated business-unit calendar, documents and configuration.
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-documents.integration.spec.js#traces every line of every entry to a line of a document in the batch; services-accounting:modules/batches/tests/integration/services/persistence/subledger-entries.integration.spec.js#refuses an entry whose debits and credits differ, at commit, by the balance constraint
14 Correction entries agree with remaining releasesinteractionapiproposed
Proves
BR-CAP-ACC-BAT-015-05 BR-CAP-ACC-BAT-019-08
Preconditions
Half of a deferred invoice line’s revenue is recognised.
Steps
Post a sixty-dollar credit memo and inspect its ledger entry and adjustment schedule.
Expected
The entry divides thirty dollars each between revenue and deferred revenue; future schedule adjustments total the deferred share.
Data
An isolated workspace with the stated business-unit calendar, documents and configuration.
Source
services-accounting:modules/batches/tests/integration/services/posting/memo-split-by-schedule.integration.spec.js#posts the credit memo of 60.00 as Cr receivable 6000, Dr deferred revenue 3000 and Dr revenue 3000; services-accounting:modules/batches/tests/unit/rules/schedule-truncation.spec.js#inverts the nine unrecognised months at half each on their own dates and nothing for the recognised three
15 Generation exceptions preserve the transactionfailureapinegativeproposed
Proves
BR-CAP-ACC-BAT-015-14
Preconditions
A valid invoice batch uses a controlled generator that throws during accounting work.
Steps
Invoke the posting task and inspect persisted entries, batch status and the failed job.
Expected
The transaction writes no partial entries; the job records the exception and preserves the previous batch state.
Data
Owned records in an isolated workspace with the stated calendar and accounting setup.
Source
services-accounting:modules/batches/tests/integration/services/posting/rebuilt-documents.integration.spec.js#traces every line of every entry to a line of a document in the batch

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.