org.kuali.kfs.module.cam.document.service.impl
Class PaymentSummaryServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.cam.document.service.impl.PaymentSummaryServiceImpl
All Implemented Interfaces:
PaymentSummaryService

public class PaymentSummaryServiceImpl
extends Object
implements PaymentSummaryService

This class implements PaymentSummaryService


Constructor Summary
PaymentSummaryServiceImpl()
           
 
Method Summary
protected  org.kuali.rice.kns.util.KualiDecimal addAmount(org.kuali.rice.kns.util.KualiDecimal amount, org.kuali.rice.kns.util.KualiDecimal addend)
           
 void calculateAndSetPaymentSummary(Asset asset)
           
 org.kuali.rice.kns.util.KualiDecimal calculateFederalContribution(Asset asset)
          Sums up federal contribution amount for an asset
 org.kuali.rice.kns.util.KualiDecimal calculatePaymentTotalCost(Asset asset)
          Sums up total payment cost for an asset
 org.kuali.rice.kns.util.KualiDecimal calculatePrimaryAccumulatedDepreciation(Asset asset)
          Sums up primary accumulated depreciation amount
protected  org.kuali.rice.kns.util.KualiDecimal calculatePrimaryBaseAmount(Asset asset)
          Sums up primary base amount for an asset
 org.kuali.rice.kns.util.KualiDecimal calculatePrimaryBookValue(Asset asset)
          Sums up primary book value for an asset
protected  org.kuali.rice.kns.util.KualiDecimal calculatePrimaryCurrentMonthDepreciation(Asset asset)
          Sums current month depreciation amount for an asset
protected  org.kuali.rice.kns.util.KualiDecimal calculatePrimaryPrevYearDepreciation(Asset asset)
          Sums up previous year depreciation amount for an asset
protected  org.kuali.rice.kns.util.KualiDecimal calculatePrimaryYTDDepreciation(Asset asset)
          Sums up year to date depreciation amount for an asset
protected  org.kuali.rice.kns.util.KualiDecimal getCurrentMonthDepreciationAmount(AssetPayment assetPayment)
          Helper methods uses university date service to identify the right depreciation month column for the current month
 org.kuali.rice.kns.service.ParameterService getParameterService()
           
 UniversityDateService getUniversityDateService()
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
protected  void setPaymentYearToDate(Asset asset)
          Sets sum of depreciation for each asset payment record
 void setUniversityDateService(UniversityDateService universityDateService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaymentSummaryServiceImpl

public PaymentSummaryServiceImpl()
Method Detail

addAmount

protected org.kuali.rice.kns.util.KualiDecimal addAmount(org.kuali.rice.kns.util.KualiDecimal amount,
                                                         org.kuali.rice.kns.util.KualiDecimal addend)

calculateAndSetPaymentSummary

public void calculateAndSetPaymentSummary(Asset asset)
Specified by:
calculateAndSetPaymentSummary in interface PaymentSummaryService
Parameters:
asset - Asset that needs Payment Summary Information computed
    Computes following information and sets them to asset object
  1. Federal contribution amount
  2. Payments till date
  3. Total Cost of Asset
  4. Accumulated Depreciation
  5. Primary Base Amount
  6. Book Value
  7. Previous Year Depreciation
  8. Year to Date Depreciation
  9. Current month depreciation
See Also:
PaymentSummaryService.calculateAndSetPaymentSummary(org.kuali.kfs.module.cam.businessobject.Asset)

calculateFederalContribution

public org.kuali.rice.kns.util.KualiDecimal calculateFederalContribution(Asset asset)
Description copied from interface: PaymentSummaryService
Sums up federal contribution amount for an asset

Specified by:
calculateFederalContribution in interface PaymentSummaryService
Parameters:
asset - Asset
Returns:
Federal Contribution Amount
See Also:
PaymentSummaryService.calculateFederalContribution(org.kuali.kfs.module.cam.businessobject.Asset)

calculatePaymentTotalCost

public org.kuali.rice.kns.util.KualiDecimal calculatePaymentTotalCost(Asset asset)
Sums up total payment cost for an asset

Specified by:
calculatePaymentTotalCost in interface PaymentSummaryService
Parameters:
asset - Asset
Returns:
Total Payment Amount

calculatePrimaryAccumulatedDepreciation

public org.kuali.rice.kns.util.KualiDecimal calculatePrimaryAccumulatedDepreciation(Asset asset)
Sums up primary accumulated depreciation amount

Specified by:
calculatePrimaryAccumulatedDepreciation in interface PaymentSummaryService
Parameters:
asset - Asset
Returns:
Accumulated Primary Depreciation Amount

calculatePrimaryBaseAmount

protected org.kuali.rice.kns.util.KualiDecimal calculatePrimaryBaseAmount(Asset asset)
Sums up primary base amount for an asset

Parameters:
asset - Asset
Returns:
Base Amount

calculatePrimaryBookValue

public org.kuali.rice.kns.util.KualiDecimal calculatePrimaryBookValue(Asset asset)
Sums up primary book value for an asset

Specified by:
calculatePrimaryBookValue in interface PaymentSummaryService
Parameters:
asset - Asset
Returns:
Book Value Amount

calculatePrimaryCurrentMonthDepreciation

protected org.kuali.rice.kns.util.KualiDecimal calculatePrimaryCurrentMonthDepreciation(Asset asset)
Sums current month depreciation amount for an asset

Parameters:
asset - Asset
Returns:
Current month depreciation amount

calculatePrimaryPrevYearDepreciation

protected org.kuali.rice.kns.util.KualiDecimal calculatePrimaryPrevYearDepreciation(Asset asset)
Sums up previous year depreciation amount for an asset

Parameters:
asset - Asset
Returns:
Previoud Year Depreciation Amount

calculatePrimaryYTDDepreciation

protected org.kuali.rice.kns.util.KualiDecimal calculatePrimaryYTDDepreciation(Asset asset)
Sums up year to date depreciation amount for an asset

Parameters:
asset - Asset
Returns:
Year To Date Depreciation Amount

getCurrentMonthDepreciationAmount

protected org.kuali.rice.kns.util.KualiDecimal getCurrentMonthDepreciationAmount(AssetPayment assetPayment)
Helper methods uses university date service to identify the right depreciation month column for the current month

Parameters:
assetPayment - Asset Payment Record
Returns:
Depreciation Amount for current month

getUniversityDateService

public UniversityDateService getUniversityDateService()

setPaymentYearToDate

protected void setPaymentYearToDate(Asset asset)
Sets sum of depreciation for each asset payment record

Parameters:
asset - Asset

setUniversityDateService

public void setUniversityDateService(UniversityDateService universityDateService)

getParameterService

public org.kuali.rice.kns.service.ParameterService getParameterService()

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)


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