3 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
3b8a8aeb69 Fix order import mapping and lot auto-switch robustness 2026-03-29 21:52:26 +02:00
b214723a46 Add ERP order import endpoint and n8n order-ingest flow export 2026-03-29 20:45:00 +02:00