|
||||||||||
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.AssetPaymentServiceImpl
@Transactional public class AssetPaymentServiceImpl
Constructor Summary | |
---|---|
AssetPaymentServiceImpl()
|
Method Summary | |
---|---|
void |
adjustPaymentAmounts(AssetPayment assetPayment,
boolean reverseAmount,
boolean nullPeriodDepreciation)
This method uses reflection and performs below steps on all Amount fields If it is a depreciation field, then reset the value to null, so that they don't get copied to offset payments If it is an amount field, then reverse the amount by multiplying with -1 |
boolean |
extractPostedDatePeriod(AssetPaymentDetail assetPaymentDetail)
sets in an assetPaymentDetail BO the posting year and posting period that is retrived from the university date table using the asset payment posted date as a key. |
AssetPaymentDao |
getAssetPaymentDao()
|
Integer |
getAssetPaymentDetailQuantity(AssetGlobal assetGlobal)
Returns asset payment details quantity |
AssetRetirementService |
getAssetRetirementService()
|
AssetService |
getAssetService()
|
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
|
Integer |
getMaxSequenceNumber(Long capitalAssetNumber)
Finds out the maximum value of payment sequence for an asset |
ObjectCodeService |
getObjectCodeService()
|
org.kuali.rice.kns.service.ParameterService |
getParameterService()
|
UniversityDateService |
getUniversityDateService()
|
boolean |
hasDifferentObjectSubTypes(AssetPaymentDocument document)
This method determines whether or not an asset has different object sub type codes in its documents. |
boolean |
isNonDepreciableFederallyOwnedObjSubType(String objectSubType)
Checks if object sub type is a non-depreciable federally owned object sub type |
boolean |
isPaymentEligibleForAccumDeprGLPosting(AssetPayment assetPayment)
Check if payment is eligible for ACCUMMULATE_DEPRECIATION GL posting. |
boolean |
isPaymentEligibleForCapitalizationGLPosting(AssetPayment assetPayment)
Check if payment is eligible for CAPITALIZATION GL posting. |
boolean |
isPaymentEligibleForGLPosting(AssetPayment assetPayment)
Checks if payment is eligible for GL posting |
boolean |
isPaymentEligibleForOffsetGLPosting(AssetPayment assetPayment)
Check if payment is eligible for OFFSET_AMOUNT GL posting. |
boolean |
isPaymentFederalOwned(AssetPayment assetPayment)
Checks if asset payment is federally funder or not |
boolean |
isPaymentFinancialObjectActive(AssetPayment assetPayment)
Checks active status of financial object of the payment |
void |
processApprovedAssetPayment(AssetPaymentDocument document)
Stores the approved asset payment detail records in the asset payment table, and updates the total cost of the asset in the asset table |
protected void |
processPayments(AssetPaymentDocument document)
Creates a new asset payment record for each new asset payment detail record and then save them |
void |
setAssetPaymentDao(AssetPaymentDao assetPaymentDao)
|
void |
setAssetRetirementService(AssetRetirementService assetRetirementService)
|
void |
setAssetService(AssetService assetService)
|
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
void |
setObjectCodeService(ObjectCodeService objectCodeService)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
void |
setUniversityDateService(UniversityDateService universityDateService)
|
boolean |
validateAssets(String errorPath,
Asset asset)
Validates the assets inputed in the asset payment document |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetPaymentServiceImpl()
Method Detail |
---|
public Integer getMaxSequenceNumber(Long capitalAssetNumber)
AssetPaymentService
getMaxSequenceNumber
in interface AssetPaymentService
org.kuali.kfs.module.cam.document.service.AssetPaymentService#getMaxSequenceNumber(org.kuali.kfs.module.cam.businessobject.AssetPayment)
public boolean isPaymentFederalOwned(AssetPayment assetPayment)
AssetPaymentService
isPaymentFederalOwned
in interface AssetPaymentService
assetPayment
- Payment record
AssetPaymentService.isPaymentFederalOwned(org.kuali.kfs.module.cam.businessobject.AssetPayment)
public boolean isPaymentEligibleForAccumDeprGLPosting(AssetPayment assetPayment)
AssetPaymentService
isPaymentEligibleForAccumDeprGLPosting
in interface AssetPaymentService
AssetPaymentService.isPaymentEligibleForAccumDeprGLPosting(org.kuali.kfs.module.cam.businessobject.AssetPayment)
public boolean isPaymentEligibleForCapitalizationGLPosting(AssetPayment assetPayment)
AssetPaymentService
isPaymentEligibleForCapitalizationGLPosting
in interface AssetPaymentService
AssetPaymentService.isPaymentEligibleForCapitalizationGLPosting(org.kuali.kfs.module.cam.businessobject.AssetPayment)
public boolean isPaymentEligibleForOffsetGLPosting(AssetPayment assetPayment)
AssetPaymentService
isPaymentEligibleForOffsetGLPosting
in interface AssetPaymentService
AssetPaymentService.isPaymentEligibleForOffsetGLPosting(org.kuali.kfs.module.cam.businessobject.AssetPayment)
public boolean isPaymentFinancialObjectActive(AssetPayment assetPayment)
AssetPaymentService
isPaymentFinancialObjectActive
in interface AssetPaymentService
assetPayment
- Payment record
AssetPaymentService.isPaymentFinancialObjectActive(org.kuali.kfs.module.cam.businessobject.AssetPayment)
public void processApprovedAssetPayment(AssetPaymentDocument document)
AssetPaymentService
processApprovedAssetPayment
in interface AssetPaymentService
AssetPaymentService.processApprovedAssetPayment(org.kuali.kfs.module.cam.document.AssetPaymentDocument)
protected void processPayments(AssetPaymentDocument document)
document
- public void adjustPaymentAmounts(AssetPayment assetPayment, boolean reverseAmount, boolean nullPeriodDepreciation) throws IllegalAccessException, InvocationTargetException
AssetPaymentService
adjustPaymentAmounts
in interface AssetPaymentService
reverseAmount
- true if amounts needs to be multiplied with -1nullPeriodDepreciation
- true if depreciation period amount needs to be null
IllegalAccessException
InvocationTargetException
AssetPaymentService.adjustPaymentAmounts(org.kuali.kfs.module.cam.businessobject.AssetPayment,
boolean, boolean)
public boolean isPaymentEligibleForGLPosting(AssetPayment assetPayment)
AssetPaymentService
isPaymentEligibleForGLPosting
in interface AssetPaymentService
assetPayment
- AssetPayment
AssetPaymentService.isPaymentEligibleForGLPosting(org.kuali.kfs.module.cam.businessobject.AssetPayment)
public boolean isNonDepreciableFederallyOwnedObjSubType(String objectSubType)
isNonDepreciableFederallyOwnedObjSubType
in interface AssetPaymentService
string
- objectSubType2
public boolean extractPostedDatePeriod(AssetPaymentDetail assetPaymentDetail)
AssetPaymentService
extractPostedDatePeriod
in interface AssetPaymentService
AssetPaymentService.extractPostedDatePeriod(org.kuali.kfs.module.cam.businessobject.AssetPaymentDetail)
public Integer getAssetPaymentDetailQuantity(AssetGlobal assetGlobal)
AssetPaymentService
getAssetPaymentDetailQuantity
in interface AssetPaymentService
AssetPaymentService.getAssetPaymentDetailQuantity(org.kuali.kfs.module.cam.businessobject.AssetGlobal)
public boolean validateAssets(String errorPath, Asset asset)
AssetPaymentService
validateAssets
in interface AssetPaymentService
AssetPaymentService.validateAssets(java.lang.String,
org.kuali.kfs.module.cam.businessobject.Asset)
public boolean hasDifferentObjectSubTypes(AssetPaymentDocument document)
hasDifferentObjectSubTypes
in interface AssetPaymentService
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
public AssetPaymentDao getAssetPaymentDao()
public void setAssetPaymentDao(AssetPaymentDao assetPaymentDao)
public ObjectCodeService getObjectCodeService()
public void setObjectCodeService(ObjectCodeService objectCodeService)
public UniversityDateService getUniversityDateService()
public void setUniversityDateService(UniversityDateService universityDateService)
public AssetRetirementService getAssetRetirementService()
public void setAssetRetirementService(AssetRetirementService assetRetirementService)
public AssetService getAssetService()
public void setAssetService(AssetService assetService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |