//------------------------------------------------------------------------------
// <auto-generated>
//     此代码已从模板生成。
//
//     手动更改此文件可能导致应用程序出现意外的行为。
//     如果重新生成代码,将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------

namespace CK.SCP.Models.ScpEntity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public partial class V_TB_INVOICE_DETAIL:RecordEntity
    {
        [Key]
        public long UID { get; set; }
        public string InvcBillNum { get; set; }
        public string PoBillNum { get; set; }
        public int PoLineNum { get; set; }
        public string AsnBillNum { get; set; }
        public string AskBillNum { get; set; }
        public string PartCode { get; set; }
        public string Batch { get; set; }
        public Nullable<System.DateTime> ProduceDate { get; set; }
        public string VendBatch { get; set; }
        public decimal Qty { get; set; }
        public string PoUnit { get; set; }
        public decimal Price { get; set; }
        public decimal? OldPrice { get; set; }
        public string Currency { get; set; }
        public Nullable<decimal> PackQty { get; set; }
        public Nullable<int> State { get; set; }
        public string InvoiceNum { get; set; }
        public string ExpressNum { get; set; }
        public string VendId { get; set; }
        public string CurrencyDesc { get; set; }
        public string Site { get; set; }
        public Nullable<decimal> Tax { get; set; }
        public string RecvBillNum { get; set; }
        public string PartDesc1 { get; set; }
        public string Remark { get; set; }
        public Nullable<System.DateTime> BeginTime { get; set; }

        [NotMapped]
        public decimal CanQty { get; set; }
        public decimal? ContractPrice { set; get; }
        public decimal? BlancePrice { set; get; }
        public decimal? DiscountPrice { get; set; }
        [StringLength(50)]
        public string DiscountRemark { get; set; }
        public bool IsRed { get; set; }

        public string ProjectId { get; set; }

        [NotMapped]
        public bool IsCheck { get; set; }
        [NotMapped]
        public  String VendName { get; set; }
        /// <summary>
        /// Erp收货单
        /// </summary>
        public String ErpRecvBillNum { get; set; }

        /// <summary>
        /// 采购价
        /// </summary>
        public decimal? PurCost { get; set; }
        /// <summary>
        /// 成本价
        /// </summary>
        public decimal? StdCost { get; set; }



        public string RealTax { get; set; }


        public decimal? OLDTAX { get; set; }
        public decimal? NEWTAX { get; set; }
        public decimal? DISTAX { get; set; }


        public string SubSite { get; set; }
        
    }
}