← Back to gallery

U7 — Daily Sales Report PDF rework PROD

2026-05-27 Gate 2 ship. U4's closing-session PDF reshaped to match Odoo's "Daily Sales Report X/Z" layout per Narong's 2026-05-27 Telegram. Sales grouped by category × product × variants × qty/total; Payments per method; Discounts (count + total); Session Control with separate "Number of transactions" (paid + partial_refund) and "Transactions Refunded" (fully reversed) lines so refunded orders don't inflate the count or the cups-sold totals. NIX Cash section preserved, placed under Session Control. Order-list table removed.

Summary

Status
9/9 prod · 51/51 regression · 60/60 total · awaiting Gate 2 approval
Commit
nix-cafe 608cb5c
Files
3 nix-cafe files modified · ~600 LOC net · no migration · no backend changes
Source
Narong's Telegram 2026-05-27 (screenshot of Odoo's Daily Sales Report + "we don't need to see the individual orders" + "any orders refunded should not add onto cups sold" + "Transactions Refunded under Number of transactions")

What shipped

New layout (top to bottom)

Dropped

Decisions locked

Files shipped

9/9 prod checks

Find a closed lumiere session that has orders (Z test) — used session b967eb21, tx=1 refunded=0
SSO-login lumiere owner
Z test: fetch closing-session PDF for the closed session (200 / application/pdf / closing-session- filename / %PDF magic)
Closed session PDF: title 'Daily Sales Report Z' present + all 5 section headings (Sales / Payments / Discounts / Session Control / Cash) + 'Number of transactions' + 'Transactions Refunded' + 'As of'
Closed session PDF: legacy 'Order#' / 'Methods' column headers are GONE — order-list table removed
Counts in PDF body match raw SQL: Number of transactions: 1 + Transactions Refunded: 0
Find an open lumiere session for the X test
X test: open-session PDF has title 'Daily Sales Report X' (not Z) — title flip verified end-to-end
No 5xx HTTP responses during the suite

Real rendered PDFs from prod

Fetched live from lumiere-coffee.nixtech.app via authenticated GET. Open inline below or download.

Closed session (Z title)

PDF preview not supported in this browser. Download.

Open session (X title)

PDF preview not supported in this browser. Download.

Regression sweep 51/51

51/51 regression checks green — no regressions from this push.
test-phase1-prod.mjs11/11
test-phase2-sso-outdoor-prod.mjs6/6
test-m1-prod.mjs10/10
test-r7-prod.mjs14/14
test-r8-prod.mjs4/4
test-phase2-cafe-multishop-prod.mjs (solo)6/6

narongix chain ran sequentially. phase2-cafe-multishop ran solo per feedback_phase2_cafe_multishop_solo_retry — first-attempt green (8th validation of the rule).

Mid-Gate-2 finds