org.kuali.kfs.module.cam.document.service
Interface AssetRetirementService

All Known Implementing Classes:
AssetRetirementServiceImpl

public interface AssetRetirementService

The interface defines methods for Asset Document


Method Summary
 void createGLPostables(AssetRetirementGlobal assetRetirementGlobal, CamsGeneralLedgerPendingEntrySourceBase assetRetirementGlPoster)
          Creates GL Postables
 String generateCalculatedTotal(String salePrice, String handlingFeeAmount, String preventiveMaintenanceAmount)
          This method generates the calculatedTotal amount based on salePrice + handlingFeeAmount + preventiveMaintenanceAmount.
 Integer generateNewPaymentForTarget(Asset targetAsset, Asset sourceAsset, List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables, Integer maxSequenceNo, String documentNumber)
          This method generates new payments from sourceAsset for targetAsset.
 void generateOffsetPaymentsForEachSource(Asset sourceAsset, List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables, String documentNumber)
          This method generates offset payments for each sourceAsset.
 String getAssetRetirementReasonName(AssetRetirementGlobal assetRetirementGlobal)
           
 ObjectCode getOffsetFinancialObject(String chartOfAccountsCode)
          Get the offset Object Code
 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
 

Method Detail

isAssetRetiredBySold

boolean isAssetRetiredBySold(AssetRetirementGlobal assetRetirementGlobal)

isAssetRetiredByAuction

boolean isAssetRetiredByAuction(AssetRetirementGlobal assetRetirementGlobal)

isAssetRetiredByExternalTransferOrGift

boolean isAssetRetiredByExternalTransferOrGift(AssetRetirementGlobal assetRetirementGlobal)

isAssetRetiredByTheft

boolean isAssetRetiredByTheft(AssetRetirementGlobal assetRetirementGlobal)

isAssetRetiredByMerged

boolean isAssetRetiredByMerged(AssetRetirementGlobal assetRetirementGlobal)

getAssetRetirementReasonName

String getAssetRetirementReasonName(AssetRetirementGlobal assetRetirementGlobal)

generateOffsetPaymentsForEachSource

void generateOffsetPaymentsForEachSource(Asset sourceAsset,
                                         List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables,
                                         String documentNumber)
This method generates offset payments for each sourceAsset.

Parameters:
sourceAsset -
persistables -
documentNumber -

generateNewPaymentForTarget

Integer generateNewPaymentForTarget(Asset targetAsset,
                                    Asset sourceAsset,
                                    List<org.kuali.rice.kns.bo.PersistableBusinessObject> persistables,
                                    Integer maxSequenceNo,
                                    String documentNumber)
This method generates new payments from sourceAsset for targetAsset.

Parameters:
targetAsset -
sourceAsset -
persistables -
maxSequenceNo -
documentNumber -
Returns:

isRetirementReasonCodeInGroup

boolean isRetirementReasonCodeInGroup(String reasonCodeGroup,
                                      String reasonCode)
Check if reasonCode is in reasonCodeGroup

Parameters:
reasonCodeGroup -
reasonCode -
Returns:

isAllowedRetireMultipleAssets

boolean isAllowedRetireMultipleAssets(org.kuali.rice.kns.document.MaintenanceDocument maintenanceDocument)
Check if the retirement reason code allows to retire multiple assets

Parameters:
assetDetails -
Returns:

createGLPostables

void createGLPostables(AssetRetirementGlobal assetRetirementGlobal,
                       CamsGeneralLedgerPendingEntrySourceBase assetRetirementGlPoster)
Creates GL Postables


getOffsetFinancialObject

ObjectCode getOffsetFinancialObject(String chartOfAccountsCode)
Get the offset Object Code

Parameters:
asset -
Returns:

generateCalculatedTotal

String generateCalculatedTotal(String salePrice,
                               String handlingFeeAmount,
                               String preventiveMaintenanceAmount)
This method generates the calculatedTotal amount based on salePrice + handlingFeeAmount + preventiveMaintenanceAmount.

Parameters:
salePrice -
handlingFeeAmount -
preventiveMaintenanceAmount -
Returns:


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