package com.xunhong.erp.turbo.api.biz.dto.vo;

import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.enums.DealerTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "经销商表")
@EqualsAndHashCode(callSuper = true)
public class DealerVO extends DTO {

	/**
	 * 经销商ID
	 */
	@Schema(title = "经销商ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long dealerId;

	/**
	 * 经销商简称
	 */
	@Schema(title = "经销商简称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String shortName;

	/**
	 * 经销商全称
	 */
	@Schema(title = "经销商全称")
	private String fullName;

	/**
	 * 经销商类型：1_市场；2_超市；
	 */
	@Schema(title = "经销商类型：1_市场；2_超市；", requiredMode = Schema.RequiredMode.REQUIRED)
	private DealerTypeEnum dealerType;

	/**
	 * 是否开启分成
	 */
	@Schema(title = "是否开启分成")
	private Boolean enableShare;

	/**
	 * 分成比例
	 */
	@Schema(title = "分成比例")
	private BigDecimal shareRatio;

	/**
	 * 运费是否作为成本
	 */
	@Schema(title = "运费是否作为成本")
	private Boolean freightCostFlag;

	/**
	 * 草帘是否作为成本
	 */
	@Schema(title = "草帘是否作为成本")
	private Boolean strawMatCostFlag;

	/**
	 * 发货单合计金额是否含包装费
	 */
	@Schema(title = "发货单合计金额是否含包装费")
	private Boolean includePackingFlag;

	/**
	 * 单据类型：delivery-发货单, purchase-采购底单, cost-成本单
	 */
	@Schema(title = "单据类型：delivery-发货单, purchase-采购底单, cost-成本单")
	private String documentTypes;

	/**
	 * 应收金额
	 */
	@Schema(title = "应收金额")
	private BigDecimal receivable;

	/**
	 * 备注
	 */
	@Schema(title = "备注")
	private String remark;

	/**
	 * 状态：1_启用；0_禁用；
	 */
	@Schema(title = "状态：1_启用；0_禁用；", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean status;

	/**
	 * 发货单模板
	 */
	@Schema(title = "发货单模板")
	private String deliveryTemplate;

	/**
	 * 创建时间
	 */
	@Schema(title = "创建时间")
	private LocalDateTime createdAt;

	/**
	 * 经销商账户列表
	 */
	@Schema(title = "经销商账户列表")
	private List<DealerPaymentAccountVO> dealerPaymentAccountVOList;

	/**
	 * 是否开启计提税金
	 */
	@Schema(title = "是否开启计提税金")
	private Boolean enableAccrualTax;

	/**
	 * 计提税金比例
	 */
	@Schema(title = "计提税金比例")
	private BigDecimal accrualTaxRatio;

	/**
	 * 是否开启公司返点
	 */
	@Schema(title = "是否开启公司返点")
	private Boolean enableCompanyRebate;

	/**
	 * 公司返点比例
	 */
	@Schema(title = "公司返点比例")
	private BigDecimal companyRebateRatio;
}

