---
id: TST-COM-ORD-073
title: An application’s adjustment in the unit price
kind: api-lifecycle
product_area: commerce
module: orders
revision: 1
status: draft
source_sha:
  services-commerce: c8b66a98e2490617aec38ba5c8165dd9bd0a8f9b
repository: services-commerce
files:
  - modules/orders/tests/e2e/application-adjustments.e2e.spec.js
implements:
  - ATS-COM-ORD-006-07
environment: local
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 2
isolation: The suite creates its own test workspace records and removes them using the fixture cleanup.
evidence:
  - provenance: test
    source: 'services-commerce:modules/orders/tests/e2e/application-adjustments.e2e.spec.js'
    test_cases:
      - >-
        makes the unit price the prorated $50.00 and the line $50.00, the price row’s $100.00 and the
        proration beside it
      - 'previews the same unit price, so the preview and the placement agree'
      - requests an invoice line of $50.00 whose identity holds
      - 'takes the 10 % from the adjusted price: $5.00 off, the line $45.00'
      - rounds the unit price half away from zero to $96.67 and keeps the line at $290.01
      - records the cent as a rounding row beside the proration
      - requests an invoice line whose unit price times its quantity is the line total
scenario_coverage:
  - scenario: ATS-COM-ORD-006-07
    test_cases:
      - >-
        makes the unit price the prorated $50.00 and the line $50.00, the price row’s $100.00 and the
        proration beside it
      - rounds the unit price half away from zero to $96.67 and keeps the line at $290.01
      - requests an invoice line whose unit price times its quantity is the line total
    scope: >-
      The cited cases exercise the scenario’s listed fixture outcomes; this register makes no verified
      conformance claim.
dependency_evidence:
  provenance: test
  source: 'services-commerce:modules/orders/tests/e2e/application-adjustments.e2e.spec.js'
  declared_by_test: >-
    the composed handler, the routes, the workflows, the pricing engine and its participant step, the
    promotions library and persistence, the invoice request, PostgreSQL. Doubled: the signing key pair, the
    other services' tables and Accounting (local stand-ins), the participant (the stub).
---

# An application’s adjustment in the unit price

## Verification Boundary

The suite drives the composed local API dispatcher and its registered routes.

## What This Suite Proves

The registered cases check an application’s adjustment in the unit price with their fixture records and assertions. Scenario bindings name only the examples those cases exercise.

## What It Does Not Prove

A registered file supplies no run result or verified conformance by itself. Local fixtures do not establish deployed cross-service behavior or complete browser journeys.

## Real Dependencies and Test Doubles

PostgreSQL and the exercised Commerce persistence or workflow code are real. Remote service records, clocks and transports follow the suite’s fixtures.

## Must Not Be Doubled

The database constraints, role restrictions, locks and transactions exercised by this suite must use PostgreSQL.
