package com.ga.core.mapstruct;

import com.ga.core.vo.ledger.ExceptionLedgerSaveReq;
import com.ga.core.vo.ledger.ExceptionLedgerVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface ExceptionLedgerMapStruct {

    @Mapping(target = "ledgerId",        ignore = true)
    @Mapping(target = "contractId",      ignore = true)
    @Mapping(target = "commissionYear",  ignore = true)
    @Mapping(target = "taxAmount",       ignore = true)
    @Mapping(target = "approveStatus",   ignore = true)
    @Mapping(target = "approverId",      ignore = true)
    @Mapping(target = "approveDate",     ignore = true)
    @Mapping(target = "recurringLeft",   ignore = true)
    @Mapping(target = "status",          ignore = true)
    @Mapping(target = "version",         ignore = true)
    @Mapping(target = "createdAt",       ignore = true)
    @Mapping(target = "updatedAt",       ignore = true)
    ExceptionLedgerVO toVO(ExceptionLedgerSaveReq req);
}
