public interface AccountingDocumentRuleHelperService
Modifier and Type | Method and Description |
---|---|
String |
formatProperty(String propertyName,
Object... arguments)
Gets the named property from ConfigurationService (i.e., from ApplicationResources.properties) and formats it with the
given arguments (if any).
|
String |
getObjectCodeTypeCodeWithoutSideEffects(GeneralLedgerPendingEntrySourceDetail postable)
Makes sure that the objectCode attribute is fully populated b/c we are using proxying in our persistence layer.
|
boolean |
isExpense(GeneralLedgerPendingEntrySourceDetail postable)
Check object code type to determine whether the accounting line is expense.
|
boolean |
isIncome(GeneralLedgerPendingEntrySourceDetail postable)
Determines whether an accounting line is an income line or not.
|
boolean |
isValidBalanceType(BalanceType 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.
|
boolean |
isValidBalanceType(BalanceType 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.
|
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.
|
boolean |
isValidReversalDate(Date reversalDate,
String errorPropertyName)
Some documents have reversal dates.
|
boolean isValidBalanceType(BalanceType balanceType, String errorPropertyName)
balanceType
- errorPropertyName
- also used as the BalanceTyp DD attribute nameboolean isValidBalanceType(BalanceType balanceType, Class entryClass, String attributeName, String errorPropertyName)
balanceType
- entryClass
- the Class of the DataDictionary entry containing the attribute with the label for the error messageattributeName
- the name of the attribute in the DataDictionary entryerrorPropertyName
- boolean isValidOpenAccountingPeriod(AccountingPeriod accountingPeriod, Class entryClass, String attribueName, String errorPropertyName)
accountingPeriod
- entryClass
- attribueName
- errorPropertyName
- boolean isValidReversalDate(Date reversalDate, String errorPropertyName)
reversalDate
- errorPropertyName
- boolean isIncome(GeneralLedgerPendingEntrySourceDetail postable)
accountingLine
- boolean isExpense(GeneralLedgerPendingEntrySourceDetail postable)
accountingLine
- String getObjectCodeTypeCodeWithoutSideEffects(GeneralLedgerPendingEntrySourceDetail postable)
accountingLine
- String formatProperty(String propertyName, Object... arguments)
propertyName
- arguments
- {0}
replaced with the first argument, {1}
with the
second argument, etc.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.