Skip to content

FAS-COM-ORD-07Vendor purchasing and stock value

Markdown

FAS-COM-ORD-07

Vendor purchasing and stock value

Markdown
  • DocumentProposed
  • Product intentProposed

Planning

Feature
FEAT-COM-ORD-07
Capabilities
CAP-COM-ORD-017, CAP-COM-ORD-018
Executed by
TST-COM-ORD-160

Product areaCommerceModuleCustomer purchases, purchased benefits and vendor stockRevision1

Read atservices-commerce c8b66a98macroservice-libraries 54536a44react-console baf6dae3

Scenarios

5 scenarios proving FEAT-COM-ORD-07 as a whole.

01 A vendor commitment produces stock and acquisition evidence behaviour test
Exercises
CAP-COM-ORD-017 CAP-COM-ORD-018
Relies on
ATS-COM-ORD-017-03 ATS-COM-ORD-018-03
Preconditions
A vendor purchase covers one hundred units at ten dollars each.
Steps
[object Object]
Expected
The commitment is partial with sixty units, their layers and capitalization fact.
Data
An isolated workspace with the records, permissions and controlled outcomes named above.
Bound to
Source
services-commerce:modules/purchasing/tests/integration/services/receiving/purchasing-flow.integration.spec.js#records the first receipt numbered, against the order, with one line of 60 at the order line’s cost, and the order partially received,services-commerce:modules/purchasing/tests/integration/services/receiving/purchasing-flow.integration.spec.js#writes, in the receipt’s transaction, the receipt movement naming the line, the layer of 60 @ 1000 and the capitalize_receipt fact of 60000
02 Closing preserves the received quantity and cancels the remainder interaction test
Exercises
CAP-COM-ORD-017 CAP-COM-ORD-018
Relies on
ATS-COM-ORD-017-04 ATS-COM-ORD-018-02
Preconditions
Ninety units of a one-hundred-unit purchase have arrived.
Steps
[object Object]
Expected
Cancellation is refused; closing retains ninety received units, cancels ten and refuses another receipt.
Data
An isolated workspace with the records, permissions and controlled outcomes named above.
Bound to
Source
services-commerce:modules/purchasing/tests/integration/services/receiving/purchasing-flow.integration.spec.js#closes an issued order after 90 of 100: cancelled_quantity 10, status closed; cancelling it instead is refused
03 Two deliveries complete the purchase without duplicate stock lifecycle test
Exercises
CAP-COM-ORD-017 CAP-COM-ORD-018
Relies on
ATS-COM-ORD-018-01 ATS-COM-ORD-018-03 ATS-COM-ORD-018-13
Preconditions
An issued purchase has one hundred open units.
Steps
[object Object]
Expected
The purchase becomes received with only one movement and cost trail per delivery.
Data
An isolated workspace with the records, permissions and controlled outcomes named above.
Bound to
Source
services-commerce:modules/purchasing/tests/integration/services/receiving/purchasing-flow.integration.spec.js#answers the retried receipt as found under its key, writing nothing twice,services-commerce:modules/purchasing/tests/integration/services/receiving/purchasing-flow.integration.spec.js#receives the remaining 40 and the order is received with its instant; the two layers stand oldest first
04 Purchasing readers cannot receive or change costing permissionnegative proposed
Exercises
CAP-COM-ORD-017 CAP-COM-ORD-018
Relies on
ATS-COM-ORD-017-06 ATS-COM-ORD-018-06
Preconditions
A principal has purchasing and costing read authority alone.
Steps
[object Object]
Expected
Reads succeed and both writes fail without quantity or version changes.
Data
An isolated workspace with the records, permissions and controlled outcomes named above.
Source
ATS-COM-ORD-017-06,ATS-COM-ORD-018-06
05 Method changes leave earlier acquisition history intact regressionnegative proposed
Exercises
CAP-COM-ORD-017 CAP-COM-ORD-018
Relies on
ATS-COM-ORD-018-05 ATS-COM-ORD-018-08
Preconditions
The fixture stock has receipt layers and prior FIFO shipment relief.
Steps
[object Object]
Expected
Old relief remains unchanged and restoration uses each shipment’s original costs.
Data
An isolated workspace with the records, permissions and controlled outcomes named above.
Source
ATS-COM-ORD-018-05,ATS-COM-ORD-018-08

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.