package cn.superdesk.uniorder.dto.vo.invoice.supplier;

import cn.superdesk.uniorder.common.json.deserializer.BigDecimalScale2ConvertDeserializer;
import cn.superdesk.uniorder.common.json.serializer.BigDecimalScale2ConvertSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2021/12/14 下午3:31
 * @UpdateUser: linjinyu
 * @UpdateDate: 2021/12/14 下午3:31
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Data
public class InvoiceApplySupplierHeadVo implements Serializable {

	private static final long serialVersionUID = -3989589063392934828L;

	private Integer total;


	/**
	 * Database Column Remarks:
	 * 对账单数量
	 */
	private Integer accountingOrderQuantity;

	private Integer    orderQuantity;
	@JsonDeserialize(using = BigDecimalScale2ConvertDeserializer.class)
	@JsonSerialize(using = BigDecimalScale2ConvertSerializer.class)
	private BigDecimal orderAmount;
	/**
	 * Database Column Remarks:
	 * 订单商品item数量累加
	 */
	private Integer    goodsQuantity;

	/**
	 * Database Column Remarks:
	 * 订单商品item的数量累加
	 */
	private Integer goodsItemQuantity;

	/**
	 * Database Column Remarks:
	 * 商品销售金额(统一订单)
	 */
	@JsonDeserialize(using = BigDecimalScale2ConvertDeserializer.class)
	@JsonSerialize(using = BigDecimalScale2ConvertSerializer.class)
	private BigDecimal goodsAmount;

	/**
	 * Database Column Remarks:
	 * 商品成本金额(统一订单)
	 */
	@JsonDeserialize(using = BigDecimalScale2ConvertDeserializer.class)
	@JsonSerialize(using = BigDecimalScale2ConvertSerializer.class)
	private BigDecimal goodsCostAmount;

	/**
	 * 发票申请金额
	 */
	@JsonDeserialize(using = BigDecimalScale2ConvertDeserializer.class)
	@JsonSerialize(using = BigDecimalScale2ConvertSerializer.class)
	private BigDecimal invoiceApplyAmount;

}
