request_items
1 row where request_id = 34
This data as json, CSV (advanced)
| id ▼ | request_id | sku | name | unit | qty | direction | adjust_reason | adjust_reason_note |
|---|---|---|---|---|---|---|---|---|
| 41 | 34 34 | REEVEL00100 | Reed Diffuser น้ำหอมก้านธูปกลิ่น Velvet Night 100 มล. | ขวด | 1.0 | in | อื่นๆ | น้ำยากลิ่นเดียวกันเหลือจากแบ่งบรรจุ เลยเอามารวมกัน |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE request_items (
id INTEGER PRIMARY KEY AUTOINCREMENT,
request_id INTEGER NOT NULL REFERENCES requests(id),
sku TEXT NOT NULL,
name TEXT NOT NULL,
unit TEXT,
qty REAL NOT NULL, -- บวก=เพิ่ม ลบ=ลด
direction TEXT NOT NULL, -- in | out
adjust_reason TEXT, -- สาเหตุ (สำหรับ adjust type)
adjust_reason_note TEXT -- หมายเหตุเพิ่มเติม (กรณีอื่นๆ)
);