OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MFinance.Common.TAccountInfo Class Reference

TAccountInfo uses the LedgerNumber. All Accounts are load in both contructors. You can define an initial account code in the second constructor or you can set the value later (or change) by using SetAccountRowTo. Then you can read the values for the selected Account. More...

Public Member Functions

 TAccountInfo (Int32 ALedgerNumber, TDBTransaction ATransaction=null)
 This mininmal constructor defines the result collection for the error messages and Ledger Info to select the ledger ... More...
 
 TAccountInfo (Int32 ALedgerNumber, String AAccountCode, TDBTransaction ATransaction=null)
 The Constructor defines a first value of a specific accounting code too. More...
 
void SetSpecialAccountCode (TAccountPropertyEnum AENum)
 TAccountPropertyEnum defines a set of special accounts and here one of them can be selected. .. More...
 
void Reset ()
 Reset the row list More...
 
bool MoveNext ()
 Move to the next row ... More...
 

Properties

string AccountCode [get, set]
 The Account code can be read and the result is the account code of the row which was selected before.
The Account can be written and this will change the selected row without any database request. The result may be invalid. More...
 
string AccountType [get]
 If there's no current row, this will raise an exception. More...
 
bool IsValid [get]
 Informs that a row selection is valid and the row properties will not produce an exception. More...
 
bool ForeignCurrencyFlag [get]
 If there's no current row, this will raise an exception. More...
 
string ForeignCurrencyCode [get]
 If there's no current row, this will raise an exception. More...
 
bool PostingStatus [get]
 If there's no current row, this will raise an exception. More...
 
bool DebitCreditIndicator [get]
 If there's no current row, this will raise an exception. More...
 

Detailed Description

TAccountInfo uses the LedgerNumber. All Accounts are load in both contructors. You can define an initial account code in the second constructor or you can set the value later (or change) by using SetAccountRowTo. Then you can read the values for the selected Account.

Constructor & Destructor Documentation

◆ TAccountInfo() [1/2]

Ict.Petra.Server.MFinance.Common.TAccountInfo.TAccountInfo ( Int32  ALedgerNumber,
TDBTransaction  ATransaction = null 
)
inline

This mininmal constructor defines the result collection for the error messages and Ledger Info to select the ledger ...

◆ TAccountInfo() [2/2]

Ict.Petra.Server.MFinance.Common.TAccountInfo.TAccountInfo ( Int32  ALedgerNumber,
String  AAccountCode,
TDBTransaction  ATransaction = null 
)
inline

The Constructor defines a first value of a specific accounting code too.

Member Function Documentation

◆ MoveNext()

bool Ict.Petra.Server.MFinance.Common.TAccountInfo.MoveNext ( )
inline

Move to the next row ...

Returns

◆ Reset()

void Ict.Petra.Server.MFinance.Common.TAccountInfo.Reset ( )
inline

Reset the row list

◆ SetSpecialAccountCode()

void Ict.Petra.Server.MFinance.Common.TAccountInfo.SetSpecialAccountCode ( TAccountPropertyEnum  AENum)
inline

TAccountPropertyEnum defines a set of special accounts and here one of them can be selected. ..

Parameters
AENum

Property Documentation

◆ AccountCode

string Ict.Petra.Server.MFinance.Common.TAccountInfo.AccountCode
getset

The Account code can be read and the result is the account code of the row which was selected before.
The Account can be written and this will change the selected row without any database request. The result may be invalid.

After this is set, the FRowIdx is invalid.

◆ AccountType

string Ict.Petra.Server.MFinance.Common.TAccountInfo.AccountType
get

If there's no current row, this will raise an exception.

◆ DebitCreditIndicator

bool Ict.Petra.Server.MFinance.Common.TAccountInfo.DebitCreditIndicator
get

If there's no current row, this will raise an exception.

◆ ForeignCurrencyCode

string Ict.Petra.Server.MFinance.Common.TAccountInfo.ForeignCurrencyCode
get

If there's no current row, this will raise an exception.

◆ ForeignCurrencyFlag

bool Ict.Petra.Server.MFinance.Common.TAccountInfo.ForeignCurrencyFlag
get

If there's no current row, this will raise an exception.

◆ IsValid

bool Ict.Petra.Server.MFinance.Common.TAccountInfo.IsValid
get

Informs that a row selection is valid and the row properties will not produce an exception.

◆ PostingStatus

bool Ict.Petra.Server.MFinance.Common.TAccountInfo.PostingStatus
get

If there's no current row, this will raise an exception.


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