CODEBLIX / RG42

Report grain workspace

Orders, lines and payments · reconcile the rows before acceptance.

SQL Server project consultation →
Candidate r1
Joined rows / expected orders— / 3Not evaluated
Line value · USD—Source control 390.00
Payment value · USD
Outstanding · USD—Source control 100.00

Orders

One intended report identity per order.

OrderCustomerLinesPayments

O803 has no payment. Preserve it in the report.

Order lines

Line amounts have their own stable keys.

LineOrderUSD

Payments

Payment count is independent of line count.

PaymentOrderUSD

No source records are changed by this exercise.

Acceptance contract

Run the detail join and inspect the repeated amounts. Then total each child by order, evaluate again and retain the passing selection as Report owner. Check Acorn separately: its balance can look correct while both underlying totals are inflated.

Ready: inspect the source records, then evaluate the detail-join candidate.