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

More...

Static Public Member Functions

static int GetGLMSequenceForBudget (int ALedgerNumber, string AAccountCode, string ACostCentreCode, int AYear)
 GetGLMSequence More...
 
static decimal GetActual (int ALedgerNumber, int AGLMSeqThisYear, int AGLMSeqNextYear, int APeriodNumber, int ANumberAccountingPeriods, int ACurrentFinancialYear, int AThisYear, bool AYTD, string ACurrencySelect)
 
static decimal GetBudget (int AGLMSeqThisYear, int AGLMSeqNextYear, int APeriodNumber, int ANumberAccountingPeriods, bool AYTD, string ACurrencySelect)
 Retrieves a budget value More...
 

Detailed Description

Member Function Documentation

◆ GetActual()

static decimal Ict.Petra.Server.MFinance.Common.TCommonBudgetMaintain.GetActual ( int  ALedgerNumber,
int  AGLMSeqThisYear,
int  AGLMSeqNextYear,
int  APeriodNumber,
int  ANumberAccountingPeriods,
int  ACurrentFinancialYear,
int  AThisYear,
bool  AYTD,
string  ACurrencySelect 
)
inlinestatic

<summary>

Description: GetActual retrieves the actuals value of the given period, no matter if it is in a forwarding period. GetActual is similar to GetBudget. The main difference is, that forwarding periods are saved in the current year. You still need the sequence_next_year, because this_year can be older than current_financial_year of the ledger. So you need to give number_accounting_periods and current_financial_year of the ledger. You also need to give the number of the year from which you want the data. Currency_select is either "B" for base or "I" for international currency or "T" for transaction currency You want e.g. the actual data of period 13 in year 2, the current financial year is 3. The call would look like: GetActual(sequence_year_2, sequence_year_3, 13, 12, 3, 2, false, "B");

That means, the function has to return the difference between year 3 period 1 and the start balance of year 3.

Parameters
ALedgerNumber
AGLMSeqThisYear
AGLMSeqNextYear
APeriodNumber
ANumberAccountingPeriods
ACurrentFinancialYear
AThisYear
AYTD
ACurrencySelect
Returns

◆ GetBudget()

static decimal Ict.Petra.Server.MFinance.Common.TCommonBudgetMaintain.GetBudget ( int  AGLMSeqThisYear,
int  AGLMSeqNextYear,
int  APeriodNumber,
int  ANumberAccountingPeriods,
bool  AYTD,
string  ACurrencySelect 
)
inlinestatic

Retrieves a budget value

Parameters
AGLMSeqThisYear
AGLMSeqNextYear
APeriodNumber
ANumberAccountingPeriods
AYTD
ACurrencySelect
Returns

◆ GetGLMSequenceForBudget()

static int Ict.Petra.Server.MFinance.Common.TCommonBudgetMaintain.GetGLMSequenceForBudget ( int  ALedgerNumber,
string  AAccountCode,
string  ACostCentreCode,
int  AYear 
)
inlinestatic

GetGLMSequence

Parameters
ALedgerNumber
AAccountCode
ACostCentreCode
AYear
Returns
GLM Sequence no

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