home / stock_adj

request_items

2 rows where request_id = 20

✎ View and edit SQL

This data as json, CSV (advanced)

id ▼ request_id sku name unit qty direction adjust_reason adjust_reason_note
20 20 20 REEMID00100 Reed Diffuser น้ำหอมก้านธูปกลิ่น Midnight Luxury100 มล. (น้ำหอม) ขวด 4.0 in อื่นๆ  
21 20 20 REEBRI00100 Reed Diffuser น้ำหอมก้านธูปกลิ่น Bright Welcome 100 มล. ขวด 2.0 in อื่นๆ ทำใหม่จากสินค้ารับคืนที่เสียหาย

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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                 -- หมายเหตุเพิ่มเติม (กรณีอื่นๆ)
            );
Powered by Datasette · Queries took 13.107ms