using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
///
/// 往来单位-账期信息
///
[SqlSugar.SugarTable("info_client_account_date")]
public class InfoClientAccountDate : BaseOrgModel
{
///
/// 往来单位id
///
public long ClientId { get; set; }
///
/// Desc:业务来源Id
///
[SugarColumn(ColumnDescription = "业务来源Id")]
public long SourceId { get; set; }
///
/// Desc:合同生效日期
///
[SugarColumn(ColumnDescription = "合同生效日期")]
public DateTime? BeginDate { get; set; }
///
/// Desc:合同结束日期
///
[SugarColumn(ColumnDescription = "合同失效日期")]
public DateTime? EndDate { get; set; }
///
/// Desc:业务类型
///
[SugarColumn(ColumnDescription = "业务类型",Length = 20)]
public string BusinessType { get; set; }
///
/// Desc:揽货人Id
///
[SugarColumn(ColumnDescription = "揽货人Id")]
public long SaleId { get; set; }
///
/// Desc:账期类型
///
[SugarColumn(ColumnDescription = "账期类型",Length = 20)]
public string AccountType { get; set; }
///
/// Desc:账期起算日
///
[SugarColumn(ColumnDescription = "账期起算日",Length = 20)]
public string AccountStartDate { get; set; }
///
/// Desc:间隔月份
///
[SugarColumn(ColumnDescription = "间隔月份")]
public byte? AccountMonth { get; set; }
///
/// Desc:账期日期
///
[SugarColumn(ColumnDescription = "账期日期")]
public byte? AccountDays { get; set; }
///
/// Desc:信用额度
///
[SugarColumn(ColumnDescription = "信用额度", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? AllowAmount { get; set; }
///
/// Desc:合同Id
///
[SugarColumn(ColumnDescription = "合同Id")]
public long ContractId { get; set; }
///
/// Desc:运杂费比例
///
[SugarColumn(ColumnDescription = "运杂费比例", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? CommissionRate { get; set; } = 0;
///
/// 状态 0启用 1禁用
///
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
}