Class LineItemHelper

Object
LineItemHelper
Direct Known Subclasses:
ContractHelper, QuoteHelper, RebateAgreementHelper

public class LineItemHelper extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getFlattedInputs

      public static List<Map<String,Object>> getFlattedInputs(List<Map<String,Object>> inputs)
    • lineItemFromMap

      public LineItemHelper.LineItem lineItemFromMap(Map<String,Object> lineItemMap)
      Creates the LineItem object from the given map. The structure of the map can be found, for example, when reviewing the result of quoteProcessor.getQuoteView()
      Parameters:
      lineItemMap -
      Returns:
    • findByLineId

      public LineItemHelper.LineItem findByLineId(String lineItemId)
    • getRoot

      public LineItemHelper.LineItem getRoot()
    • findAllWithLabel

      public List<LineItemHelper.LineItem> findAllWithLabel(String label)
    • getItemsForReview

      protected List<LineItemHelper.LineItem> getItemsForReview()
      This method returns line items that have an active review assignment for the current user's group

      This method filters all line items to find those that have an active review assignment for the current user group. A line item is considered "for review" when it has a review entry with matching userGroupName and isInReview=true.

      Returns:
      List of LineItem objects for items in the current user's review scope, or empty list if not in review or no items are assigned