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 int
getBalanceType
(Account account) static String
getBalanceTypeValue
(Account account) static int
getCategory
(Account account) static String
getCategoryValue
(Account account) static int
getTransactionType
(Account account) static String
getTransactionTypeValue
(Account account) static boolean
hasLimitCheck
(Account account) static boolean
hasStrictBalanceControl
(Account account) static boolean
isActive
(SystemEntity systemEntity) Is financial system active for this entity?static boolean
Is financial system active for this transaction manager?static boolean
static boolean
isDeepFrozen
(Account account) boolean
Checks if the ledger is already posted.static boolean
isLiability
(Account account) static boolean
void
postLedger
(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.
-