package com.zioinfo.mes.inventory;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 재고 이동 이력 (mes_inventory_txn) — 입고/출고/투입/산출/이동/조정.
 *
 * <p>txnType: RECEIVE, ISSUE, CONSUME(투입), PRODUCE(산출), TRANSFER, ADJUST
 */
@Data
public class MesInventoryTxn {
    private Long id;
    private String txnType;
    private String itemCode;
    private String fromWarehouse;
    private String fromLocation;
    private String toWarehouse;
    private String toLocation;
    private String lotNo;
    private Double qty;
    private String refType;     // WORKORDER / RECEIVING / SHIPPING / STOCKTAKE
    private String refNo;
    private String createdBy;
    private LocalDateTime createdAt;
}
