|
||||||||||
| 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.AssetRetirementServiceImpl
public class AssetRetirementServiceImpl
| Nested Class Summary | |
|---|---|
protected static class |
AssetRetirementServiceImpl.AmountCategory
|
| Constructor Summary | |
|---|---|
AssetRetirementServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
createGLPostables(AssetRetirementGlobal assetRetirementGlobal,
CamsGeneralLedgerPendingEntrySourceBase assetRetirementGlPoster)
Creates GL Postables |
protected void |
createNewPostable(AssetRetirementServiceImpl.AmountCategory category,
Asset asset,
AssetPayment assetPayment,
String documentNumber,
Account plantAccount,
List<GeneralLedgerPendingEntrySourceDetail> postables)
This method creates one postable and sets the values. |
String |
generateCalculatedTotal(String salePrice,
String handlingFeeAmount,
String preventiveMaintenanceAmount)
This method generates the calculatedTotal amount based on salePrice + handlingFeeAmount + preventiveMaintenanceAmount. |
protected List<GeneralLedgerPendingEntrySourceDetail> |
generateGlPostablesForOnePayment(String documentNumber,
CamsGeneralLedgerPendingEntrySourceBase assetRetirementGlPoster,
Asset asset,
AssetPayment assetPayment)
Generate a collection of Postables for each payment. |
Integer |
generateNewPaymentForTarget(Asset targetAsset,
Asset sourceAsset,
List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables,
Integer maxSequenceNo,
String currentDocumentNumber)
This method generates new payments from sourceAsset for targetAsset. |
void |
generateOffsetPaymentsForEachSource(Asset sourceAsset,
List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables,
String currentDocumentNumber)
This method generates offset payments for each sourceAsset. |
protected AssetObjectCode |
getAssetObjectCode(Asset asset,
AssetPayment assetPayment)
|
AssetObjectCodeService |
getAssetObjectCodeService()
|
AssetPaymentService |
getAssetPaymentService()
|
String |
getAssetRetirementReasonName(AssetRetirementGlobal assetRetirementGlobal)
|
AssetService |
getAssetService()
|
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
|
ObjectCode |
getOffsetFinancialObject(String chartOfAccountsCode)
Get the offset Object Code. |
org.kuali.rice.kns.service.ParameterService |
getParameterService()
|
protected Account |
getPlantFundAccount(Asset asset,
AssetPayment payment)
Get the corresponding Plant Fund Account object based on the payment's financialObjectSubTypeCode. |
UniversityDateService |
getUniversityDateService()
|
boolean |
isAllowedRetireMultipleAssets(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
Check if the retirement reason code allows to retire multiple assets |
boolean |
isAssetRetiredByAuction(AssetRetirementGlobal assetRetirementGlobal)
|
boolean |
isAssetRetiredByExternalTransferOrGift(AssetRetirementGlobal assetRetirementGlobal)
|
boolean |
isAssetRetiredByMerged(AssetRetirementGlobal assetRetirementGlobal)
|
boolean |
isAssetRetiredBySold(AssetRetirementGlobal assetRetirementGlobal)
|
boolean |
isAssetRetiredByTheft(AssetRetirementGlobal assetRetirementGlobal)
|
boolean |
isRetirementReasonCodeInGroup(String reasonCodeGroup,
String reasonCode)
Check if reasonCode is in reasonCodeGroup |
void |
setAssetObjectCodeService(AssetObjectCodeService assetObjectCodeService)
|
void |
setAssetPaymentService(AssetPaymentService assetPaymentService)
|
void |
setAssetService(AssetService assetService)
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setUniversityDateService(UniversityDateService universityDateService)
|
protected org.kuali.rice.kns.util.KualiDecimal |
toKualiDecimal(String amount)
This method converts a String to a KualiDecimal via Double. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssetRetirementServiceImpl()
| Method Detail |
|---|
public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public AssetService getAssetService()
public void setAssetService(AssetService assetService)
public UniversityDateService getUniversityDateService()
public void setUniversityDateService(UniversityDateService universityDateService)
public AssetObjectCodeService getAssetObjectCodeService()
public void setAssetObjectCodeService(AssetObjectCodeService assetObjectCodeService)
public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
public AssetPaymentService getAssetPaymentService()
public void setAssetPaymentService(AssetPaymentService assetPaymentService)
public boolean isAssetRetiredByAuction(AssetRetirementGlobal assetRetirementGlobal)
isAssetRetiredByAuction in interface AssetRetirementServiceorg.kuali.kfs.module.cam.document.service.AssetRetirementService#isAssetRetiredBySoldOrAuction(org.kuali.kfs.module.cam.businessobject.AssetRetirementGlobal)public boolean isAssetRetiredBySold(AssetRetirementGlobal assetRetirementGlobal)
isAssetRetiredBySold in interface AssetRetirementServiceAssetRetirementService.isAssetRetiredBySold(org.kuali.kfs.module.cam.businessobject.AssetRetirementGlobal)public boolean isAssetRetiredByExternalTransferOrGift(AssetRetirementGlobal assetRetirementGlobal)
isAssetRetiredByExternalTransferOrGift in interface AssetRetirementServiceAssetRetirementService.isAssetRetiredByExternalTransferOrGift(org.kuali.kfs.module.cam.businessobject.AssetRetirementGlobal)public boolean isAssetRetiredByMerged(AssetRetirementGlobal assetRetirementGlobal)
isAssetRetiredByMerged in interface AssetRetirementServiceAssetRetirementService.isAssetRetiredByMerged(org.kuali.kfs.module.cam.businessobject.AssetRetirementGlobal)public boolean isAssetRetiredByTheft(AssetRetirementGlobal assetRetirementGlobal)
isAssetRetiredByTheft in interface AssetRetirementServiceAssetRetirementService.isAssetRetiredByTheft(org.kuali.kfs.module.cam.businessobject.AssetRetirementGlobal)public String getAssetRetirementReasonName(AssetRetirementGlobal assetRetirementGlobal)
getAssetRetirementReasonName in interface AssetRetirementServiceAssetRetirementService.getAssetRetirementReasonName(org.kuali.kfs.module.cam.businessobject.AssetRetirementGlobal)
public void generateOffsetPaymentsForEachSource(Asset sourceAsset,
List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables,
String currentDocumentNumber)
AssetRetirementService
generateOffsetPaymentsForEachSource in interface AssetRetirementServiceAssetRetirementService.generateOffsetPaymentsForEachSource(org.kuali.kfs.module.cam.businessobject.Asset,
java.util.List, java.lang.String)
public Integer generateNewPaymentForTarget(Asset targetAsset,
Asset sourceAsset,
List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables,
Integer maxSequenceNo,
String currentDocumentNumber)
AssetRetirementService
generateNewPaymentForTarget in interface AssetRetirementServiceAssetRetirementService.generateNewPaymentForTarget(org.kuali.kfs.module.cam.businessobject.Asset,
org.kuali.kfs.module.cam.businessobject.Asset, java.util.List, java.lang.Integer, java.lang.String)
public boolean isRetirementReasonCodeInGroup(String reasonCodeGroup,
String reasonCode)
AssetRetirementService
isRetirementReasonCodeInGroup in interface AssetRetirementServiceAssetRetirementService.isRetirementReasonCodeInGroup(java.lang.String,
java.lang.String)public boolean isAllowedRetireMultipleAssets(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
AssetRetirementService
isAllowedRetireMultipleAssets in interface AssetRetirementServiceorg.kuali.kfs.module.cam.document.service.AssetRetirementService#isAllowedRetireMultipleAssets(java.lang.String)
public void createGLPostables(AssetRetirementGlobal assetRetirementGlobal,
CamsGeneralLedgerPendingEntrySourceBase assetRetirementGlPoster)
AssetRetirementService
createGLPostables in interface AssetRetirementServiceorg.kuali.kfs.module.cam.document.service.AssetRetirementService#createGLPostables(org.kuali.kfs.module.cam.businessobject.AssetRetirementGlobal,
org.kuali.module.cams.gl.CamsGlPosterBase)
protected List<GeneralLedgerPendingEntrySourceDetail> generateGlPostablesForOnePayment(String documentNumber,
CamsGeneralLedgerPendingEntrySourceBase assetRetirementGlPoster,
Asset asset,
AssetPayment assetPayment)
documentNumber - assetRetirementGlPoster - asset - assetPayment -
protected void createNewPostable(AssetRetirementServiceImpl.AmountCategory category,
Asset asset,
AssetPayment assetPayment,
String documentNumber,
Account plantAccount,
List<GeneralLedgerPendingEntrySourceDetail> postables)
category - asset - assetPayment - documentNumber - plantAccount -
protected AssetObjectCode getAssetObjectCode(Asset asset,
AssetPayment assetPayment)
public ObjectCode getOffsetFinancialObject(String chartOfAccountsCode)
getOffsetFinancialObject in interface AssetRetirementServiceasset -
protected Account getPlantFundAccount(Asset asset,
AssetPayment payment)
asset - payment -
public String generateCalculatedTotal(String salePrice,
String handlingFeeAmount,
String preventiveMaintenanceAmount)
generateCalculatedTotal in interface AssetRetirementServicesalePrice - handlingFeeAmount - preventiveMaintenanceAmount -
protected org.kuali.rice.kns.util.KualiDecimal toKualiDecimal(String amount)
amount -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||