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

All Known Implementing Classes:
AssetPaymentServiceImpl

public interface AssetPaymentService


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.
 Integer getAssetPaymentDetailQuantity(AssetGlobal assetGlobal)
          Returns asset payment details quantity
 Integer getMaxSequenceNumber(Long capitalAssetNumber)
          Finds out the maximum value of payment sequence for an asset
 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 non depreciable federally owned
 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 assetPaymentDocument)
          Stores the approved asset payment detail records in the asset payment table, and updates the total cost of the asset in the asset table
 boolean validateAssets(String errorPath, Asset asset)
          Validates the assets inputed in the asset payment document
 

Method Detail

getMaxSequenceNumber

Integer getMaxSequenceNumber(Long capitalAssetNumber)
Finds out the maximum value of payment sequence for an asset

Parameters:
assetPayment - Asset Payment
Returns:
Maximum sequence value of asset payment within an asset

isPaymentFederalOwned

boolean isPaymentFederalOwned(AssetPayment assetPayment)
Checks if asset payment is federally funder or not

Parameters:
assetPayment - Payment record
Returns:
True if financial object sub type code indicates federal contribution

isPaymentFinancialObjectActive

boolean isPaymentFinancialObjectActive(AssetPayment assetPayment)
Checks active status of financial object of the payment

Parameters:
assetPayment - Payment record
Returns:
True if object is active

processApprovedAssetPayment

void processApprovedAssetPayment(AssetPaymentDocument assetPaymentDocument)
Stores the approved asset payment detail records in the asset payment table, and updates the total cost of the asset in the asset table

Parameters:
assetPaymentDetail -

adjustPaymentAmounts

void adjustPaymentAmounts(AssetPayment assetPayment,
                          boolean reverseAmount,
                          boolean nullPeriodDepreciation)
                          throws IllegalAccessException,
                                 InvocationTargetException
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
  • Parameters:
    offsetPayment - Offset payment
    reverseAmount - true if amounts needs to be multiplied with -1
    nullPeriodDepreciation - true if depreciation period amount needs to be null
    Throws:
    NoSuchMethodException
    IllegalAccessException
    InvocationTargetException

    isPaymentEligibleForGLPosting

    boolean isPaymentEligibleForGLPosting(AssetPayment assetPayment)
    Checks if payment is eligible for GL posting

    Parameters:
    assetPayment - AssetPayment
    Returns:
    true if elgible for GL posting

    isNonDepreciableFederallyOwnedObjSubType

    boolean isNonDepreciableFederallyOwnedObjSubType(String objectSubType)
    Checks if object sub type is non depreciable federally owned

    Parameters:
    string - objectSubType
    Returns:
    true if is NON_DEPRECIABLE_FEDERALLY_OWNED_OBJECT_SUB_TYPES

    extractPostedDatePeriod

    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.

    Parameters:
    assetPaymentDetail -
    Returns:
    boolean

    getAssetPaymentDetailQuantity

    Integer getAssetPaymentDetailQuantity(AssetGlobal assetGlobal)
    Returns asset payment details quantity

    Parameters:
    assetGlobal -
    Returns:
    Integer

    validateAssets

    boolean validateAssets(String errorPath,
                           Asset asset)
    Validates the assets inputed in the asset payment document

    Parameters:
    errorPath -
    asset -
    Returns:

    hasDifferentObjectSubTypes

    boolean hasDifferentObjectSubTypes(AssetPaymentDocument document)
    This method determines whether or not an asset has different object sub type codes in its documents.

    Returns:
    true when the asset has payments with object codes that point to different object sub type codes

    isPaymentEligibleForCapitalizationGLPosting

    boolean isPaymentEligibleForCapitalizationGLPosting(AssetPayment assetPayment)
    Check if payment is eligible for CAPITALIZATION GL posting.

    Parameters:
    assetPayment -
    Returns:

    isPaymentEligibleForAccumDeprGLPosting

    boolean isPaymentEligibleForAccumDeprGLPosting(AssetPayment assetPayment)
    Check if payment is eligible for ACCUMMULATE_DEPRECIATION GL posting.

    Parameters:
    assetPayment -
    Returns:

    isPaymentEligibleForOffsetGLPosting

    boolean isPaymentEligibleForOffsetGLPosting(AssetPayment assetPayment)
    Check if payment is eligible for OFFSET_AMOUNT GL posting.

    Parameters:
    assetPayment -
    Returns:


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