using System.ComponentModel;
using DS.WMS.Core.Op.Entity;
namespace DS.WMS.Core.Fee.Dtos
{
///
/// 申请单关联业务
///
public class BizApplication
{
///
/// 业务Id
///
public long Id { get; set; }
///
/// 业务类型
///
public BusinessType BusinessType { get; set; }
///
/// 委托编号
///
public string? CustomerNo { get; set; }
///
/// 委托单位
///
public string? ClientName { get; set; }
///
/// 费用对象/结费单位
///
public long? CustomerId { get; set; }
///
/// 费用对象/结费单位名称
///
public string? CustomerName { get; set; }
///
/// 主提单号
///
public string? MBLNO { get; set; }
///
/// 分提单号
///
public string? HBLNO { get; set; }
///
/// 订舱编号
///
public string? BookingNO { get; set; }
///
/// 开船日期
///
public DateTime? ETD { get; set; }
///
/// 揽货人ID
///
public long? SaleId { get; set; }
///
/// 揽货人名称
///
public string? SaleName { get; set; }
///
/// 更改单
///
public string? ChangeOrder { get; set; }
///
/// 会计期间
///
public string? AccountDate { get; set; }
///
/// 操作员ID
///
public long? OperatorId { get; set; }
///
/// 操作员
///
public string? Operator { get; set; }
///
/// 录入人ID
///
public long CreateBy { get; set; }
///
/// 录入人
///
public string CreateByName { get; set; }
///
/// 集装箱
///
public string? CntrTotal { get; set; }
///
/// 起运港
///
public string? LoadPort { get; set; }
///
/// 卸货港
///
public string? DischargePort { get; set; }
///
/// 船名
///
public string? Vessel { get; set; }
///
/// 航次
///
public string? Voyage { get; set; }
///
/// 结费方式
///
public string? StlName { get; set; }
///
/// 所属部门ID
///
public long SaleDeptId { get; set; }
///
/// 所属部门名称
///
public string? SaleDeptName { get; set; }
///
/// 备注
///
public string? Note { get; set; }
}
///
/// 用于付费申请的业务信息
///
public class BizPaymentApplication : BizApplication
{
///
/// RMB未付
///
public decimal UnpaidRMB { get; set; }
///
/// USD未付
///
public decimal UnpaidUSD { get; set; }
///
/// 其他未付
///
public decimal UnpaidOther { get; set; }
///
/// RMB未收
///
public decimal UnreceivedRMB { get; set; }
///
/// USD未收
///
public decimal UnreceivedUSD { get; set; }
///
/// RMB未收
///
public decimal UnreceivedOther { get; set; }
///
/// 合计未收
///
public decimal UnreceivedTotal { get => UnreceivedRMB + UnreceivedUSD + UnreceivedOther; }
///
/// RMB未开票
///
public decimal UnpaidRMBInv { get; set; }
///
/// USD未开票
///
public decimal UnpaidUSDInv { get; set; }
///
/// 是否垫付费用
///
public bool? IsAdvancedPay { get; set; }
///
/// 是否禁开发票
///
public bool? IsInvoice { get; set; }
}
///
/// 用于发票申请的业务信息
///
public class BizInvoiceApplication : BizApplication
{
///
/// 付款未结算金额
///
public decimal UnSettlementPaid { get; set; }
///
/// 收款未结算金额
///
public decimal UnSettlementCharged { get; set; }
///
/// RMB未开票
///
public decimal UnBilledRMB { get; set; }
///
/// USD未开票
///
public decimal UnBilledUSD { get; set; }
///
/// 其他未开票
///
public decimal UnBilledOther { get; set; }
///
/// 已申请金额
///
public decimal OrderAmount { get; set; }
///
/// 已结算金额
///
public decimal SettlementAmount { get; set; }
///
/// 已开票金额
///
public decimal InvoiceAmount { get; set; }
///
/// 对账编号
///
public string? DebitNo { get; set; }
///
/// 发票号
///
public string? InvoiceNO { get; set; }
}
///
/// 费用范围
///
public enum FeeRange
{
///
/// 全部费用
///
[Description("全部费用")]
All = 0,
///
/// 未结费用
///
[Description("未结费用")]
Unsettled = 1,
///
/// 已结费用
///
[Description("已结费用")]
Settled = 2,
///
/// 已付未收
///
[Description("已付未收")]
PaidNotReceived = 3,
///
/// 已收未付
///
[Description("已收未付")]
ReceivedNotPaid = 4,
///
/// 未申请未结算
///
[Description("未申请未结算")]
NotAppliedSettled = 5,
///
/// 未对账未结算
///
[Description("未对账未结算")]
UnreconciledSettled = 6,
///
/// 未开票未结算
///
[Description("未开票未结算")]
NotIssuedSettled = 7,
///
/// 已对账未结算
///
[Description("已对账未结算")]
ReconciledNotSettled = 8,
///
/// 未收未付
///
[Description("未收未付")]
NotReceivedPaid = 9,
///
/// 已结算未开票
///
[Description("已结算未开票")]
SettledNotIssued = 10
}
}