|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PurApLineService
This class declares methods used by CAB PurAp Line process
Method Summary | |
---|---|
boolean |
allocateLinesHasDifferentObjectSubTypes(List<PurchasingAccountsPayableItemAsset> targetLines,
PurchasingAccountsPayableItemAsset sourceLine)
Check the payments in given asset lines have different object sub types. |
void |
buildPurApItemAssetList(List<PurchasingAccountsPayableDocument> purApDocs)
Build PurAp document collection and line item collection. |
void |
conditionallyUpdateDocumentStatusAsProcessed(PurchasingAccountsPayableDocument selectedDoc)
In-activate document when all the associated items are inactive. |
List<PurchasingAccountsPayableItemAsset> |
getAllocateTargetLines(PurchasingAccountsPayableItemAsset selectedLineItem,
List<PurchasingAccountsPayableDocument> purApDocs)
Get the target lines based on allocation line type |
Pretag |
getPreTagLineItem(Integer purchaseOrderIdentifier,
Integer lineItemNumber)
Get preTag if exists for give line item. |
List<PurchasingAccountsPayableItemAsset> |
getSelectedMergeLines(boolean isMergeAll,
List<PurchasingAccountsPayableDocument> purApDocs)
Get the selected merge lines. |
boolean |
isAdditionalChargeExistInAllLines(List<PurchasingAccountsPayableDocument> purApDocs)
Check if there is additional charge line exist in all lines. |
boolean |
isAdditionalChargePending(List<PurchasingAccountsPayableItemAsset> itemAssets)
For line items in itemAssets if they are not in the same PurAp document, check if there is pending additional charges allocation. |
boolean |
isMergeAllAction(List<PurchasingAccountsPayableDocument> purApDocs)
Check if the merge action is merge all. |
boolean |
isMultipleTagExisting(Integer purchaseOrderIdentifier,
Set<Integer> itemLineNumbers)
Check if more than one pre-tagging exists for given itemLineNumber and PO_ID. |
boolean |
isPretaggingExisting(Pretag newTag)
Check pretag existing |
boolean |
isTradeInAllowanceExist(List<PurchasingAccountsPayableDocument> purApDocs)
Check if there is trade-in allowance not allocated yet. |
boolean |
isTradeInIndExistInSelectedLines(List<PurchasingAccountsPayableItemAsset> itemAssets)
Check if there is TI indicator exists in the given itemAssets List. |
boolean |
mergeLinesHasDifferentObjectSubTypes(List<PurchasingAccountsPayableItemAsset> mergeLines)
Check the payments in given asset lines have different object sub types. |
boolean |
processAllocate(PurchasingAccountsPayableItemAsset selectedLineItem,
List<PurchasingAccountsPayableItemAsset> allocateTargetLines,
List<PurchasingAccountsPayableActionHistory> actionsTakeHistory,
List<PurchasingAccountsPayableDocument> purApDocs,
boolean initiateFromBatch)
Handle additional charge allocate in the same document. |
void |
processMerge(List<PurchasingAccountsPayableItemAsset> mergeLines,
List<PurchasingAccountsPayableActionHistory> actionsTakeHistory,
boolean isMergeAll)
Merge line items. |
void |
processPercentPayment(PurchasingAccountsPayableItemAsset itemAsset,
List<PurchasingAccountsPayableActionHistory> actionsTaken)
Changes percent quantities to a quantity of 1 for selected line item. |
void |
processSaveBusinessObjects(List<PurchasingAccountsPayableDocument> purApDocs,
PurApLineSession purApLineSession)
Save purApDoc, item assets and account lines for persistence |
void |
processSplit(PurchasingAccountsPayableItemAsset splitItemAsset,
List<PurchasingAccountsPayableActionHistory> actionsTakeHistory)
Split the selected line item quantity and create a new line item. |
void |
resetSelectedValue(List<PurchasingAccountsPayableDocument> purApDocs)
Reset selectedValue for all line items |
Method Detail |
---|
boolean allocateLinesHasDifferentObjectSubTypes(List<PurchasingAccountsPayableItemAsset> targetLines, PurchasingAccountsPayableItemAsset sourceLine)
selectedLines
-
boolean mergeLinesHasDifferentObjectSubTypes(List<PurchasingAccountsPayableItemAsset> mergeLines)
selectedLines
-
void processPercentPayment(PurchasingAccountsPayableItemAsset itemAsset, List<PurchasingAccountsPayableActionHistory> actionsTaken)
itemAsset
- Selected line item.actionsTake
- Action taken history.void processSplit(PurchasingAccountsPayableItemAsset splitItemAsset, List<PurchasingAccountsPayableActionHistory> actionsTakeHistory)
itemAsset
- Selected line item.actionsTaken
- Action taken history.void processSaveBusinessObjects(List<PurchasingAccountsPayableDocument> purApDocs, PurApLineSession purApLineSession)
purApDocs
- purApLineSession
- void buildPurApItemAssetList(List<PurchasingAccountsPayableDocument> purApDocs)
purApDocs
- boolean processAllocate(PurchasingAccountsPayableItemAsset selectedLineItem, List<PurchasingAccountsPayableItemAsset> allocateTargetLines, List<PurchasingAccountsPayableActionHistory> actionsTakeHistory, List<PurchasingAccountsPayableDocument> purApDocs, boolean initiateFromBatch)
selectedLineItem
- allocateTargetLines
- purApLineSession
- purApDocs
-
List<PurchasingAccountsPayableItemAsset> getAllocateTargetLines(PurchasingAccountsPayableItemAsset selectedLineItem, List<PurchasingAccountsPayableDocument> purApDocs)
selectedLineItem
- purApDocs
-
List<PurchasingAccountsPayableItemAsset> getSelectedMergeLines(boolean isMergeAll, List<PurchasingAccountsPayableDocument> purApDocs)
isMergeAll
- purApDocs
-
void resetSelectedValue(List<PurchasingAccountsPayableDocument> purApDocs)
purApDocs
- void processMerge(List<PurchasingAccountsPayableItemAsset> mergeLines, List<PurchasingAccountsPayableActionHistory> actionsTakeHistory, boolean isMergeAll)
mergeLines
- purApLineSession
- isMergeAll
- boolean isMergeAllAction(List<PurchasingAccountsPayableDocument> purApDocs)
purApDocs
-
boolean isAdditionalChargePending(List<PurchasingAccountsPayableItemAsset> itemAssets)
itemAssets
-
boolean isTradeInIndExistInSelectedLines(List<PurchasingAccountsPayableItemAsset> itemAssets)
itemAssets
-
boolean isTradeInAllowanceExist(List<PurchasingAccountsPayableDocument> purApDocs)
purApDocs
-
boolean isAdditionalChargeExistInAllLines(List<PurchasingAccountsPayableDocument> purApDocs)
purApDocs
-
Pretag getPreTagLineItem(Integer purchaseOrderIdentifier, Integer lineItemNumber)
purchaseOrderIdentifier
- lineItemNumber
-
void conditionallyUpdateDocumentStatusAsProcessed(PurchasingAccountsPayableDocument selectedDoc)
selectedDoc
- boolean isMultipleTagExisting(Integer purchaseOrderIdentifier, Set<Integer> itemLineNumbers)
purchaseOrderIdentifier
- itemLineNumbers
-
boolean isPretaggingExisting(Pretag newTag)
newTag
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |