OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MFinance.GL.CLSRevaluation Class Reference

Main Revaluation Class. The routine is too complex for a linear program. More...

Public Member Functions

 CLSRevaluation (int ALedgerNum, string[] AForeignAccount, string[] AForeignCurrency, decimal[] ANewExchangeRate, String ACostCentre, TDataBase ADataBase=null)
 Constructor to initialize a variable set. More...
 
Boolean RunRevaluation (out Int32 glBatchNumber)
 Run the revaluation and set the flag for the ledger Returns true if a Reval batch was posted. More...
 

Static Public Member Functions

static decimal AccountDelta (decimal AAmountInBaseCurency, decimal AAmountInForeignCurrency, decimal AExchangeRate, int ACurrencyDigits)
 In order to be able to use a unit test for the calculation, it is public ... More...
 

Properties

TVerificationResultCollection VerificationResultCollection [get]
 

Detailed Description

Main Revaluation Class. The routine is too complex for a linear program.

Constructor & Destructor Documentation

◆ CLSRevaluation()

Ict.Petra.Server.MFinance.GL.CLSRevaluation.CLSRevaluation ( int  ALedgerNum,
string[]  AForeignAccount,
string[]  AForeignCurrency,
decimal[]  ANewExchangeRate,
String  ACostCentre,
TDataBase  ADataBase = null 
)
inline

Constructor to initialize a variable set.

Member Function Documentation

◆ AccountDelta()

static decimal Ict.Petra.Server.MFinance.GL.CLSRevaluation.AccountDelta ( decimal  AAmountInBaseCurency,
decimal  AAmountInForeignCurrency,
decimal  AExchangeRate,
int  ACurrencyDigits 
)
inlinestatic

In order to be able to use a unit test for the calculation, it is public ...

Parameters
AAmountInBaseCurencyAvailable account value in base currency units
AAmountInForeignCurrencyAvailable account value in foreign currency units
AExchangeRateThe exchange rate which shall be realized after the accounting has been done
ACurrencyDigitsNumber of rounding digits
Returns

◆ RunRevaluation()

Boolean Ict.Petra.Server.MFinance.GL.CLSRevaluation.RunRevaluation ( out Int32  glBatchNumber)
inline

Run the revaluation and set the flag for the ledger Returns true if a Reval batch was posted.

Property Documentation

◆ VerificationResultCollection

TVerificationResultCollection Ict.Petra.Server.MFinance.GL.CLSRevaluation.VerificationResultCollection
get


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