You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.7 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using DS.Module.Core;
using DS.Module.Core.Data;
using DS.Module.Core.Enums;
using DS.WMS.Core.Op.Entity;
using SqlSugar;
namespace DS.WMS.Core.Fee.Entity
{
/// <summary>
/// 费用申请明细
/// </summary>
[SugarTable("fee_application_detail", TableDescription = "费用申请明细")]
public class FeeApplicationDetail : BaseModelV2<long>
{
/// <summary>
/// 申请单ID
/// </summary>
[SugarColumn(ColumnDescription = "申请单ID")]
public long ApplicationId { get; set; }
/// <summary>
/// 业务ID
/// </summary>
[SugarColumn(ColumnDescription = "业务ID")]
public long BusinessId { get; set; }
/// <summary>
/// 业务类型
/// </summary>
[SugarColumn(ColumnDescription = "业务类型")]
public BusinessType BusinessType { get; set; }
/// <summary>
/// 费用记录ID
/// </summary>
[SugarColumn(ColumnDescription = "费用记录ID")]
public long RecordId { get; set; }
/// <summary>
/// 结算对象名称
/// </summary>
[SugarColumn(ColumnDescription = "结算对象名称", Length = 200, IsNullable = true)]
public string? CustomerName { get; set; }
/// <summary>
/// 收付类型(收、付) 1应收 2 应付
/// </summary>
[SugarColumn(ColumnDescription = "收付类型(收、付)", DefaultValue = "1")]
public FeeType FeeType { get; set; }
/// <summary>
/// 费用Id
/// </summary>
[SugarColumn(ColumnDescription = "费用Id")]
public long FeeId { get; set; }
/// <summary>
/// 费用名称
/// </summary>
[SugarColumn(ColumnDescription = "费用名称", Length = 100, IsNullable = true)]
public string? FeeName { get; set; }
/// <summary>
/// 类别1-付费申请结算 2-收费自由结算 3-发票结算 4-收费申请 5-付费申请 6-发票申请 7-发票开出 8-付费自由结算 9-收费申请结算)
/// </summary>
[SugarColumn(ColumnDescription = "类别", IsNullable = true)]
public FeeCategory? Category { get; set; }
/// <summary>
/// 申请金额
/// </summary>
[SugarColumn(ColumnDescription = "申请金额")]
public decimal Amount { get; set; }
/// <summary>
/// 已处理金额
/// </summary>
[SugarColumn(ColumnDescription = "已处理金额")]
public decimal ProcessedAmount { get; set; }
/// <summary>
/// 币别
/// </summary>
[SugarColumn(ColumnDescription = "币别", IsNullable = false, Length = 3)]
public string Currency { get; set; }
/// <summary>
/// 折算汇率
/// </summary>
[SugarColumn(ColumnDescription = "折算汇率", IsNullable = true)]
public decimal? ExchangeRate { get; set; }
/// <summary>
/// 原始币别
/// </summary>
[SugarColumn(ColumnDescription = "原始币别", IsNullable = false, Length = 3)]
public string OriginalCurrency { get; set; }
/// <summary>
/// 原始申请金额
/// </summary>
[SugarColumn(ColumnDescription = "原始申请金额")]
public decimal OriginalAmount { get; set; }
/// <summary>
/// 原始已处理金额
/// </summary>
[SugarColumn(ColumnDescription = "原始已处理金额")]
public decimal OriginalProcessedAmount { get; set; }
/// <summary>
/// 费用记录
/// </summary>
[Navigate(NavigateType.ManyToOne, nameof(FeeRecord.Id))]
public FeeRecord? Record { get; set; }
}
}