refactor(backend): drop the legacy products.printer_zone_id and its print fallbacks

Routing has been by prep zone only since v1, which nulled this column on every start, so the four fallbacks in printer_service.py never ran. Revision 0012 drops the column (its unnamed FK goes with the batch rebuild). The unused legacy GET /api/kds/items keeps its single 'no zone' group. Product create/update/export/import no longer mention it. Scheduled in plan step 1.0 for the catalogue rework (1.13).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 12:28:13 +02:00
co-authored by Claude Opus 5.5
parent 82c6ca4e0a
commit 3c5751025c
8 changed files with 37 additions and 57 deletions
+1 -1
View File
@@ -771,7 +771,7 @@ def kds_items(
for item in items:
product = item.product
zone_id = product.printer_zone_id if product else None
zone_id = None # legacy per-product printer is gone (routing is by prep zone); one group, as before
zkey = _zone_key(zone_id)
if zkey not in zones:
zones[zkey] = {"zone_id": zone_id, "zone_name": _zone_name(zone_id), "items": []}