|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.module.cam.document.service.impl.AssetTransferServiceImpl
public class AssetTransferServiceImpl
Nested Class Summary | |
---|---|
protected static class |
AssetTransferServiceImpl.AmountCategory
|
Constructor Summary | |
---|---|
AssetTransferServiceImpl()
|
Method Summary | |
---|---|
protected AssetGlpeSourceDetail |
createAssetGlpePostable(AssetTransferDocument document,
Account plantAccount,
AssetPayment assetPayment,
boolean isSource,
AssetTransferServiceImpl.AmountCategory amountCategory)
Creates an instance of AssetGlpeSourceDetail depending on the source flag |
void |
createGLPostables(AssetTransferDocument document)
Creates GL Postables using the source plant account number and target plant account number |
protected Integer |
createNewPayments(AssetTransferDocument document,
List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistableObjects,
List<AssetPayment> originalPayments,
Integer maxSequence)
Creates new payment records for new organization account |
protected Integer |
createOffsetPayments(AssetTransferDocument document,
List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistableObjects,
List<AssetPayment> originalPayments)
Creates offset payment copying the details from original payments and reversing the amounts |
protected void |
createSourceGLPostables(AssetTransferDocument document,
List<AssetPayment> assetPayments,
boolean movableAsset)
Creates GL Postables for the source organization |
protected void |
createTargetGLPostables(AssetTransferDocument document,
List<AssetPayment> assetPayments,
boolean movableAsset)
Creates target GL Postable for the receiving organization |
AssetLocationService |
getAssetLocationService()
Gets the assetLocationService attribute. |
AssetObjectCodeService |
getAssetObjectCodeService()
|
AssetPaymentService |
getAssetPaymentService()
|
AssetService |
getAssetService()
|
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
|
org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
UniversityDateService |
getUniversityDateService()
|
protected boolean |
isGLPostable(AssetTransferDocument document,
Asset asset,
boolean movableAsset)
Checks if it is ready for GL Posting by validating the accounts and plant account numbers |
void |
saveApprovedChanges(AssetTransferDocument document)
This method is called when the work flow document is reached its final approval Gets the latest asset details from DB Save asset owner data Save location changes Save organization changes Create offset payments Create new payments Update original payments |
protected void |
saveAssetOwnerData(AssetTransferDocument document,
Asset saveAsset)
Updates organization data for the asset |
protected void |
saveLocationChanges(AssetTransferDocument document,
Asset saveAsset)
Updates location details to the asset |
protected void |
saveOrganizationChanges(AssetTransferDocument document,
Asset saveAsset)
Updates organization changes |
void |
setAssetLocationService(AssetLocationService assetLocationService)
Sets the assetLocationService attribute. |
void |
setAssetObjectCodeService(AssetObjectCodeService assetObjectCodeService)
|
void |
setAssetPaymentService(AssetPaymentService assetPaymentService)
|
void |
setAssetService(AssetService assetService)
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setUniversityDateService(UniversityDateService universityDateService)
|
protected void |
updateOriginalPayments(List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistableObjects,
List<AssetPayment> originalPayments)
Updates original payment records |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetTransferServiceImpl()
Method Detail |
---|
protected AssetGlpeSourceDetail createAssetGlpePostable(AssetTransferDocument document, Account plantAccount, AssetPayment assetPayment, boolean isSource, AssetTransferServiceImpl.AmountCategory amountCategory)
universityDateService
- University Date ServiceplantAccount
- Plant account for the organizationassetPayment
- Payment record for which postable is createdisSource
- Indicates if postable is for source organization
public void createGLPostables(AssetTransferDocument document)
AssetTransferService
createGLPostables
in interface AssetTransferService
AssetTransferService.createGLPostables(org.kuali.kfs.module.cam.document.AssetTransferDocument)
protected Integer createNewPayments(AssetTransferDocument document, List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistableObjects, List<AssetPayment> originalPayments, Integer maxSequence)
document
- Current documentpersistableObjects
- Saved objects listoriginalPayments
- Original payments for the assetmaxSequence
- Payment sequence number
protected Integer createOffsetPayments(AssetTransferDocument document, List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistableObjects, List<AssetPayment> originalPayments)
document
- Current DocumentpersistableObjects
- List of update objectsoriginalPayments
- Original list of payments
protected void createSourceGLPostables(AssetTransferDocument document, List<AssetPayment> assetPayments, boolean movableAsset)
universityDateService
- University Date Service to get the current fiscal year and periodassetPayments
- Payments for which GL entries needs to be createdprotected void createTargetGLPostables(AssetTransferDocument document, List<AssetPayment> assetPayments, boolean movableAsset)
universityDateService
- University Date Service to get the current fiscal year and periodassetPayments
- Payments for which GL entries needs to be createdpublic AssetPaymentService getAssetPaymentService()
public AssetService getAssetService()
public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public UniversityDateService getUniversityDateService()
protected boolean isGLPostable(AssetTransferDocument document, Asset asset, boolean movableAsset)
public void saveApprovedChanges(AssetTransferDocument document)
AssetTransferService
saveApprovedChanges
in interface AssetTransferService
AssetTransferService.saveApprovedChanges(org.kuali.kfs.module.cam.document.AssetTransferDocument)
protected void saveAssetOwnerData(AssetTransferDocument document, Asset saveAsset)
document
- Current documentsaveAsset
- Assetprotected void saveLocationChanges(AssetTransferDocument document, Asset saveAsset)
document
- Current documentsaveAsset
- Assetprotected void saveOrganizationChanges(AssetTransferDocument document, Asset saveAsset)
document
- Current documentsaveAsset
- Assetpublic void setAssetPaymentService(AssetPaymentService assetPaymentService)
public void setAssetService(AssetService assetService)
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
public void setUniversityDateService(UniversityDateService universityDateService)
protected void updateOriginalPayments(List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistableObjects, List<AssetPayment> originalPayments)
persistableObjects
- List of saveable objectsoriginalPayments
- Original payments listpublic AssetObjectCodeService getAssetObjectCodeService()
public void setAssetObjectCodeService(AssetObjectCodeService assetObjectCodeService)
public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public AssetLocationService getAssetLocationService()
public void setAssetLocationService(AssetLocationService assetLocationService)
assetLocationService
- The assetLocationService to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |