|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.Module.Core.Data;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Fee.Entity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用记录
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarTable("fee_record", TableDescription = "费用记录")]
|
|
|
|
|
public class FeeRecord : BaseModel<long>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "业务Id")]
|
|
|
|
|
public long BusinessId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 收付类型(收、付) 1应收 2 应付
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "收付类型(收、付)", IsNullable = false, DefaultValue = "1")]
|
|
|
|
|
public int FeeType { 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 = "费用英文名称", Length = 100, IsNullable = true)]
|
|
|
|
|
public string FeeEnName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用对象
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用对象", Length = 100, IsNullable = true)]
|
|
|
|
|
public string CustomerName { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用对象编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用对象编码", Length = 100, IsNullable = true)]
|
|
|
|
|
public string CustomerCode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用对象Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用对象Id")]
|
|
|
|
|
public long CustomerId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用对象类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用对象类型", IsNullable = true, Length = 50)]
|
|
|
|
|
public string CustomerType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用标准
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用标准", Length = 20, IsNullable = true)]
|
|
|
|
|
public string Unit { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单价
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "单价", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal? UnitPrice { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "数量", IsNullable = true, Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal? Quantity { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "金额", IsNullable = true, Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal? Amount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 币别
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "币别", Length = 20)]
|
|
|
|
|
public string Currency { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 汇率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "汇率", IsNullable = true, Length = 18, DecimalDigits = 5, DefaultValue = "0")]
|
|
|
|
|
public decimal? ExchangeRate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 驳回原因
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "驳回原因", Length = 100, IsNullable = true)]
|
|
|
|
|
public string Reason { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "备注", Length = 1000, IsNullable = true)]
|
|
|
|
|
public string Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:佣金比率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "佣金比率", Length = 18, DecimalDigits = 3, DefaultValue = "0")]
|
|
|
|
|
public decimal? CommissionRate { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:结算金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "结算金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal? SettlementAmount { get; set; } = 0;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:开票金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "开票金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal? InvoiceAmount { get; set; } = 0;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:申请金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "申请金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal? OrderAmount { get; set; } = 0;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:申请开票金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "申请开票金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal? OrderInvoiceAmount { get; set; } = 0;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提交日期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "提交日期")]
|
|
|
|
|
public DateTime? SubmitDate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 审核人Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "审核人Id")]
|
|
|
|
|
public long AuditBy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 审核人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "审核人",IsNullable = true, Length = 50)]
|
|
|
|
|
public string AuditOperator { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 审核日期
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "审核日期")]
|
|
|
|
|
public DateTime AuditDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否机密费用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否机密费用", DefaultValue = "0")]
|
|
|
|
|
public bool? IsOpen { get; set; } = false;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 对帐编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "对帐编号", IsNullable = true, Length = 50)]
|
|
|
|
|
public string DebitNo { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否对帐
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "IsDebit", DefaultValue = "0")]
|
|
|
|
|
public bool IsDebit { get; set; } = false;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否垫付费用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否垫付费用", DefaultValue = "0")]
|
|
|
|
|
public bool? IsAdvancedPay { get; set; } = false;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否禁开发票
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否禁开发票", DefaultValue = "0")]
|
|
|
|
|
public bool? IsInvoice { get; set; } = false;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否销售订舱
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否销售订舱", DefaultValue = "0")]
|
|
|
|
|
public bool? IsCrmOrderFee { get; set; } = false;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "排序")]
|
|
|
|
|
public int? OrderNo { get; set; } = 100;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "费用状态", DefaultValue = "1")]
|
|
|
|
|
public FeeStatusEnum FeeStatus { get; set; } = FeeStatusEnum.Entering;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发票号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "发票号", IsNullable = true, Length = 200)]
|
|
|
|
|
public string InvoiceNum { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支票号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "支票号", IsNullable = true, Length = 200)]
|
|
|
|
|
[Description("支票号")]
|
|
|
|
|
public string ChequeNum { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 仓储编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "仓储编号", IsNullable = true, Length = 100)]
|
|
|
|
|
public string WmsOutBSNO { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "行号")]
|
|
|
|
|
public int LineNum { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 税率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "税率", Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal TaxRate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 不含税金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "不含税金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal NoTaxAmount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 财务税率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "财务税率", Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal AccTaxRate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否生成凭证
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否生成凭证", IsNullable = true, DefaultValue = "0")]
|
|
|
|
|
public bool IsVou { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 报销编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "报销编号", IsNullable = true, Length = 50)]
|
|
|
|
|
public string BxId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 税额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "税额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal Tax { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 申请结算金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "申请结算金额", Length = 18, DecimalDigits = 2, DefaultValue = "0")]
|
|
|
|
|
public decimal OrderSettlementAmount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 含税单价
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "含税单价", Length = 18, DecimalDigits = 4, DefaultValue = "0")]
|
|
|
|
|
public decimal TaxUnitPrice { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 申请发票开票金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "申请发票开票金额", Length = 18, DecimalDigits = 3, DefaultValue = "0")]
|
|
|
|
|
public decimal OrderInvSettlementAmount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 凭证号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "凭证号", IsNullable = true, Length = 50)]
|
|
|
|
|
public string VoucherNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "SalesNo", IsNullable = true, Length = 50)]
|
|
|
|
|
public string SalesNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 借款编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "借款编号", IsNullable = true, Length = 50)]
|
|
|
|
|
public string JkId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "DeliveryNo", IsNullable = true, Length = 50)]
|
|
|
|
|
public string DeliveryNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 本位币
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "本位币", IsNullable = true, Length = 30)]
|
|
|
|
|
public string LocalCurrency { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 责任人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "责任人", IsNullable = true, Length = 50)]
|
|
|
|
|
public string Manager { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否财务费用
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "是否财务费用", IsNullable = true, DefaultValue ="0")]
|
|
|
|
|
public bool IsAcc { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "PaymentId", IsNullable = true, Length = 50)]
|
|
|
|
|
public string PaymentId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "StatementNo",IsNullable = true, Length = 50)]
|
|
|
|
|
public string StatementNo{ get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 核算单位
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "核算单位", IsNullable = true, Length = 50)]
|
|
|
|
|
public string SaleOrg { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 核算单位Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "核算单位Id")]
|
|
|
|
|
public long SaleOrgId { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 发票自助连接
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "发票自助连接", IsNullable = true, Length = 50)]
|
|
|
|
|
public string InvLinkId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 提交人
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnDescription = "提交人", IsNullable = true, Length = 50)]
|
|
|
|
|
public string SubmitBy { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|