Class LineItemHelper.LineItem
Object
LineItem
- Enclosing class:
LineItemHelper
This class represents either a line item or a folder of a document (e.g. quote/contract/rebate)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasMap()Provides list of all children of this folder.getInputByName(String inputName) getLabel()getOutputByName(String outputName) Gets the review status for this line item based on the current user's review context.getSKU()booleanisFolder()booleanisRoot()
-
Field Details
-
helper
-
calculableLineItemCollectionMap
-
lineItemMap
-
-
Method Details
-
asMap
-
isRoot
public boolean isRoot() -
isFolder
public boolean isFolder() -
getLabel
-
getLineId
-
getSKU
-
getRebateTypeUN
-
getContractTermTypeUN
-
getChildren
Provides list of all children of this folder.- Returns:
- List of LineItem objects, or empty list, if no children.
-
getSiblings
-
getInputs
-
getInputByName
-
getOutputByName
-
getOutputs
-
getParent
-
getSubLineItems
-
getReviewStatus
Gets the review status for this line item based on the current user's review context.The review status is determined by finding a review entry that matches:
- The current user's review user group (from ReviewContext)
- A lineItemGroupId that the current user is a member of (from ReviewContext)
- Is an active review (isInReview = true)
The status can be one of:
- UNREVIEWED - The line item has not been reviewed yet
- ACCEPTED - The line item has been accepted
- REJECTED - The line item has been rejected
- SKIPPED - The line item review was skipped
- Returns:
- The review status string, or
nullif no matching active review exists
-