Class DefaultCommerceAvailabilityCalculationStrategy

    • Constructor Detail

      • DefaultCommerceAvailabilityCalculationStrategy

        public DefaultCommerceAvailabilityCalculationStrategy()
    • Method Detail

      • getAvailableToSellQuantity

        protected long getAvailableToSellQuantity​(StockLevelModel stockLevel)
        Get the Available To Sell quantity for a StockLevel. Available To Sell stock consists of on-hand stock minus stock reserved for orders that have been placed and stock that have been backordered.
        Parameters:
        stockLevel - the stock level.
        Returns:
        the quantity available to sell.