Package com.storedobject.core
Interface Financial
- All Known Implementing Classes:
- CustomerInvoice,- Invoice,- SupplierInvoice
public interface Financial
The Financial interface represents a financial entity that can post ledger transactions.
 It provides methods to check if the ledger is already posted, and to post a ledger transaction.
 It also provides a default method to post a ledger transaction using a TransactionManager.
- Author:
- Syam
- 
Method SummaryModifier and TypeMethodDescriptionstatic intgetBalanceType(Account account) static StringgetBalanceTypeValue(Account account) static intgetCategory(Account account) static StringgetCategoryValue(Account account) static intgetTransactionType(Account account) static StringgetTransactionTypeValue(Account account) static booleanhasLimitCheck(Account account) static booleanhasStrictBalanceControl(Account account) static booleanisActive(SystemEntity systemEntity) Is financial system active for this entity?static booleanIs financial system active for this transaction manager?static booleanstatic booleanisDeepFrozen(Account account) booleanChecks if the ledger is already posted.static booleanisLiability(Account account) static booleanvoidpostLedger(TransactionManager transactionManager) Posts ledger transactions using the provided TransactionManager.
- 
Method Details- 
isLedgerPostedboolean isLedgerPosted()Checks if the ledger is already posted.- Returns:
- true if the ledger is already posted, false otherwise.
 
- 
postLedgerPosts ledger transactions using the provided TransactionManager.- Parameters:
- transactionManager- the TransactionManager used to post the ledger transaction
- Throws:
- Exception- if the ledger is already posted
 
- 
getCategory
- 
getCategoryValue
- 
getBalanceType
- 
getBalanceTypeValue
- 
getTransactionType
- 
getTransactionTypeValue
- 
hasStrictBalanceControl
- 
hasLimitCheck
- 
isDeepFrozen
- 
isSpecial
- 
isAsset
- 
isLiability
- 
isActiveIs financial system active for this entity?- Returns:
- True/false.
 
- 
isActiveIs financial system active for this transaction manager?- Returns:
- True/false.
 
 
-