Class NoSplittingStrategy

    • Constructor Detail

      • NoSplittingStrategy

        public NoSplittingStrategy()
    • Method Detail

      • source

        public void source​(SourcingContext sourcingContext)
        Description copied from interface: SourcingStrategy
        Determine which order entries/order item quantities should be sourced from which sourcing locations.
        Parameters:
        sourcingContext - - the sourcing context; cannot be null
      • isSourcingNoSplittingPossible

        protected boolean isSourcingNoSplittingPossible​(java.util.Collection<AbstractOrderEntryModel> entries,
                                                        SourcingLocation sourcingLocation)
        Check if it is possible to source.
        Parameters:
        entries - the order entries to check if it is sourceable or not.
        sourcingLocation - the destination location to test the sourcing.
        Returns:
        true if we can source the entire order from this location, otherwise false