diff --git a/manifests/core/worker-script.yaml b/manifests/core/worker-script.yaml index 6894684..4f1cc73 100644 --- a/manifests/core/worker-script.yaml +++ b/manifests/core/worker-script.yaml @@ -56,7 +56,14 @@ data: "/live/api/v2/deliveries/createdeliverylog": f"{BASE_URL}/live/api/v2/deliveries/createdeliverylog", "/live/api/v2/partners/createbreaklog": f"{BASE_URL}/live/api/v2/partners/createbreaklog", "/live/api/v2/partners/updatebreaklog": f"{BASE_URL}/live/api/v2/partners/updatebreaklog", - "/live/api/v1/mob/orders/createorder": f"{BASE_URL}/live/api/v1/orders/createorder", + # v1 CreateOrder only ever writes the order header - it never loops + # over "items", so orderdetails/productstocks are never touched. + # CreateOrderv3 does ("for _, item := range data.Items"), and the + # loop is a no-op when Items is empty, so tenants who never send + # items (their whole order history is header-only, e.g. 916/908) + # behave identically. Tenants who do send items now get them + # persisted instead of silently dropped (2026-07-29). + "/live/api/v1/mob/orders/createorder": f"{BASE_URL}/live/api/v3/orders/createorder", "/live/api/v1/web/products/create": f"{BASE_URL}/live/api/v1/products/create", "/live/api/v1/mob/customers/login": f"{BASE_URL}/live/api/v1/customers/login", "/live/api/v1/mob/customers/create": f"{BASE_URL}/live/api/v1/customers/create",