using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
namespace DS.WMS.Core.Info.Entity;
///
/// 往来单位-账期信息
///
[SugarTable("info_client_account_date", "往来单位-账期信息")]
public class InfoClientAccountDate : BaseModelV2
{
///
/// 往来单位id
///
public long ClientId { get; set; }
///
/// Desc:业务来源Id
///
[SugarColumn(ColumnDescription = "业务来源Id", IsNullable = true)]
public long SourceId { get; set; }
///
/// Desc:合同生效日期
///
[SugarColumn(ColumnDescription = "合同生效日期", IsNullable = true)]
public DateTime? BeginDate { get; set; }
///
/// Desc:合同结束日期
///
[SugarColumn(ColumnDescription = "合同失效日期", IsNullable = true)]
public DateTime? EndDate { get; set; }
///
/// Desc:业务类型
///
[SugarColumn(ColumnDescription = "业务类型", Length = 20, IsNullable = true)]
public string BusinessType { get; set; }
///
/// Desc:揽货人Id
///
[SugarColumn(ColumnDescription = "揽货人Id", IsNullable = true)]
public long SaleId { get; set; }
///
/// Desc:账期类型
///
[SugarColumn(ColumnDescription = "账期类型", Length = 20, IsNullable = true)]
public string AccountType { get; set; }
///
/// Desc:账期起算日
///
[SugarColumn(ColumnDescription = "账期起算日", Length = 20, IsNullable = true)]
public string AccountStartDate { get; set; }
///
/// Desc:间隔月份
///
[SugarColumn(ColumnDescription = "间隔月份", IsNullable = true)]
public byte? AccountMonth { get; set; }
///
/// Desc:账期日期
///
[SugarColumn(ColumnDescription = "账期日期", IsNullable = true)]
public byte? AccountDays { get; set; }
///
/// 上半月
///
[SugarColumn(ColumnDescription = "上半月", IsNullable = true)]
public byte? AccountFirstHalf { get; set; }
///
/// 下半月
///
[SugarColumn(ColumnDescription = "下半月", IsNullable = true)]
public byte? AccountSecondHalf { get; set; }
///
/// Desc:信用额度
///
[SugarColumn(ColumnDescription = "信用额度", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
public decimal? AllowAmount { get; set; }
///
/// Desc:合同Id
///
[SugarColumn(ColumnDescription = "合同Id", IsNullable = true)]
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;
///
/// 特批放单客户
///
[SugarColumn(ColumnDescription = "特批放单客户", IsNullable = false, DefaultValue = "0")]
public bool IsSpecial { get; set; }
///
/// 机构Id
///
[SugarColumn(ColumnDescription = "机构Id")]
public long OrgId { get; set; }
///
/// 人民币账户ID
///
[SugarColumn(ColumnDescription = "人民币账户ID")]
public long? RMBAccountId { get; set; }
///
/// 美金账户ID
///
[SugarColumn(ColumnDescription = "美金账户ID")]
public long? USDAccountId { get; set; }
}