Interface Basket

    • Method Detail

      • setBasketOrderConsistency

        void setBasketOrderConsistency​(BasketOrderConsistency basketOrderConsistency)
        Injects the basketOrderConsisteny into the basket
        Parameters:
        basketOrderConsistency - consistency manager
      • read

        void read​(boolean force)
           throws CommunicationException
        Reads the sales document. The back-end call happens if considered as necessary or if forced. The method also checks the BasketOrderConsistency and can trigger an update before the read happens.
        Specified by:
        read in interface SalesDocument
        Parameters:
        force - If true, then read even if not considered as necessary
        Throws:
        CommunicationException - in case back-end error
      • calculateTotalQuantity

        java.math.BigDecimal calculateTotalQuantity()
        Returns:
        the total quantity of the products in basket