namespace RB_MES_API.Models.Cloud
{
    /// <summary>
    /// 二次查询：上游单据为采购订单的简易信息
    /// </summary>
    public class PurchaseOrder
    {
        /// <summary>
        /// 输入参数和校验参数之一
        /// </summary>
        public string FBillNo { get; set; }
        /// <summary>
        /// 输入参数和校验参数之一
        /// </summary>
        public string FPOOrderEntry_FSeq { get; set; }
        /// <summary>
        /// 单据内码
        /// </summary>
        public string FID { get; set; }
        /// <summary>
        /// 行内码
        /// </summary>
        public string FPOOrderEntry_FEntryID { get; set; }
        /// <summary>
        /// 单位编码
        /// </summary>
        public string UnitNumber { get; set; }
        /// <summary>
        /// 剩余入库数量
        /// </summary>
        public string FRemainStockINQty { get; set; }
        /// <summary>
        /// 结算币别
        /// </summary>
        public string FSettleCurrId { get; set; }   //编码
        /// <summary>
        /// 供应商
        /// </summary>
        public string FSupplierId { get; set; }     //编码
        /// <summary>
        /// 汇率类型
        /// </summary>
        public string FExchangeTypeId { get; set; }
        /// <summary>
        /// 汇率
        /// </summary>
        public string FExchangeRate { get; set; } = "1";
        /// <summary>
        /// 采购数量
        /// </summary>
        public string FRemainInStockQty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public string FPrice { get; set; }
        /// <summary>
        /// 定价时点
        /// </summary>
        public string FPriceTimePoint { get; set; }
        /// <summary>
        /// 付款条件
        /// </summary>
        public string FPayConditionId { get; set; }     //编码
        /// <summary>
        /// 本位币
        /// </summary>
        public string FLocalCurrId { get; set; }    //编码
        /// <summary>
        /// 含税单价
        /// </summary>
        public string FTaxPrice { get; set; }
        /// <summary>
        /// 税率(%)
        /// </summary>
        public string FEntryTaxRate { get; set; }= "0";
        /// <summary>
        /// 是否赠品
        /// </summary>
        public bool FGiveAway { get; set; }=false;
        /// <summary>
        /// 采购组织
        /// </summary>
        public string FPurchaseOrgId { get; set; }
        /// <summary>
        /// 产品类型
        /// </summary>
        public string FRowType { get; set; }
        /// <summary>
        /// 基本单位  (必填项)
        /// </summary>
        public string FBaseUnitNumber { get; set; } 
        /// <summary>
        /// 物料版本号
        /// </summary>
        public string MTRL_VER { get; set; }
        ///// <summary>
        ///// 老K3采购订单行号
        ///// </summary>
        //public int FK3EntryID { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Mtrl { get; set; }
        /// <summary>
        /// 单据类型  
        /// </summary>
        public string FBillTypeID { get; set; }
        /// <summary>
        /// 结算币别金额小数点位数
        /// </summary>
        public int FAMOUNTDIGITS_A { get; set; }
        /// <summary>
        /// 本位币金额小数点位数
        /// </summary>
        public int FAMOUNTDIGITS_B { get; set; }
        /// <summary>
        /// 净价
        /// </summary>
        public string FTaxNetPrice { get; set; }
        /// <summary>
        /// 含税
        /// </summary>
        public bool FIsIncludedTax { get; set; }
        /// <summary>
        /// 价外税
        /// </summary>
        public bool FISPRICEEXCLUDETAX { get; set; }
        /// <summary>
        /// 采购分录价目表编号
        /// </summary>
        public string FPriceListEntry { get; set; }
        /// <summary>
        /// 采购员编号
        /// </summary>
        public string FPurchaserNumber {  get; set; }
    }
}
