OpenPetra
Free Administration Software for Non-Profits
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
Ict.Petra.Server.MFinance.GL.TReallocation Class Reference

Create and post the year end batch... More...

Inheritance diagram for Ict.Petra.Server.MFinance.GL.TReallocation:
Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation

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...
 

Detailed Description

Create and post the year end batch...

Constructor & Destructor Documentation

◆ TReallocation()

Ict.Petra.Server.MFinance.GL.TReallocation.TReallocation ( TLedgerInfo  ALedgerInfo,
List< Int32 >  AglBatchNumbers,
TDBTransaction  ATransaction 
)
inline

Member Function Documentation

◆ GetActualizedClone()

override AbstractPeriodEndOperation Ict.Petra.Server.MFinance.GL.TReallocation.GetActualizedClone ( )
inlinevirtual

◆ GetJobSize()

override int Ict.Petra.Server.MFinance.GL.TReallocation.GetJobSize ( )
inlinevirtual

◆ RunOperation()

override Int32 Ict.Petra.Server.MFinance.GL.TReallocation.RunOperation ( )
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.

Member Data Documentation

◆ FCountJobs

int Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.FCountJobs
protectedinherited

◆ FHasCriticalErrors

bool Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.FHasCriticalErrors = false
protectedinherited

See TPeriodEndOperations

◆ FInfoMode

bool Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.FInfoMode = true
protectedinherited

See TPeriodEndOperations

◆ FPeriodEndOperator

TPeriodEndOperations Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.FPeriodEndOperator
inherited

The parent operator (TMonthEnd or TYearEnd) that requests this operation

◆ FverificationResults

TVerificationResultCollection Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.FverificationResults = null
protectedinherited

This is the standard VerificationResultCollection for the info and the error messages.

Property Documentation

◆ DoExecuteableCode

bool Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.DoExecuteableCode
getinherited

!(FHasCriticalErrors | FInfoMode)

◆ HasCriticalErrors

bool Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.HasCriticalErrors
getinherited

Property to read if the process could be done without critical errors. (Used by TPeriodEndOperations.RunYearEndSequence)

◆ IsInInfoMode

bool Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.IsInInfoMode
setinherited

Property to set the correct info-mode (Set by TPeriodEndOperations.RunYearEndSequence)

◆ VerificationResultCollection

TVerificationResultCollection Ict.Petra.Server.MFinance.Common.AbstractPeriodEndOperation.VerificationResultCollection
setinherited

Set-Property to set the common value of the VerificationResultCollection (Set by TPeriodEndOperations.RunYearEndSequence)


The documentation for this class was generated from the following file: