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 Summary
Modifier 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
-
isLedgerPosted
boolean isLedgerPosted()Checks if the ledger is already posted.- Returns:
- true if the ledger is already posted, false otherwise.
-
postLedger
Posts 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
-
isActive
Is financial system active for this entity?- Returns:
- True/false.
-
isActive
Is financial system active for this transaction manager?- Returns:
- True/false.
-