using XYY.Common.Standard;
using XYY.Core.Standard;

namespace XYY.Model.Standard.Finance
{

    public class Finance_ServiceDeliveryBillLog : BaseLogEntity
    {

    }

    public class Finance_ServiceDeliveryBillDto : Finance_ServiceDeliveryBill
    {
        public string StrDeliveryBillType
        {
            get
            {
                return this.DeliveryBillType.ToString();
            }
        }
    }

    [TrackTable(typeof(Finance_ServiceDeliveryBillLog))]
    public class Finance_ServiceDeliveryBill : BaseEntity
    {
        public string Name
        {
            get; set;
        }

        public string Currency
        {
            get; set;
        }

        public string ServiceBillUrl
        {
            get; set;
        }

        public FiannceServiceBillStatus Status
        {
            get; set;
        }

        public decimal SysWeight
        {
            get; set;
        }

        

        public decimal ServiceWeight
        {
            get; set;
        }

        public decimal SysFreigh
        {
            get; set;
        }

        /// <summary>
        /// 服务商金额
        /// </summary>
        public decimal ServiceFreigh
        {
            get; set;
        }


        /// <summary>
        /// 确认金额
        /// </summary>
        public decimal ConfirmedFreigh
        {
            get; set;
        }

        public decimal NotConfirmedFreigh
        {
            get; set;
        }

        public decimal Supplement
        {
            get; set;
        }

        public decimal Deduction
        {
            get; set;
        }

        /// <summary>
        /// 应收款
        /// </summary>
        public decimal Receivables
        {
            get; set;
        }

        /// <summary>
        /// 已收款
        /// </summary>
        [Track("已收款")]
        public decimal Payment
        {
            get; set;
        }

        public DeliveryBillType DeliveryBillType
        {
            get; set;
        }

    }
}
