using DS.Module.Core.Enums;
using DS.WMS.Core.Code.Entity;
using SqlSugar;
namespace DS.WMS.Core.Application.Entity
{
///
/// 付费申请
///
[SugarTable("application_payment", TableDescription = "付费申请")]
public class PaymentApplication : ApplicationForm
{
///
/// 状态
///
[SugarColumn(ColumnDescription = "状态")]
public new PaymentApplicationStatus Status { get; set; }
///
/// 人民币申请金额
///
[SugarColumn(ColumnDescription = "人民币申请金额", IsNullable = true)]
public decimal? AmountRMB { get; set; }
///
/// 美元申请金额
///
[SugarColumn(ColumnDescription = "美元申请金额", IsNullable = true)]
public decimal? AmountUSD { get; set; }
///
/// 其他币别申请金额
///
[SugarColumn(ColumnDescription = "其他币别申请金额", IsNullable = true)]
public decimal? AmountOther { get; set; }
///
/// 结算方式
///
[SugarColumn(ColumnDescription = "结算方式")]
public long? SettlementTypeId { get; set; }
[Navigate(NavigateType.OneToOne, nameof(SettlementTypeId))]
public CodeStlMode SettlementType { get; set; }
///
/// 结算人ID
///
[SugarColumn(ColumnDescription = "结算人ID")]
public long? SettlerId { get; set; }
///
/// 结算人名称
///
[SugarColumn(ColumnDescription = "结算人名称", Length = 50)]
public string? SettlerName { get; set; }
///
/// 结算时间
///
[SugarColumn(ColumnDescription = "结算时间")]
public DateTime? SettlementTime { get; set; }
///
/// 支付申请人
///
[SugarColumn(ColumnDescription = "支付申请人")]
public long? PaymentApplicantId { get; set; }
//
/// 支付申请人
///
[SugarColumn(ColumnDescription = "支付申请人名称", Length = 50)]
public string? PaymentApplicantName { get; set; }
///
/// 申请支付日期
///
[SugarColumn(ColumnDescription = "申请支付日期")]
public DateTime? PaymentDate { get; set; }
///
/// 支票备注
///
[SugarColumn(ColumnDescription = "支票备注", Length = 200)]
public string? ChequeRemarks { get; set; }
///
/// 是否收到发票
///
[SugarColumn(ColumnDescription = "是否收到发票", IsNullable = false, DefaultValue = "0")]
public bool IsInvoiceReceived { get; set; }
}
}