package cn.lihongjie.coal.warehouseReceiptDetail.dto;

import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.common.DictCode;
import cn.lihongjie.coal.pojoProcessor.DictTranslate;
import cn.lihongjie.coal.warehouse.dto.WarehouseDto;
import cn.lihongjie.coal.warehouseGoods.dto.WarehouseGoodsDto;
import cn.lihongjie.coal.warehouseReceipt.dto.WarehouseReceiptSimpleDto;
import cn.lihongjie.coal.warehouseShelve.dto.WarehouseShelveDto;
import cn.lihongjie.coal.warehouseSupplier.dto.WarehouseSupplierDto;

import jakarta.persistence.ManyToOne;

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.time.LocalDateTime;

@Data
public class WarehouseReceiptDetailDto extends OrgCommonDto {

    @ManyToOne
    private WarehouseGoodsDto goods;

    private WarehouseDto warehouse;

    @ManyToOne
    private WarehouseShelveDto shelve;



    private WarehouseDto warehouse1;

    @ManyToOne
    private WarehouseShelveDto shelve1;

    private WarehouseSupplierDto supplier;

    @ManyToOne
    private WarehouseReceiptSimpleDto receipt;


    @DictTranslate(dictKey =  DictCode.WAREHOUSE_RECEIPTTYPE)
    private String receiptTypeName;

    private String receiptType;

    @Comment("数量")
    private Double number;


    @Comment("单价")
    private Double price;


    private Double amount;

    @Comment("保质期 天")
    private Integer shelfLife;


    @Comment("生产日期")
    private LocalDateTime productionDate;

    @Comment("过期日期")
    private LocalDateTime expirationDate;


    @Comment("现有库存")
    private Double stock;
}
