public ProductVolumeDiscount()
 {
     this.Bvin         = string.Empty;
     this.StoreId      = 0;
     this.LastUpdated  = DateTime.UtcNow;
     this.ProductId    = string.Empty;
     this.Qty          = -1;
     this.Amount       = 0m;
     this.DiscountType = ProductVolumeDiscountType.None;
 }
 public ProductVolumeDiscount()
 {
     this.Bvin = string.Empty;
     this.StoreId = 0;
     this.LastUpdated = DateTime.UtcNow;
     this.ProductId = string.Empty;
     this.Qty = -1;
     this.Amount = 0m;
     this.DiscountType = ProductVolumeDiscountType.None;
 }
        public void FromDto(ProductVolumeDiscountDTO dto)
        {
            if (dto == null) return;

            this.Amount = dto.Amount;
            this.StoreId = dto.StoreId;
            this.Bvin = dto.Bvin ?? string.Empty;
            this.DiscountType = (ProductVolumeDiscountType)((int)dto.DiscountType);
            this.LastUpdated = dto.LastUpdated;
            this.ProductId = dto.ProductId ?? string.Empty;
            this.Qty = dto.Qty;
        }	
        public void FromDto(ProductVolumeDiscountDTO dto)
        {
            if (dto == null)
            {
                return;
            }

            this.Amount       = dto.Amount;
            this.StoreId      = dto.StoreId;
            this.Bvin         = dto.Bvin ?? string.Empty;
            this.DiscountType = (ProductVolumeDiscountType)((int)dto.DiscountType);
            this.LastUpdated  = dto.LastUpdated;
            this.ProductId    = dto.ProductId ?? string.Empty;
            this.Qty          = dto.Qty;
        }