org.kuali.kfs.gl.batch.service
Interface EncumbranceCalculator

All Known Implementing Classes:
PostEncumbrance

public interface EncumbranceCalculator

An interface which declares the methods needed to post a transaction against an encumbrance


Method Summary
 Encumbrance findEncumbrance(Collection encumbranceList, Transaction t)
          This method is used by the balance inquiry screens.
 void updateEncumbrance(Transaction t, Encumbrance enc)
          This will update the amounts in an Encumbrance records based on the data in the transaction.
 

Method Detail

findEncumbrance

Encumbrance findEncumbrance(Collection encumbranceList,
                            Transaction t)
This method is used by the balance inquiry screens. It will take a list of selected encumbrances and a pending entry. It will return the Encumbrance row that is affected by the transaction.

Parameters:
encumbranceList - list of Encumbrance objects
t - A transaction
Returns:
the matching Encumbrance from the list or null if not applicable

updateEncumbrance

void updateEncumbrance(Transaction t,
                       Encumbrance enc)
This will update the amounts in an Encumbrance records based on the data in the transaction.

Parameters:
t - the transaction to compare
enc - An encumbrance to update


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