- Adds Pax8SyncService.syncOrders(): pages all invoice headers, then per-header pages its items (12-RESEARCH.md Pattern 1 nested fetch) - resolveCostColumns() branches on item.type per 12-02-SUMMARY.md's live spot-check verdicts (all types CONFIRM -> single default branch, kept as a named seam for future divergence) - pax8_orders.pax8_company_id stays NULL (Pitfall 1); per-company data lives on pax8_order_items.pax8_company_id - Tombstones child (pax8_order_items) before parent (pax8_orders) to respect the FK, using the existing id <> ALL($1::uuid[]) pattern |
||
|---|---|---|
| .. | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| auth-client.ts | ||
| auth-utils.ts | ||
| auth.ts | ||
| bootstrap.ts | ||
| permissions.ts | ||
| status-registry.ts | ||
| utils.ts | ||