public SalesPropertiesM(SalesPropertiesM prop)
 {
     MinPrice              = prop.MinPrice;
     MaxPrice              = prop.MaxPrice;
     InstanceMultiply      = prop.InstanceMultiply;
     RecurrencePerInstance = prop.RecurrencePerInstance;
     IsBroadSale           = prop.IsBroadSale;
     DateFrom              = prop.DateFrom;
     DateTo      = prop.DateTo;
     FavourOrder = prop.FavourOrder;
 }
Exemple #2
0
        public SaleM(string title, SaleTypes type, SalesPropertiesM prop, List <ProdAmountM> Reqs,
                     List <DiscountedProductM> discounteds, DiscountM TotalDiscount = null, int index = 1, int saleID = -1)
        {
            Title  = title;
            SaleID = saleID;
            Type   = type;
            Index  = index;

            Properties  = prop;
            ReqProducts = Reqs ?? new List <ProdAmountM>();
            Discounted  = discounteds ?? new List <DiscountedProductM>();
            Discount    = TotalDiscount ?? new DiscountM(0, DiscountTypes.Nothing);
        }