---
id: TST-COM-ORD-133
title: BilledLinesOf
kind: unit
product_area: commerce
module: orders
revision: 1
status: draft
source_sha:
  services-commerce: c8b66a98e2490617aec38ba5c8165dd9bd0a8f9b
repository: services-commerce
files:
  - modules/orders/tests/unit/mirror/money-mirror.spec.js
implements:
  - ATS-COM-ORD-010-05
environment: mock
implementation_state: implemented
latest_result: not-run
latest_run_at: null
latest_run_ref: null
conformance: not-verified
estimated_minutes: 1
isolation: 'The suite owns its in-memory inputs, scripted responses and rendered component state.'
evidence:
  - provenance: test
    source: 'services-commerce:modules/orders/tests/unit/mirror/money-mirror.spec.js'
    test_cases:
      - 'answers the lines Commerce wrote an invoice line id on, and none of an unbilled order'
      - >-
        sums the positions: paid counts payments and credit applications once, credited the memos, the balance
        what is due
      - answers an all-zero mirror and no mismatch for an order with no billed line
      - finds a billed line with no position
      - 'finds a void invoice on an accepted order and leaves its amounts out, but not on a placed one'
      - finds a position in another currency
      - >-
        finds the sum invoiced differing from the order’s total with nothing credited, and accepts the
        difference a memo explains
      - >-
        raises nothing for less than the total invoiced (the deposit alone, the installments to come), and
        invoiced_total_differs for more
      - 'carries the schedule’s reflection when given, keeps the current one when not, and drops it for null'
scenario_coverage:
  - scenario: ATS-COM-ORD-010-05
    test_cases:
      - >-
        sums the positions: paid counts payments and credit applications once, credited the memos, the balance
        what is due
    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/unit/mirror/money-mirror.spec.js'
  declared_by_test: 'the derivation. Doubled: nothing (the inputs are literals).'
---

# BilledLinesOf

## Verification Boundary

The unit suite checks the named contract or helper with controlled inputs.

## What This Suite Proves

The registered cases check billedLinesOf 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

Inputs and external responses are controlled in process; this suite establishes no deployed service behavior.

## Must Not Be Doubled

The named contract validation or component behavior under assertion must use its actual implementation.
