public interface ISrvBalance
Service that maintenance BalanceAt.
| Modifier and Type | Method and Description |
|---|---|
void |
changeBalanceStorePeriod(Map<String,Object> pAddParam,
org.beigesoft.model.EPeriod pPeriod)
Change period of stored balances EPeriod.DAILY/WEEKLY/MONTHLY
and switch on "current balances are dirty".
|
BalanceAt |
evalBalanceAt(Map<String,Object> pAddParam,
Account pAcc,
Long pSubaccId,
Date pDateFor)
Evaluate BalanceAt for pDateFor.
|
org.beigesoft.model.EPeriod |
evalBalanceStorePeriod(Map<String,Object> pAddParam)
Evaluate period of stored balances according settings,
if it's changed then it switch on "current balances are dirty".
|
Date |
evalDatePeriodStartFor(Map<String,Object> pAddParam,
Date pDateFor)
Evaluate start of period nearest to pDateFor.
|
void |
handleNewAccountEntry(Map<String,Object> pAddParam,
Account pAcc,
Long pSubaccId,
Date pDateAt)
Handle new accounting entry is created to check
dirty of stored balances.
|
void |
recalculateAll(Map<String,Object> pAddParam,
Date pDateFor,
boolean pIsPrepareNeed)
Forced recalculation all balances for all dates less
or equals pDateFor.
|
void |
recalculateAllIfNeed(Map<String,Object> pAddParam,
Date pDateFor)
Recalculate if need for all balances for all dates less
or equals pDateFor, this method is always invoked by report ledger.
|
void |
recalculateFor(Map<String,Object> pAddParam,
Account pAcc,
Long pSubaccId,
Date pDateFor)
Forced recalculation all stored balances for this account
for all dates less or equals pDateFor.
|
List<TrialBalanceLine> |
retrieveTrialBalance(Map<String,Object> pAddParam,
Date pDate)
Retrieve Trial Balance.
|
List<TrialBalanceLine> retrieveTrialBalance(Map<String,Object> pAddParam, Date pDate) throws Exception
Retrieve Trial Balance.
pAddParam - additional parampDate - dateException - - an exceptionvoid changeBalanceStorePeriod(Map<String,Object> pAddParam, org.beigesoft.model.EPeriod pPeriod) throws Exception
Change period of stored balances EPeriod.DAILY/WEEKLY/MONTHLY and switch on "current balances are dirty".
pAddParam - additional parampPeriod - EPeriod e.g. MONTHLYException - - an exceptionorg.beigesoft.model.EPeriod evalBalanceStorePeriod(Map<String,Object> pAddParam) throws Exception
Evaluate period of stored balances according settings, if it's changed then it switch on "current balances are dirty".
pAddParam - additional paramException - - an exceptionBalanceAt evalBalanceAt(Map<String,Object> pAddParam, Account pAcc, Long pSubaccId, Date pDateFor) throws Exception
Evaluate BalanceAt for pDateFor. If required periodic BalanceAt (and all BalanceAt from start of year) is null or dirty it makes it (they).
pAddParam - additional parampAcc - accountpSubaccId - subaccount IDpDateFor - date forException - - an exceptionvoid handleNewAccountEntry(Map<String,Object> pAddParam, Account pAcc, Long pSubaccId, Date pDateAt) throws Exception
Handle new accounting entry is created to check dirty of stored balances.
pAddParam - additional parampAcc - accountpSubaccId - subaccount IDpDateAt - date atException - - an exceptionvoid recalculateAllIfNeed(Map<String,Object> pAddParam, Date pDateFor) throws Exception
Recalculate if need for all balances for all dates less or equals pDateFor, this method is always invoked by report ledger.
pAddParam - additional parampDateFor - date forException - - an exceptionvoid recalculateFor(Map<String,Object> pAddParam, Account pAcc, Long pSubaccId, Date pDateFor) throws Exception
Forced recalculation all stored balances for this account for all dates less or equals pDateFor. This method usually invoked by account subaccount line service when subaccount is added.
pAddParam - additional parampAcc - accountpSubaccId - subaccount IDpDateFor - date forException - - an exceptionvoid recalculateAll(Map<String,Object> pAddParam, Date pDateFor, boolean pIsPrepareNeed) throws Exception
Forced recalculation all balances for all dates less or equals pDateFor.
pAddParam - additional parampDateFor - date forpIsPrepareNeed - if need evaluation store period/start of storeException - - an exceptionDate evalDatePeriodStartFor(Map<String,Object> pAddParam, Date pDateFor) throws Exception
Evaluate start of period nearest to pDateFor. Tested in beige-common org.beigesoft.test.CalendarTest.
pAddParam - additional parampDateFor - date forException - - an exceptionCopyright © 2016–2018. All rights reserved.