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

This routine reads the line of a_ledger defined by the ledger number More...

Public Member Functions

 TLedgerInfo (int ALedgerNumber, TDataBase ADataBase=null)
 Constructor to address the correct table line (relevant ledger number). The constructor only will run the database accesses including a CommitTransaction and so this object may be used to "store" the data and use the database connection for something else. More...
 
string GetLedgerName ()
 Get the name for this Ledger More...
 
string GetLedgerBaseCurrency ()
 Get the base currency for this Ledger More...
 
string GetLedgerCountryCode ()
 Get the country code for this Ledger More...
 
string GetStandardCostCentre ()
 return standard cost centre to be used for given ledger number More...
 
string GetDefaultBankAccount ()
 get the default bank account for this ledger More...
 

Static Public Member Functions

static string GetStandardCostCentre (int ALedgerNumber)
 return standard cost centre to be used for given ledger number More...
 

Properties

string RevaluationAccount [get]
 Property to read the value of the Revaluation account More...
 
string BaseCurrency [get]
 Property to read the value of the base currency More...
 
string InternationalCurrency [get]
 Property to read the value of the International currency More...
 
bool ProvisionalYearEndFlag [get, set]
 Read or write the ProvisionalYearEndFlag More...
 
bool YearEndFlag [get, set]
 Read or write the YearEndFlag More...
 
int CurrentPeriod [get, set]
 Read or write the CurrentPeriod More...
 
int NumberOfAccountingPeriods [get]
 
int NumberFwdPostingPeriods [get]
 
int CurrentFinancialYear [get, set]
 
int LedgerNumber [get]
 
bool IltAccountFlag [get]
 
bool IltProcessingCentre [get]
 

Detailed Description

This routine reads the line of a_ledger defined by the ledger number

Constructor & Destructor Documentation

◆ TLedgerInfo()

Ict.Petra.Server.MFinance.Common.TLedgerInfo.TLedgerInfo ( int  ALedgerNumber,
TDataBase  ADataBase = null 
)
inline

Constructor to address the correct table line (relevant ledger number). The constructor only will run the database accesses including a CommitTransaction and so this object may be used to "store" the data and use the database connection for something else.

Parameters
ALedgerNumber
ADataBaseAn instantiated TDataBase object, or null (default = null). If null gets passed then the Method executes DB commands with a new Database connection

Member Function Documentation

◆ GetDefaultBankAccount()

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.GetDefaultBankAccount ( )
inline

get the default bank account for this ledger

◆ GetLedgerBaseCurrency()

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.GetLedgerBaseCurrency ( )
inline

Get the base currency for this Ledger

◆ GetLedgerCountryCode()

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.GetLedgerCountryCode ( )
inline

Get the country code for this Ledger

◆ GetLedgerName()

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.GetLedgerName ( )
inline

Get the name for this Ledger

◆ GetStandardCostCentre() [1/2]

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.GetStandardCostCentre ( )
inline

return standard cost centre to be used for given ledger number

◆ GetStandardCostCentre() [2/2]

static string Ict.Petra.Server.MFinance.Common.TLedgerInfo.GetStandardCostCentre ( int  ALedgerNumber)
inlinestatic

return standard cost centre to be used for given ledger number

Property Documentation

◆ BaseCurrency

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.BaseCurrency
get

Property to read the value of the base currency

◆ CurrentFinancialYear

int Ict.Petra.Server.MFinance.Common.TLedgerInfo.CurrentFinancialYear
getset

◆ CurrentPeriod

int Ict.Petra.Server.MFinance.Common.TLedgerInfo.CurrentPeriod
getset

Read or write the CurrentPeriod

◆ IltAccountFlag

bool Ict.Petra.Server.MFinance.Common.TLedgerInfo.IltAccountFlag
get

◆ IltProcessingCentre

bool Ict.Petra.Server.MFinance.Common.TLedgerInfo.IltProcessingCentre
get

◆ InternationalCurrency

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.InternationalCurrency
get

Property to read the value of the International currency

◆ LedgerNumber

int Ict.Petra.Server.MFinance.Common.TLedgerInfo.LedgerNumber
get

◆ NumberFwdPostingPeriods

int Ict.Petra.Server.MFinance.Common.TLedgerInfo.NumberFwdPostingPeriods
get

◆ NumberOfAccountingPeriods

int Ict.Petra.Server.MFinance.Common.TLedgerInfo.NumberOfAccountingPeriods
get

◆ ProvisionalYearEndFlag

bool Ict.Petra.Server.MFinance.Common.TLedgerInfo.ProvisionalYearEndFlag
getset

Read or write the ProvisionalYearEndFlag

◆ RevaluationAccount

string Ict.Petra.Server.MFinance.Common.TLedgerInfo.RevaluationAccount
get

Property to read the value of the Revaluation account

◆ YearEndFlag

bool Ict.Petra.Server.MFinance.Common.TLedgerInfo.YearEndFlag
getset

Read or write the YearEndFlag


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