package com.zt.plat.module.erp.controller.admin.erp.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

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

@Schema(description = "管理后台 - ERP资产卡片新增/修改 Request VO")
@Data
public class ErpAssetSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31799")
    private Long id;

    @Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "公司编号不能为空")
    private String companyNumber;

    @Schema(description = "资产主编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "资产主编码不能为空")
    private String mainAssetNumber;

    @Schema(description = "记录创建日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "记录创建日期不能为空")
    private LocalDateTime recordCreateDate;

    @Schema(description = "更改用户名", example = "芋艿")
    private String updateUserName;

    @Schema(description = "资产类编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "资产类编号不能为空")
    private String assetTypeNumber;

    @Schema(description = "资产类描述", example = "李四")
    private String assetTypeName;

    @Schema(description = "资产资本化日期")
    private LocalDateTime assetDate;

    @Schema(description = "基本计量单位")
    private String uom;

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

    @Schema(description = "资产描述")
    private String assetDescription;

    @Schema(description = "附加资产描述")
    private String assetDescriptionAttach;

    @Schema(description = "折旧计算开始日期")
    private LocalDateTime depreciationStartDate;

    @Schema(description = "计划年使用期")
    private String planYearDate;

    @Schema(description = "成本中心编码")
    private String costcenterNumber;

    @Schema(description = "责任成本中心")
    private String dutyCostcenterNumber;

}