Skip to content

JNY-COM-ORD-003A manager locates a purchase and reviews its balance

Markdown

JNY-COM-ORD-003

A manager locates a purchase and reviews its balance

Markdown
  • DocumentDraft
  • Product intentConfirmed
  • ImplementationObserved

KindJourneyProduct areaCommerceModuleCustomer purchases, purchased benefits and vendor stockRevision1End-to-endRequired

Read atservices-commerce c8b66a98react-console baf6dae3

The Formal Contract

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

Goal
Locate a customer purchase without knowing its order number and determine whether an amount remains due.
Screens
/console/{tenantId}/orders/console/{tenantId}/orders/{orderId}

Steps

#SurfaceActionCapabilityExpectedProvenance
1/console/{tenantId}/ordersChoose Orders within Orders and Inventory.CAP-COM-ORD-010The paged table presents recent purchases first, including the customer, state, total and balance.test
services-commerce:modules/orders/tests/integration/services/persistence/orders.queries.integration.spec.js#lists every order of the tenant newest placed first, and none of another tenant’s
2listOrdersEnter a fragment of the customer’s name.CAP-COM-ORD-010Name matching finds the customer’s purchases regardless of case.test
3listOrdersApply the Unpaid view and the preceding week’s date range.CAP-COM-ORD-010Results include owing or unbilled purchases within the dates and exclude voided ones.test
services-commerce:modules/orders/tests/integration/services/persistence/orders.queries.integration.spec.js#filters the unpaid orders: owing or not yet billed, never a voided one
4/console/{tenantId}/orders/{orderId}Follow the order number into its detail view.CAP-COM-ORD-010The money panel presents the supplied Accounting position and a link to the associated invoice.test
react-console:components/console/order/__tests__/order-360-live-cards.test.tsx#shows the totals with the promotion's name, the money, and the invoice as a link to Accounting

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
alternate2The manager knows the order numberSearch the number with or without its display prefixThe matching purchase appearstest
failure1The caller lacks permission to read ordersRefuse the order-list requestThe request does not disclose order datatest
services-commerce:modules/checkout/tests/e2e/checkout-security.e2e.spec.js#refuses a caller without commerce.orders.read the list, 403 permission_missing

Assertions

IdStatementProvenance
01Pagination presents the purchases in newest-first order without omissions or duplicate rows.test
02Search supports the display number and case-insensitive customer-name fragments.test
03The balance displayed in the table is the balance provided in its order data.test
react-console:components/commerce/orders/__tests__/orders-list-screen.test.tsx#shows the number, the customer, the status, the total and the balance due

End-to-end policy: required: A browser journey must connect the live list, filters and detail view after refresh to prove staff can find an existing purchase again.

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.