feat(129): erli status mapping sync
Phase 129 complete: - Add Erli pull/push status mapping tables, seeds and repositories - Wire Erli status sync cron for inbox pull and manual-only push - Add tabbed Erli settings UI, tests and documentation Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -370,6 +370,7 @@ UNIQUE: `(order_id, source_payment_id)`
|
||||
UNIQUE: `(integration_id, shoppro_status_code)`
|
||||
|
||||
**integration_order_sync_state** — Track order fetch progress per integration
|
||||
- Phase 129 adds `last_status_pushed_at` for Erli manual status push cursor.
|
||||
|
||||
**integration_order_status_sync_state** — Track status sync progress per integration and direction
|
||||
|
||||
@@ -517,6 +518,14 @@ UNIQUE: `(type, name)`
|
||||
| `created_at` | DATETIME | |
|
||||
| `updated_at` | DATETIME | |
|
||||
|
||||
**erli_order_status_mappings** — orderPRO status → Erli status used for status push
|
||||
- Seeded official Erli statuses: `created`, `canceled`, `readyToProcess`, `inProgress`, `sent`, `readyToPickup`, `received`, `returned`, `returningToSender`, `unknown`.
|
||||
- `orderpro_status_code` is nullable; unmapped status rows are skipped by push sync.
|
||||
|
||||
**erli_order_status_pull_mappings** — Erli status → orderPRO status used during inbox import
|
||||
- Seeded defaults: `pending -> nieoplacone`, `purchased -> nowe`, `cancelled -> anulowane`.
|
||||
- Unknown Erli statuses are discovered from `/inbox` and inserted with nullable mapping.
|
||||
|
||||
**allegro_delivery_method_mappings** — Map order delivery method strings to Allegro services
|
||||
| Column | Type | Notes |
|
||||
|--------|------|-------|
|
||||
|
||||
Reference in New Issue
Block a user