|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Fee.Entity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 往来单位费用模板明细
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("fee_cust_template_detail", "往来单位费用模板明细")]
|
|
|
|
|
public class FeeCustTemplateDetail
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 模板ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "模板ID", IsNullable = false)]
|
|
|
|
|
public long TemplateId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 所属模板
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Navigate(NavigateType.OneToOne, nameof(TemplateId))]
|
|
|
|
|
public FeeCustTemplate? Template { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主键ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算对象Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算对象Id")]
|
|
|
|
|
public long CustomerId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算对象
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算对象", Length = 100, IsNullable = true)]
|
|
|
|
|
public string? CustomerName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 结算对象类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算对象类型", IsNullable = true)]
|
|
|
|
|
public CustomerTypeEnum? CustomerType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用Id")]
|
|
|
|
|
public long FeeId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用代码 录入费用是作为检索
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用代码", Length = 50, IsNullable = true)]
|
|
|
|
|
public string? FeeCode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用名称", Length = 100, IsNullable = true)]
|
|
|
|
|
public string? FeeName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 收付类型(收、付)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "收付类型(收、付)", IsNullable = false, DefaultValue = "1")]
|
|
|
|
|
public FeeType FeeType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用标准
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用标准", Length = 20, IsNullable = true)]
|
|
|
|
|
public string? Unit { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否箱型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否箱型", DefaultValue = "0")]
|
|
|
|
|
public bool IsCtn { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 币别
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "币别", Length = 100, IsNullable = false)]
|
|
|
|
|
public string Currency { get; set; } = string.Empty;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单价
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "单价", IsNullable = true, Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal? UnitPrice { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 汇率,为空时取默认汇率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "汇率", IsNullable = true, Length = 18, DecimalDigits = 4)]
|
|
|
|
|
public decimal? ExchangeRate { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用默认税率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用默认税率", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal? TaxRate { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 财务税率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "财务税率", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal? AccTaxRate { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 税额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "税额", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal? Tax { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 含税单价
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "含税单价", IsNullable = true, Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal? TaxUnitPrice { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否开票
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否开票", DefaultValue = "0")]
|
|
|
|
|
public bool IsInvoice { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否垫付费用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否垫付费用", DefaultValue = "0")]
|
|
|
|
|
public bool IsAdvancedPay { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "创建时间", IsNullable = false)]
|
|
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "创建人", IsNullable = false)]
|
|
|
|
|
public long CreateBy { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|