org.kuali.kfs.module.cab.document.service
Interface PurApLineService

All Known Implementing Classes:
PurApLineServiceImpl

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

allocateLinesHasDifferentObjectSubTypes

boolean allocateLinesHasDifferentObjectSubTypes(List<PurchasingAccountsPayableItemAsset> targetLines,
                                                PurchasingAccountsPayableItemAsset sourceLine)
Check the payments in given asset lines have different object sub types.

Parameters:
selectedLines -
Returns:

mergeLinesHasDifferentObjectSubTypes

boolean mergeLinesHasDifferentObjectSubTypes(List<PurchasingAccountsPayableItemAsset> mergeLines)
Check the payments in given asset lines have different object sub types.

Parameters:
selectedLines -
Returns:

processPercentPayment

void processPercentPayment(PurchasingAccountsPayableItemAsset itemAsset,
                           List<PurchasingAccountsPayableActionHistory> actionsTaken)
Changes percent quantities to a quantity of 1 for selected line item.

Parameters:
itemAsset - Selected line item.
actionsTake - Action taken history.

processSplit

void processSplit(PurchasingAccountsPayableItemAsset splitItemAsset,
                  List<PurchasingAccountsPayableActionHistory> actionsTakeHistory)
Split the selected line item quantity and create a new line item.

Parameters:
itemAsset - Selected line item.
actionsTaken - Action taken history.

processSaveBusinessObjects

void processSaveBusinessObjects(List<PurchasingAccountsPayableDocument> purApDocs,
                                PurApLineSession purApLineSession)
Save purApDoc, item assets and account lines for persistence

Parameters:
purApDocs -
purApLineSession -

buildPurApItemAssetList

void buildPurApItemAssetList(List<PurchasingAccountsPayableDocument> purApDocs)
Build PurAp document collection and line item collection.

Parameters:
purApDocs -

processAllocate

boolean processAllocate(PurchasingAccountsPayableItemAsset selectedLineItem,
                        List<PurchasingAccountsPayableItemAsset> allocateTargetLines,
                        List<PurchasingAccountsPayableActionHistory> actionsTakeHistory,
                        List<PurchasingAccountsPayableDocument> purApDocs,
                        boolean initiateFromBatch)
Handle additional charge allocate in the same document.

Parameters:
selectedLineItem -
allocateTargetLines -
purApLineSession -
purApDocs -
Returns:

getAllocateTargetLines

List<PurchasingAccountsPayableItemAsset> getAllocateTargetLines(PurchasingAccountsPayableItemAsset selectedLineItem,
                                                                List<PurchasingAccountsPayableDocument> purApDocs)
Get the target lines based on allocation line type

Parameters:
selectedLineItem -
purApDocs -
Returns:

getSelectedMergeLines

List<PurchasingAccountsPayableItemAsset> getSelectedMergeLines(boolean isMergeAll,
                                                               List<PurchasingAccountsPayableDocument> purApDocs)
Get the selected merge lines.

Parameters:
isMergeAll -
purApDocs -
Returns:

resetSelectedValue

void resetSelectedValue(List<PurchasingAccountsPayableDocument> purApDocs)
Reset selectedValue for all line items

Parameters:
purApDocs -

processMerge

void processMerge(List<PurchasingAccountsPayableItemAsset> mergeLines,
                  List<PurchasingAccountsPayableActionHistory> actionsTakeHistory,
                  boolean isMergeAll)
Merge line items.

Parameters:
mergeLines -
purApLineSession -
isMergeAll -

isMergeAllAction

boolean isMergeAllAction(List<PurchasingAccountsPayableDocument> purApDocs)
Check if the merge action is merge all.

Parameters:
purApDocs -
Returns:

isAdditionalChargePending

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.

Parameters:
itemAssets -
Returns:

isTradeInIndExistInSelectedLines

boolean isTradeInIndExistInSelectedLines(List<PurchasingAccountsPayableItemAsset> itemAssets)
Check if there is TI indicator exists in the given itemAssets List.

Parameters:
itemAssets -
Returns:

isTradeInAllowanceExist

boolean isTradeInAllowanceExist(List<PurchasingAccountsPayableDocument> purApDocs)
Check if there is trade-in allowance not allocated yet.

Parameters:
purApDocs -
Returns:

isAdditionalChargeExistInAllLines

boolean isAdditionalChargeExistInAllLines(List<PurchasingAccountsPayableDocument> purApDocs)
Check if there is additional charge line exist in all lines.

Parameters:
purApDocs -
Returns:

getPreTagLineItem

Pretag getPreTagLineItem(Integer purchaseOrderIdentifier,
                         Integer lineItemNumber)
Get preTag if exists for give line item.

Parameters:
purchaseOrderIdentifier -
lineItemNumber -
Returns:

conditionallyUpdateDocumentStatusAsProcessed

void conditionallyUpdateDocumentStatusAsProcessed(PurchasingAccountsPayableDocument selectedDoc)
In-activate document when all the associated items are inactive.

Parameters:
selectedDoc -

isMultipleTagExisting

boolean isMultipleTagExisting(Integer purchaseOrderIdentifier,
                              Set<Integer> itemLineNumbers)
Check if more than one pre-tagging exists for given itemLineNumber and PO_ID.

Parameters:
purchaseOrderIdentifier -
itemLineNumbers -
Returns:

isPretaggingExisting

boolean isPretaggingExisting(Pretag newTag)
Check pretag existing

Parameters:
newTag -
Returns:


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.