|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.cab.document.service.impl.PurApLineDocumentServiceImpl
public class PurApLineDocumentServiceImpl
This class provides default implementations of PurApLineService
Field Summary | |
---|---|
static String |
DOCUMENT_DESC_PREFIX
|
Constructor Summary | |
---|---|
PurApLineDocumentServiceImpl()
|
Method Summary | |
---|---|
protected boolean |
checkBuildingCodeValid(String campusCode,
String buildingCode)
Check the given buildingCode and campusCode valid. |
protected boolean |
checkBuildingRoomNumberValid(String campusCode,
String buildingCode,
String buildingRoomNumber)
Check the given buildingCode and campusCode valid. |
protected boolean |
checkCampusCodeValid(String campusCode)
check the given campus code existing and active status. |
protected boolean |
checkCapitalAssetTypeCodeExist(String capitalAssetTypeCode)
check the given capital asset type code exists in CAM |
protected void |
conditionalyUpdateDocumentStatusAsEnroute(PurchasingAccountsPayableDocument selectedDoc)
set doc status as enroute when all its items are in CAMs |
protected AssetGlobal |
createAssetGlobal(PurchasingAccountsPayableItemAsset selectedItem,
String documentNumber,
Pretag preTag,
Integer requisitionIdentifier)
Create AssetGlobal BO and feed data from pre-asset tagging table. |
protected void |
createAssetPaymentAssetDetails(List assetPaymentAssetDetails,
PurchasingAccountsPayableItemAsset selectedItem,
String documentNumber)
Create AssetPaymentAssetDetail List for assetPaymentDocument. |
protected void |
createAssetPaymentDetails(List<AssetPaymentDetail> assetPaymentList,
PurchasingAccountsPayableItemAsset selectedItem,
String documentNumber,
Integer requisitionIdentifier)
Build asset payment details list for new asset global document. |
protected PurchaseOrderCapitalAssetSystem |
findCapitalAssetSystem(Integer capitalAssetSystemIdentifier)
Get PurAp PurchaseOrderCapitalAssetSystem Object if exists. |
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute. |
org.kuali.rice.kns.service.DocumentService |
getDocumentService()
Gets the documentService attribute. |
protected List<GeneralLedgerEntry> |
getGlEntryInActivedList(PurchasingAccountsPayableItemAsset selectedItem)
Update GL Entry status as "enroute" if all its amount are consumed by submit CAMs document.Return the general ledger entry changes as a list. |
PurApInfoService |
getPurApInfoService()
Gets the purApInfoService attribute. |
PurApLineService |
getPurApLineService()
Gets the purApLineService attribute. |
protected void |
inActivateItem(PurchasingAccountsPayableItemAsset selectedItem)
In-activate item, item Account and generalLedgerEntry active indicator. |
protected void |
inActivatePreTag(Pretag preTag)
In-activate preTag if all its preTagDetail entry are inactive. |
protected boolean |
isAssetNumberValid(Long capitalAssetNumber)
Check the asset table if given capitalAssetNumber is valid or not. |
protected boolean |
isItemFullyPretagged(Pretag preTag,
AssetGlobal assetGlobal)
Check if the all new assets get pre-tagged by pre-tagging. |
protected boolean |
isItemPretagged(Pretag preTag)
check if item is pre-tagged already. |
protected void |
postProcessCreatingDocument(PurchasingAccountsPayableItemAsset selectedItem,
List<PurchasingAccountsPayableDocument> purApDocs,
PurApLineSession purApLineSession,
String documentNumber)
Process item line, cab document after creating CAMs document. |
String |
processApplyPayment(PurchasingAccountsPayableItemAsset selectedItem,
List<PurchasingAccountsPayableDocument> purApDocs,
PurApLineSession purApLineSession,
Integer requisitionIdentifer)
Create CAMS asset payment document. |
String |
processCreateAsset(PurchasingAccountsPayableItemAsset selectedItem,
List<PurchasingAccountsPayableDocument> purApDocs,
PurApLineSession purApLineSession,
Integer requisitionIdentifier)
Create CAMs asset global document. |
protected String |
replaceFiller(String val)
|
protected void |
setAssetDetailFromPreTag(Pretag preTag,
List<AssetGlobalDetail> assetSharedDetails,
List<AssetGlobalDetail> assetUniqueDetails)
Feeding data into assetGlobalDetail list from preTagDetail |
protected void |
setAssetGlobalDetailFromPurAp(PurchaseOrderCapitalAssetSystem capitalAssetSystem,
List<AssetGlobalDetail> assetSharedDetail)
Set asset global detail location information from PurAp input. |
protected void |
setAssetGlobalDetails(PurchasingAccountsPayableItemAsset selectedItem,
AssetGlobal assetGlobal,
Pretag preTag,
PurchaseOrderCapitalAssetSystem capitalAssetSystem)
Build asset details/shared details/unique details lists for new asset global document |
protected void |
setAssetGlobalFromPreTag(Pretag preTag,
AssetGlobal assetGlobal)
Feeding data from preTag and set into asset global for shared information. |
protected void |
setAssetGlobalFromPurAp(AssetGlobal assetGlobal,
PurchaseOrderCapitalAssetSystem capitalAssetSystem)
Set asset information from PurAp PurchaseOrderCapitalAssetSystem. |
protected void |
setAssetGlobalOrgOwnerAccount(AssetGlobal assetGlobal)
Set Asset Global org owner account and chart code. |
void |
setAssetGlobalService(AssetGlobalService assetGlobalService)
|
protected void |
setAssetGlobalTotalCost(AssetGlobal assetGlobal)
Set Asset Global total cost amount. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
Sets the documentService attribute value. |
protected void |
setNewAssetByPurApLocation(CapitalAssetLocation assetLocation,
AssetGlobalDetail assetDetail)
Set asset global detail by PurAp asset location. |
protected void |
setOrgInventoryNameForAssetDetail(List<AssetGlobalDetail> assetGlobalDetails,
PurchaseOrderDocument purApdocument)
Set organization inventory name for each asset detail by PO Contact name or if empty, by Requestor Name. |
void |
setPurApInfoService(PurApInfoService purApInfoService)
Sets the purApInfoService attribute value. |
void |
setPurApLineService(PurApLineService purApLineService)
Sets the purApLineService attribute value. |
protected void |
updateGlEntrySubmitAmount(PurchasingAccountsPayableItemAsset selectedItem,
List glEntryList)
Update transactionLedgerSubmitAmount in the associated generalLedgerEntry for each item account. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DOCUMENT_DESC_PREFIX
Constructor Detail |
---|
public PurApLineDocumentServiceImpl()
Method Detail |
---|
public String processApplyPayment(PurchasingAccountsPayableItemAsset selectedItem, List<PurchasingAccountsPayableDocument> purApDocs, PurApLineSession purApLineSession, Integer requisitionIdentifer) throws org.kuali.rice.kew.exception.WorkflowException
PurApLineDocumentService
processApplyPayment
in interface PurApLineDocumentService
org.kuali.rice.kew.exception.WorkflowException
PurApLineDocumentService.processApplyPayment(PurchasingAccountsPayableItemAsset,
List, PurApLineSession, Integer)
protected void createAssetPaymentAssetDetails(List assetPaymentAssetDetails, PurchasingAccountsPayableItemAsset selectedItem, String documentNumber)
assetPaymentAssetDetails
- selectedItem
- documentNumber
- protected boolean isAssetNumberValid(Long capitalAssetNumber)
capitalAssetNumber
-
public String processCreateAsset(PurchasingAccountsPayableItemAsset selectedItem, List<PurchasingAccountsPayableDocument> purApDocs, PurApLineSession purApLineSession, Integer requisitionIdentifier) throws org.kuali.rice.kew.exception.WorkflowException
PurApLineDocumentService
processCreateAsset
in interface PurApLineDocumentService
org.kuali.rice.kew.exception.WorkflowException
org.kuali.kfs.module.cab.document.service.PurApLineService#processCreateAsset(org.kuali.kfs.module.cab.businessobject.PurchasingAccountsPayableItemAsset,
org.kuali.kfs.module.cab.document.web.struts.PurApLineForm)
protected void postProcessCreatingDocument(PurchasingAccountsPayableItemAsset selectedItem, List<PurchasingAccountsPayableDocument> purApDocs, PurApLineSession purApLineSession, String documentNumber)
selectedItem
- purApForm
- purApLineSession
- documentNumber
- protected void conditionalyUpdateDocumentStatusAsEnroute(PurchasingAccountsPayableDocument selectedDoc)
selectedDoc
- protected void updateGlEntrySubmitAmount(PurchasingAccountsPayableItemAsset selectedItem, List glEntryList)
selectedItem
- protected void setAssetGlobalDetails(PurchasingAccountsPayableItemAsset selectedItem, AssetGlobal assetGlobal, Pretag preTag, PurchaseOrderCapitalAssetSystem capitalAssetSystem)
selectedItem
- newDocument
- assetGlobal
- protected boolean isItemFullyPretagged(Pretag preTag, AssetGlobal assetGlobal)
preTag
- assetGlobal
-
protected void setAssetGlobalDetailFromPurAp(PurchaseOrderCapitalAssetSystem capitalAssetSystem, List<AssetGlobalDetail> assetSharedDetail)
capitalAssetSystem
- assetDetailsList
- protected void setNewAssetByPurApLocation(CapitalAssetLocation assetLocation, AssetGlobalDetail assetDetail)
assetLocation
- assetDetail
- protected boolean checkBuildingRoomNumberValid(String campusCode, String buildingCode, String buildingRoomNumber)
campusCode
- buildingCode
- buildingRoomNumber
-
protected boolean checkBuildingCodeValid(String campusCode, String buildingCode)
buildingCode
-
protected boolean checkCampusCodeValid(String campusCode)
campusCode
-
protected void setAssetDetailFromPreTag(Pretag preTag, List<AssetGlobalDetail> assetSharedDetails, List<AssetGlobalDetail> assetUniqueDetails)
preTag
- assetDetailsList
- protected void inActivatePreTag(Pretag preTag)
preTag
- protected void createAssetPaymentDetails(List<AssetPaymentDetail> assetPaymentList, PurchasingAccountsPayableItemAsset selectedItem, String documentNumber, Integer requisitionIdentifier)
selectedItem
- assetGlobal
- requisitionIdentifier
- protected void inActivateItem(PurchasingAccountsPayableItemAsset selectedItem)
selectedItem
- glEntryList
- protected List<GeneralLedgerEntry> getGlEntryInActivedList(PurchasingAccountsPayableItemAsset selectedItem)
glEntryList
- selectedAccount
- glEntry
- protected String replaceFiller(String val)
protected AssetGlobal createAssetGlobal(PurchasingAccountsPayableItemAsset selectedItem, String documentNumber, Pretag preTag, Integer requisitionIdentifier)
selectedItem
- newDocument
- preTag
-
protected void setOrgInventoryNameForAssetDetail(List<AssetGlobalDetail> assetGlobalDetails, PurchaseOrderDocument purApdocument)
assetGlobalDetails
- purApdocument
- protected boolean isItemPretagged(Pretag preTag)
preTag
-
protected void setAssetGlobalFromPurAp(AssetGlobal assetGlobal, PurchaseOrderCapitalAssetSystem capitalAssetSystem)
assetGlobal
- capitalAssetSystem
- protected boolean checkCapitalAssetTypeCodeExist(String capitalAssetTypeCode)
capitalAssetTypeCode
-
protected PurchaseOrderCapitalAssetSystem findCapitalAssetSystem(Integer capitalAssetSystemIdentifier)
capitalAssetSystemIdentifier
-
protected void setAssetGlobalOrgOwnerAccount(AssetGlobal assetGlobal)
assetGlobal
- protected void setAssetGlobalTotalCost(AssetGlobal assetGlobal)
assetGlobal
- protected void setAssetGlobalFromPreTag(Pretag preTag, AssetGlobal assetGlobal)
preTag
- assetGlobal
- public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public org.kuali.rice.kns.service.DocumentService getDocumentService()
public void setDocumentService(org.kuali.rice.kns.service.DocumentService documentService)
documentService
- The documentService to set.public PurApLineService getPurApLineService()
public void setPurApLineService(PurApLineService purApLineService)
purApLineService
- The purApLineService to set.public PurApInfoService getPurApInfoService()
public void setPurApInfoService(PurApInfoService purApInfoService)
purApInfoService
- The purApInfoService to set.public void setAssetGlobalService(AssetGlobalService assetGlobalService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |