Commit Graph

13 Commits

Author SHA1 Message Date
d52b6953ed Add OTC sales UI with direct sales support
- Create OTC UI form at public/otc/index.php
- Add API endpoint public/api/otc-order.php
- Extract shared DB connection to includes/db.php
- Add migration for OTC products (0006_phase1_otc_products.sql)
- Support order_source='direct' with automatic DIR- reference generation
- Include billing address capture with default values
- Add payment methods cash and paypal for direct sales
- Implement stock allocation and inventory management
2026-04-06 19:55:24 +02:00
d2943b446b Use strict alias mapping for article-to-product components 2026-03-30 08:18:05 +02:00
ef06b4dd90 Auto-seed new current lot on lot switch to avoid allocation loop 2026-03-29 22:07:16 +02:00
68fb6e138c Support bundle title parsing into single inventory products 2026-03-29 22:01:19 +02:00
3b8a8aeb69 Fix order import mapping and lot auto-switch robustness 2026-03-29 21:52:26 +02:00
bcf1f5523e Automate inventory allocation during order import with idempotent rollback 2026-03-29 21:31:51 +02:00
a828345ac9 Automate post-import shipping label trigger and wire label webhook flow 2026-03-29 21:20:34 +02:00
a4798f8e04 Trigger label webhook with broader env-secret header compatibility 2026-03-29 21:19:30 +02:00
8e74ccab67 Auto-trigger shipping label flow after successful order import 2026-03-29 21:17:24 +02:00
de890e6b91 Accept array payloads and add DB schema preflight for order import 2026-03-29 20:47:03 +02:00
49770a58ec Harden order import SQL with explicit public schema 2026-03-29 20:46:01 +02:00
b214723a46 Add ERP order import endpoint and n8n order-ingest flow export 2026-03-29 20:45:00 +02:00
09c978f8aa Initial commit 2026-03-29 13:32:01 +00:00