package cn.iocoder.yudao.module.system.controller.admin.biz.vo.materialio.inboundreturn;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "管理后台 - 入库退回单明细 Response VO")
public class MaterialInboundReturnOrderItemRespVO {

    @Schema(description = "明细ID")
    private Long id;

    @Schema(description = "物资ID")
    private Long materialId;

    @Schema(description = "物资名称")
    private String materialName;

    @Schema(description = "物资编号")
    private String materialNumber;

    @Schema(description = "单位")
    private String materialUnit;

    @Schema(description = "仓库名称")
    private String storeName;

    @Schema(description = "退回数量")
    private BigDecimal quantity;

    @Schema(description = "扣减的入库批次ID")
    private Long refInboundItemId;

    @Schema(description = "单价 (取自扣减的入库批次)")
    private BigDecimal inUnitPrice;

    @Schema(description = "金额")
    private BigDecimal amount;

    @Schema(description = "可退回数量（关联原入库批次明细的可用数量）")
    private BigDecimal availableQty;
}

