Class AvailabilitySourcingLocationFilter

  • All Implemented Interfaces:
    SourcingLocationFilter

    public class AvailabilitySourcingLocationFilter
    extends AbstractBaseSourcingLocationFilter
    This filter returns a set of sourcing locations where at least one of the item in the order has available stock.
    It is NOT recommended to use this filter as the initial filter in the chain of filters due to performance reason.
    • Constructor Detail

      • AvailabilitySourcingLocationFilter

        public AvailabilitySourcingLocationFilter()
    • Method Detail

      • isWarehouseHasAvailabilityForAnyProductInOrder

        protected boolean isWarehouseHasAvailabilityForAnyProductInOrder​(AbstractOrderModel order,
                                                                         WarehouseModel warehouse)
        Given an order and a warehouse, checks if the warehouse has some availability for at least one of the products in the order.
        Parameters:
        order - - order for which to check the product stock level
        warehouse - - the warehouse to filter on stock availability
        Returns:
        true, if the warehouse has atleast one availability, for any product in the order