| java.lang.Object org.kuali.kfs.rules.AccountingDocumentRuleUtil
AccountingDocumentRuleUtil | public class AccountingDocumentRuleUtil (Code) | | This utility class contains some common transactional document business rules, that can be used by many different parts of this
application.
|
Method Summary | |
public static String | formatProperty(String propertyName, Object... arguments) | public static String | getObjectCodeTypeCodeWithoutSideEffects(AccountingLine accountingLine) Makes sure that the objectCode attribute is fully populated b/c we are using proxying in our persistence layer. | public static boolean | isExpense(AccountingLine accountingLine) Check object code type to determine whether the accounting line is expense. | public static boolean | isIncome(AccountingLine accountingLine) Determines whether an accounting line is an income line or not. | public static boolean | isValidBalanceType(BalanceTyp balanceType, String errorPropertyName) This method checks for the existence of the provided balance type, in the system and also checks to see if it is active. | public static boolean | isValidBalanceType(BalanceTyp balanceType, Class entryClass, String attributeName, String errorPropertyName) This method checks for the existence of the provided balance type, in the system and also checks to see if it is active. | public static boolean | isValidOpenAccountingPeriod(AccountingPeriod accountingPeriod, Class entryClass, String attribueName, String errorPropertyName) This method checks for the existence of the accounting period in the system and also makes sure that the accounting period is
open for posting. | public static boolean | isValidReversalDate(java.sql.Date reversalDate, String errorPropertyName) Some documents have reversal dates. | public static boolean | populateBankOffsetGeneralLedgerPendingEntry(BankAccount bankAccount, KualiDecimal depositAmount, AccountingDocument financialDocument, Integer universityFiscalYear, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry bankOffsetEntry, String errorPropertyName) This populates an empty GeneralLedgerPendingEntry instance with default values for a bank offset. |
getObjectCodeTypeCodeWithoutSideEffects | public static String getObjectCodeTypeCodeWithoutSideEffects(AccountingLine accountingLine)(Code) | | Makes sure that the objectCode attribute is fully populated b/c we are using proxying in our persistence layer.
Parameters: accountingLine - the object type code of the object code of the given accounting line |
isExpense | public static boolean isExpense(AccountingLine accountingLine)(Code) | | Check object code type to determine whether the accounting line is expense.
Parameters: accountingLine - boolean True if the line is an expense line. |
isIncome | public static boolean isIncome(AccountingLine accountingLine)(Code) | | Determines whether an accounting line is an income line or not. This goes agains the configurable object type code list in
the ApplicationParameter mechanism. This list can be configured externally.
Parameters: accountingLine - boolean True if the line is an income line. |
isValidBalanceType | public static boolean isValidBalanceType(BalanceTyp balanceType, String errorPropertyName)(Code) | | This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
Parameters: balanceType - Parameters: errorPropertyName - also used as the BalanceTyp DD attribute name True if the balance type is valid, false otherwise. |
isValidBalanceType | public static boolean isValidBalanceType(BalanceTyp balanceType, Class entryClass, String attributeName, String errorPropertyName)(Code) | | This method checks for the existence of the provided balance type, in the system and also checks to see if it is active.
Parameters: balanceType - Parameters: entryClass - the Class of the DataDictionary entry containing the attribute with the label for the error message Parameters: attributeName - the name of the attribute in the DataDictionary entry Parameters: errorPropertyName - True if the balance type is valid, false otherwise. |
isValidOpenAccountingPeriod | public static boolean isValidOpenAccountingPeriod(AccountingPeriod accountingPeriod, Class entryClass, String attribueName, String errorPropertyName)(Code) | | This method checks for the existence of the accounting period in the system and also makes sure that the accounting period is
open for posting.
Parameters: accountingPeriod - Parameters: entryClass - Parameters: attribueName - Parameters: errorPropertyName - True if the accounting period exists in the system and is open for posting, false otherwise. |
isValidReversalDate | public static boolean isValidReversalDate(java.sql.Date reversalDate, String errorPropertyName)(Code) | | Some documents have reversal dates. This method represents the common implementation that transactional documents follow for
reversal dates - that they must not be before the current date.
Parameters: reversalDate - Parameters: errorPropertyName - boolean True if the reversal date is not earlier than the current date, false otherwise. |
populateBankOffsetGeneralLedgerPendingEntry | public static boolean populateBankOffsetGeneralLedgerPendingEntry(BankAccount bankAccount, KualiDecimal depositAmount, AccountingDocument financialDocument, Integer universityFiscalYear, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry bankOffsetEntry, String errorPropertyName)(Code) | | This populates an empty GeneralLedgerPendingEntry instance with default values for a bank offset. A global error will be
posted as a side-effect if the given BankAccount has not defined the necessary bank offset relations.
Parameters: bankAccount - Parameters: depositAmount - Parameters: financialDocument - Parameters: universityFiscalYear - Parameters: sequenceHelper - Parameters: bankOffsetEntry - Parameters: errorPropertyName - whether the entry was populated successfully |
|
|