OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger Class Reference

tools for populating a ledger with data More...

Static Public Member Functions

static void UpdateLedger (DateTime ACalendarStartDate)
 update the current ledger with new number of forward posting periods, and different start date for the calendar More...
 
static void CreateNewLedger ()
 create new ledger More...
 
static void InitExchangeRate (TDataBase ADataBase=null)
 init the exchange rate, to avoid messages "Cannot find exchange rate for EUR USD" More...
 
static void PopulateData (string datadirectory, bool smallNumber=false)
 Populate ledger with gifts and invoices, post batches, close periods and years, according to FNumberOfClosedPeriods More...
 

Static Public Attributes

static int FLedgerNumber = 43
 LedgerNumber to be set from outside. More...
 
static int FNumberOfClosedPeriods = 5
 will start the calendar early enough so that the current period is open More...
 
static int FNumberOfFwdPostingPeriods = 12
 we used to have 8 open periods after the current period, but 12 is easier for the test databases More...
 

Detailed Description

tools for populating a ledger with data

Member Function Documentation

◆ CreateNewLedger()

static void Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger.CreateNewLedger ( )
inlinestatic

create new ledger

◆ InitExchangeRate()

static void Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger.InitExchangeRate ( TDataBase  ADataBase = null)
inlinestatic

init the exchange rate, to avoid messages "Cannot find exchange rate for EUR USD"

◆ PopulateData()

static void Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger.PopulateData ( string  datadirectory,
bool  smallNumber = false 
)
inlinestatic

Populate ledger with gifts and invoices, post batches, close periods and years, according to FNumberOfClosedPeriods

◆ UpdateLedger()

static void Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger.UpdateLedger ( DateTime  ACalendarStartDate)
inlinestatic

update the current ledger with new number of forward posting periods, and different start date for the calendar

Member Data Documentation

◆ FLedgerNumber

int Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger.FLedgerNumber = 43
static

LedgerNumber to be set from outside.

◆ FNumberOfClosedPeriods

int Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger.FNumberOfClosedPeriods = 5
static

will start the calendar early enough so that the current period is open

◆ FNumberOfFwdPostingPeriods

int Ict.Petra.Tools.SampleDataConstructor.SampleDataLedger.FNumberOfFwdPostingPeriods = 12
static

we used to have 8 open periods after the current period, but 12 is easier for the test databases


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