using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Fee.Entity
{
///
/// 往来单位固定费用
///
[SugarTable("fee_cust_template_detail", "往来单位固定费用")]
public class FeeCustTemplateDetail : BaseModelV2
{
///
/// 费用Id
///
[SugarColumn(ColumnDescription = "费用Id")]
public long FeeId { get; set; }
///
/// 费用代码 录入费用是作为检索
///
[SugarColumn(ColumnDescription = "费用代码", Length = 50, IsNullable = true)]
public string FeeCode { get; set; }
///
/// 费用名称
///
[SugarColumn(ColumnDescription = "费用名称", Length = 100, IsNullable = true)]
public string FeeName { get; set; }
///
/// 结算对象
///
[SugarColumn(ColumnDescription = "结算对象", Length = 100, IsNullable = true)]
public string CustomerName { get; set; }
///
/// 客户类型
///
[SugarColumn(ColumnDescription = "客户类型", IsNullable = true)]
public CustomerTypeEnum? CustomerType { get; set; }
///
/// 收付类型(收、付)
///
[SugarColumn(ColumnDescription = "收付类型(收、付)", IsNullable = false, DefaultValue = "1")]
public int FeeType { get; set; }
///
/// 客户Id
///
[SugarColumn(ColumnDescription = "客户Id")]
public long CustomerId { get; set; }
///
/// 费用标准
///
[SugarColumn(ColumnDescription = "费用标准", Length = 20, IsNullable = true)]
public string Unit { get; set; }
///
/// 是否箱型
///
[SugarColumn(ColumnDescription = "是否箱型", DefaultValue = "0")]
public bool? IsCtn { get; set; } = false;
///
/// 币别
///
[SugarColumn(ColumnDescription = "币别", Length = 100, IsNullable = true)]
public string Currency { get; set; }
///
/// 单价
///
[SugarColumn(ColumnDescription = "单价", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
public decimal? UnitPrice { get; set; }
///
/// 排序
///
[SugarColumn(ColumnDescription = "排序")]
public int? OrderNo { get; set; } = 100;
///
/// 汇率
///
[SugarColumn(ColumnDescription = "汇率", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
public decimal? ExchangeRate { get; set; }
///
/// 费用默认税率
///
[SugarColumn(ColumnDescription = "费用默认税率", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
public decimal? TaxRate { get; set; }
///
/// 财务税率
///
[SugarColumn(ColumnDescription = "财务税率", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
public decimal? AccTaxRate { get; set; }
///
/// 税额
///
[SugarColumn(ColumnDescription = "税额", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
public decimal? Tax { get; set; }
///
/// 含税单价
///
[SugarColumn(ColumnDescription = "含税单价", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
public decimal? TaxUnitPrice { get; set; }
///
/// 是否开票
///
[SugarColumn(ColumnDescription = "是否开票", DefaultValue = "0")]
public bool? IsInvoice { get; set; } = false;
///
/// 是否垫付费用
///
[SugarColumn(ColumnDescription = "是否垫付费用", DefaultValue = "0")]
public bool? IsAdvancedPay { get; set; } = false;
}
}