package com.jwipc.inquiry.dto;


import com.jwipc.aggregation.annotation.RelationAggregationField;
import com.jwipc.sys.client.TaxClient;
import com.jwipc.sys.client.UserClient;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author shenyang.ou
 * @date 2024/3/19 15:01
 * @desc
 */
@Data
public class AssistantSupplierDTO {
    private Long id;
    private Long inquiryMaterialId;
    private BigDecimal taxPrice;
    private BigDecimal noTaxPrice;
    private String supplierCode;
    private String supplierName;
    private String shortName;
    private String taxCode;
    /**
     * 税率名称
     */
    @RelationAggregationField(
            masterIdField = "taxCode",
            relationIdField = "taxCode",
            relationNameField = "taxName",
            relationClientClass = TaxClient.class,
            relationMethod = "getTaxList"
    )
    private String taxName;
    private String paymentMethod;
    private String paymentMethodName;
    private String currencyCode;
    private Integer confirmDeliveryDate;
    private Integer minPriceFlag;
    private BigDecimal exchangeRate;
    private BigDecimal conversionPrice;

}
