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

Helper class for storing the amounts of a batch at posting level for account/costcentre combinations. More...

Static Public Member Functions

static string MakeKey (string AAccountCode, string ACostCentreCode)
 Generate a key for the account/costcentre combination. More...
 
static string GetAccountCode (string AKey)
 Get the account code from the key More...
 
static string GetCostCentreCode (string AKey)
 Get the cost centre code from the key More...
 

Public Attributes

decimal BaseAmount = 0.0M
 Amount in the base currency of the ledger. More...
 
decimal IntlAmount = 0.0M
 Amount in the intl currency of the ledger. More...
 
decimal TransAmount = 0.0M
 Amount in transaction currency; only for foreign currency accounts. More...
 

Detailed Description

Helper class for storing the amounts of a batch at posting level for account/costcentre combinations.

Member Function Documentation

◆ GetAccountCode()

static string Ict.Petra.Server.MFinance.Common.TGLPosting.TAmount.GetAccountCode ( string  AKey)
inlinestatic

Get the account code from the key

Parameters
AKey
Returns

◆ GetCostCentreCode()

static string Ict.Petra.Server.MFinance.Common.TGLPosting.TAmount.GetCostCentreCode ( string  AKey)
inlinestatic

Get the cost centre code from the key

Parameters
AKey
Returns

◆ MakeKey()

static string Ict.Petra.Server.MFinance.Common.TGLPosting.TAmount.MakeKey ( string  AAccountCode,
string  ACostCentreCode 
)
inlinestatic

Generate a key for the account/costcentre combination.

Member Data Documentation

◆ BaseAmount

decimal Ict.Petra.Server.MFinance.Common.TGLPosting.TAmount.BaseAmount = 0.0M

Amount in the base currency of the ledger.

◆ IntlAmount

decimal Ict.Petra.Server.MFinance.Common.TGLPosting.TAmount.IntlAmount = 0.0M

Amount in the intl currency of the ledger.

◆ TransAmount

decimal Ict.Petra.Server.MFinance.Common.TGLPosting.TAmount.TransAmount = 0.0M

Amount in transaction currency; only for foreign currency accounts.


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