Class OrderEntryReturnedQuantityHandler

    • Constructor Detail

      • OrderEntryReturnedQuantityHandler

        public OrderEntryReturnedQuantityHandler()
    • Method Detail

      • get

        public java.lang.Long get​(OrderEntryModel orderEntry)
        Calculates the number of items that were returned for a refund. This means that these items cannot be returned a second time. Replacements are not part of this calculation since it is possible to replace the same item multiple times, while this is not the case for refunds.
        Specified by:
        get in interface DynamicAttributeHandler<java.lang.Long,​OrderEntryModel>
        Parameters:
        orderEntry - model for which dynamic attribute is declared.
        Returns:
        computed value.
      • set

        public void set​(OrderEntryModel orderEntry,
                        java.lang.Long quantity)
        Description copied from interface: DynamicAttributeHandler
        Holds logic behind setter for dynamic attribute.
        Specified by:
        set in interface DynamicAttributeHandler<java.lang.Long,​OrderEntryModel>
        Parameters:
        orderEntry - model for which dynamic attribute is declared.
        quantity - the value which will be used by setter logic.
      • setOrderEntryQuantityService

        public void setOrderEntryQuantityService​(OrderEntryQuantityService orderEntryQuantityService)