feat(FIX-159): completed feature

This commit is contained in:
chattie
2026-08-22 17:35:09 +02:00
parent 06404fe770
commit f8e7257dc0
10 changed files with 56 additions and 8 deletions

View File

@@ -0,0 +1,7 @@
# FIX-159 — Architect
## Problem
reporting/summary and sales endpoints return 500. Root cause: CTE `filtered_orders` in `reporting-service.ts` did not include `shipping_cents` in its SELECT list, but the outer query references `o.shipping_cents`. PG raises "column o.shipping_cents does not exist".
## Fix
Added `o.shipping_cents` to the SELECT list of all 3 CTEs (summary/sales/products queries).