/*
 * Copyright ©2023 CJB-CNIT Team. All rights reserved
 */
package com.openhis.web.reportmanage.dto;

import java.math.BigDecimal;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.openhis.common.annotation.Dict;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 月末结算报表 dto
 *
 * @author liuhr
 * @date 2025-07-25
 */
@Data
@Accessors(chain = true)
public class MonthlySettlementDto {

    /** 库房 */
    @Dict(dictTable = "adm_location", dictCode = "id", dictText = "name")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long locationId;
    private String locationId_dictText;

    /** 期初金额 */
    private BigDecimal initialAmount;

    /** 期末金额 */
    private BigDecimal finalAmount;

    /** 预期期末金额 */
    private BigDecimal expectFinalAmount;

    /** 偏移量 */
    private BigDecimal offsetAmount;

    /** 采购入库金额 */
    private BigDecimal purchaseInAmount;
    /** 采购入库单据数 */
    private Integer purchaseInNumber;

    /** 采购出库金额 */
    private BigDecimal purchaseReturnAmount;
    /** 采购出库单据数 */
    private Integer purchaseReturnNumber;

    /** 领用出库金额 */
    private BigDecimal applyOutAmount;
    /** 领用出库单据数 */
    private Integer applyOutNumber;

    /** 领用退货金额 */
    private BigDecimal applyReturnAmount;
    /** 领用退货单据数 */
    private Integer applyReturnNumber;

    /** 调拨入库金额 */
    private BigDecimal transferInAmount;
    /** 调拨入库单据数 */
    private Integer transferInNumber;

    /** 调拨出库金额 */
    private BigDecimal transferOutAmount;
    /** 调拨出库单据数 */
    private Integer transferOutNumber;

    /** 盘点盈亏金额（盘盈+ / 盘亏-） */
    private BigDecimal checkProfitLossAmount;
    /** 盘点盈亏单据数 */
    private Integer checkProfitLossNumber;

    /** 报损金额 */
    private BigDecimal lossAmount;
    /** 报损单据数 */
    private Integer lossNumber;

    /** 药品发放金额 */
    private BigDecimal drugIssueAmount;

}
