Ejemplo n.º 1
0
        public OnixLegacySupplyDetail()
        {
            SupplierName        = "";
            ReturnsCodeType     = "";
            ReturnsCode         = "";
            LastDateForReturns  = "";
            AvailabilityCode    = "";
            ProductAvailability = "";
            ExpectedShipDate    = "";
            OnSaleDate          = "";
            PackQuantity        = "";

            supplierIdentifierField = shortSupplierIdentifierField = new OnixLegacySupplierId[0];
            priceField = shortPriceField = new OnixLegacyPrice[0];
        }
Ejemplo n.º 2
0
        public bool HasUSDPrice()
        {
            bool bHasUSDPrice = false;

            if ((this.OnixPriceList != null) && (this.OnixPriceList.Length > 0))
            {
                OnixLegacyPrice[] Prices = this.OnixPriceList;

                OnixLegacyPrice USDPrice =
                    Prices.Where(x => x.HasSoughtRetailPriceType() && (x.CurrencyCode == "USD")).FirstOrDefault();

                bHasUSDPrice = (USDPrice != null) && (USDPrice.PriceAmountNum >= 0);
            }

            return(bHasUSDPrice);
        }