Commit Graph

8 Commits

Author SHA1 Message Date
583cd89063 new api for offline sales 2026-07-30 17:25:09 +05:30
Suriya
af55325a5b Stop silently dropping order line items
Every order created after orderheaderid 146119 had zero rows in
orderdetails — the header saved fine but items never made it in,
which also meant the stock pre-validation loop (it iterates over
data.Items) never ran, so an order could go through without ever
checking stock. Root cause: whichever client is sending these sends
items as a sibling of "orders" rather than nested inside it, a shape
neither existing parse strategy captures, so encoding/json silently
dropped it.

Add a third parse fallback for that sibling-items shape, and reject
any order with zero items outright instead of letting it through as
a phantom header-only row.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 18:01:26 +05:30
5e998a54eb stock update 2026-07-21 16:17:51 +05:30
Suriya
b7af245910 store wise orders change 2026-07-21 09:25:30 +05:30
1437a08be5 corrections in stockrequest table 2026-07-09 15:31:36 +05:30
abe2cb997b stock request table created 2026-07-04 17:49:54 +05:30
Suriya
f220c24c17 new changes 2026-07-01 10:53:57 +05:30
Gokul
0d42ac84e1 initial commit 2026-05-25 11:52:26 +05:30