package com.ecep.contract.vo;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.ecep.contract.model.IdentityEntity;
import com.ecep.contract.model.Price;
import com.ecep.contract.model.VolumeSize;

import lombok.Data;

@Data
public class InventoryVo implements IdentityEntity, Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String name;
    private String code;
    /**
     * 目录, InventoryCatalog
     */
    private Integer catalogId;
    private String specification;
    private boolean specificationLock = false;
    private boolean nameLock = false;
    private Price purchasePrice;
    private Price salePrice;
    private String unit;
    private Double weight;
    private Double packagedWeight;
    private String weightUnit;
    private String volumeUnit;
    private String sizeUnit;
    private VolumeSizeVo volumeSize;
    private VolumeSizeVo packagedVolumeSize;
    private Integer creatorId;
    private LocalDate createTime;
    private Integer updaterId;
    private LocalDateTime updateDate;
    private String description;
    private boolean active = false;
}