WMS - InventoryLịch sử nhập/xuất theo Serial/IMEI
ProductReceiptDetailSerial Object Schema
Đối tượng đại diện cho lịch sử nhập/xuất kho của một Serial/IMEI
JSON Schema
| Trường (Field) | Kiểu (Type) | Mô tả (Description) |
|---|---|---|
id | int | ID bản ghi (primary key) |
company_id | int | ID công ty |
creator_id | int | ID người tạo |
product_receipt_id | int | ID phiếu nhập/xuất kho |
product_receipt_detail_id | int | ID chi tiết phiếu nhập/xuất kho |
product_id | int | ID sản phẩm |
product_variant_id | int | ID biến thể sản phẩm |
warehouse_id | int | ID kho |
direction | int | Hướng nhập/xuất (Xem constant DIRECTION_*) |
quantity | int | Số lượng |
quantity_signed | int | Số lượng có dấu (âm nếu xuất, dương nếu nhập) |
serial_code | string | Mã Serial/IMEI |
match_status | int | Trạng thái đối soát (Xem constant MATCH_STATUS_*) |
match_origin_id | int | ID bản ghi gốc để đối soát |
status | int | Trạng thái (Xem constant STATUS_*) |
note | string | Ghi chú |
ip_address | string | Địa chỉ IP thực hiện thao tác |
date_created | int | Ngày tạo (Unix timestamp) |
date_modified | int | Ngày cập nhật (Unix timestamp) |
date_match_checked | int | Ngày kiểm tra đối soát (Unix timestamp) |
Ví dụ JSON object
{
"id": 1,
"company_id": 100,
"creator_id": 5,
"product_receipt_id": 200,
"product_receipt_detail_id": 300,
"product_id": 50,
"product_variant_id": 75,
"warehouse_id": 1,
"direction": 3,
"quantity": 1,
"quantity_signed": 1,
"serial_code": "IMEI-352789104562831",
"match_status": 1,
"match_origin_id": 0,
"status": 1,
"note": "Nhập kho từ đơn mua hàng PO-2024-001",
"ip_address": "192.168.1.100",
"date_created": 1717200000,
"date_modified": 1717200000,
"date_match_checked": 0
}