Skip to content

JNY-COM-ORD-002An organization purchase is accepted on terms

Markdown

JNY-COM-ORD-002

An organization purchase is accepted on terms

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
Place a purchase for an organization, accept it on terms and inspect the financial position returned by Accounting.
Screens
/console/{tenantId}/crm/contacts/{id}/orders/new/console/{tenantId}/orders/{orderId}

Steps

#SurfaceActionCapabilityExpectedProvenance
1/console/{tenantId}/crm/contacts/{id}/orders/newStart from the contact and select their organization as the billed customer despite the missing purchasing role.CAP-COM-ORD-001The composer explains the recorded staff override and creates the organization’s cart.test
react-console:components/order-composer/__tests__/live-composer.test.tsx#lets an organization buy through a contact with no purchasing role, and says Commerce records it
2previewCheckoutSelect the product and inspect the preview.CAP-COM-ORD-003The displayed amounts match the price, tax and total returned by Commerce.test
react-console:components/order-composer/__tests__/live-composer.test.tsx#shows exactly the figures Commerce's preview answered
3placeCheckoutPlace the prepared cart.CAP-COM-ORD-005The order exists with billing still pending.test
services-commerce:modules/checkout/tests/e2e/placement.e2e.spec.js#answers 200 with the order: numbered 10000, placed, pending billing, pay now with a thirty-minute tender window, created
4tenderOrderSelect Bill on Terms and record purchase reference PO-7781.CAP-COM-ORD-007Acceptance creates the real invoice with a thirty-day due date and takes no immediate payment.test
react-console:components/order-composer/__tests__/live-composer.test.tsx#bills on terms with the purchase order number, and takes no money
5tenderOrderInspect the accepted purchase’s delivery condition.CAP-COM-ORD-006The default terms condition permits delivery before payment; fulfilment still performs the delivery work.test
services-commerce:modules/orders/tests/e2e/billing-and-tender.e2e.spec.js#opens the gate of the console order when it is billed: the invoice is unpaid and the line is no longer waiting
6/console/{tenantId}/orders/{orderId}Use Receive Payment from the order.CAP-COM-ORD-007The Settle Invoices destination in Accounting identifies the chosen invoice.test
react-console:components/console/order/__tests__/order-360-live-cards.test.tsx#shows Receive Payment as a link to Accounting's Settle Invoices with the invoice selected, and no Take Payment
7/console/{tenantId}/orders/{orderId}Refresh the order after returning.CAP-COM-ORD-010The money panel uses the latest Accounting position read by Commerce.test
services-commerce:modules/orders/tests/integration/services/mirror/refresh-money-mirror.integration.spec.js#writes the mirror of the billed order from the view: paid counts the credit application once, the rest their columns

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
alternate5An item’s policy requires payment before deliveryKeep that line waiting for paymentAccounting’s reported payment enables its delivery conditiontest
services-commerce:modules/orders/tests/e2e/billing-and-tender.e2e.spec.js#leaves a console order waiting when the product’s own policy requires payment first
failure7Accounting events have not updated CommerceUse the planned hourly financial refreshThe mirrored position catches up when the refresh reads the paymentdocumented

Assertions

IdStatementProvenance
01Terms acceptance produces a real invoice without an immediate charge.test
services-commerce:modules/orders/tests/e2e/billing-and-tender.e2e.spec.js#pay later converts the pro forma to a real invoice and accepts the order on terms
02The default console terms condition permits delivery while the invoice remains unpaid.test
services-commerce:modules/orders/tests/e2e/billing-and-tender.e2e.spec.js#opens the gate of the console order when it is billed: the invoice is unpaid and the line is no longer waiting
03An Accounting payment can refresh the order to a paid position with no balance.test
services-commerce:modules/orders/tests/unit/mirror/money-mirror.spec.js#sums the positions: paid counts payments and credit applications once, credited the memos, the balance what is due

End-to-end policy: required: The browser proof must follow the organization purchase through the composer, order detail and Accounting settlement handoff, then demonstrate that the reported financial position returns.

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.