package com.ga.core.vo.accounting;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 분개 엔트리 수동 등록 요청 — 자동 분개 외 수기 입력용
 */
@Data
public class ContractAccountingEntrySaveReq {
    @NotNull
    private Long contractId;
    private Long paymentId;
    @NotNull
    private LocalDate entryDate;
    @NotBlank
    private String debitAccount;
    @NotBlank
    private String creditAccount;
    @NotNull
    @DecimalMin("0.01")
    private BigDecimal amount;
    private String description;
}
