OpenPetra
Free Administration Software for Non-Profits
|
Create and post the year end batch... More...
Public Member Functions | |
TReallocation (TLedgerInfo ALedgerInfo, List< Int32 >AglBatchNumbers, TDBTransaction ATransaction) | |
override int | GetJobSize () |
override AbstractPeriodEndOperation | GetActualizedClone () |
override Int32 | RunOperation () |
TReallocation.RunOperation (This has been re-written to iterate over Cost Centres, rather than over accounts.) More... | |
Public Attributes | |
TPeriodEndOperations | FPeriodEndOperator |
The parent operator (TMonthEnd or TYearEnd) that requests this operation More... | |
Protected Attributes | |
TVerificationResultCollection | FverificationResults = null |
This is the standard VerificationResultCollection for the info and the error messages. More... | |
bool | FInfoMode = true |
See TPeriodEndOperations More... | |
bool | FHasCriticalErrors = false |
See TPeriodEndOperations More... | |
int | FCountJobs |
Properties | |
bool | DoExecuteableCode [get] |
!(FHasCriticalErrors | FInfoMode) More... | |
TVerificationResultCollection | VerificationResultCollection [set] |
Set-Property to set the common value of the VerificationResultCollection (Set by TPeriodEndOperations.RunYearEndSequence) More... | |
bool | IsInInfoMode [set] |
Property to set the correct info-mode (Set by TPeriodEndOperations.RunYearEndSequence) More... | |
bool | HasCriticalErrors [get] |
Property to read if the process could be done without critical errors. (Used by TPeriodEndOperations.RunYearEndSequence) More... | |
Create and post the year end batch...
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
TReallocation.RunOperation (This has been re-written to iterate over Cost Centres, rather than over accounts.)
I need an Account list: all profit / loss accounts, plus ICH, and a Cost Centre list: all Cost Centres.
For Each Cost Centre, I need to load GLMP entries so that I can find balances for each qualifying account.
If the rollup style is surplus or deficit, I need to add up the amounts in all the GLMP entries that correspond to a qualifying account, to find out whether there's an overal surplus or deficit. If the rollup style is always or never, I don't need to do this.
Then for Each account within the Cost Centre loop, I need to need to make two transactions - the destination account is the nominated equity account, and the destination Cost Centre is either the standard Cost Centre, or the same as the source.
Implements Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.
|
protectedinherited |
|
protectedinherited |
See TPeriodEndOperations
|
protectedinherited |
See TPeriodEndOperations
|
inherited |
|
protectedinherited |
This is the standard VerificationResultCollection for the info and the error messages.
|
getinherited |
!(FHasCriticalErrors | FInfoMode)
|
getinherited |
Property to read if the process could be done without critical errors. (Used by TPeriodEndOperations.RunYearEndSequence)
|
setinherited |
Property to set the correct info-mode (Set by TPeriodEndOperations.RunYearEndSequence)
|
setinherited |
Set-Property to set the common value of the VerificationResultCollection (Set by TPeriodEndOperations.RunYearEndSequence)