OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper Class Reference

Contains helper functions for the shared validation of Finance data. More...

Public Member Functions

delegate bool TGetValidPostingDateRange (Int32 ALedgerNumber, out DateTime AStartDateCurrentPeriod, out DateTime AEndDateLastForwardingPeriod)
 Delegate for invoking the process of finding the valid start and end dates for the specified Ledger. More...
 
delegate bool TGetValidPeriodDates (Int32 ALedgerNumber, Int32 AYearNumber, Int32 ADiffPeriod, Int32 APeriodNumber, out DateTime AStartDatePeriod, out DateTime AEndDatePeriod)
 Delegate for invoking the process of finding the valid start and end dates for the specified period. More...
 
delegate bool TGetFirstDayOfAccountingPeriod (Int32 ALedgerNumber, DateTime ADateInAPeriod, out DateTime AFirstDayOfPeriod, TDataBase ADataBase=null)
 Delegate for invoking the process of finding the first day in the accounting period for the specified Ledger and date. More...
 

Static Public Member Functions

static bool GetValidPostingDateRange (Int32 ALedgerNumber, out DateTime AStartDateCurrentPeriod, out DateTime AEndDateLastForwardingPeriod)
 Get the valid posting date range for the specified ledger More...
 
static bool GetValidPeriodDates (Int32 ALedgerNumber, Int32 AYearNumber, Int32 ADiffPeriod, Int32 APeriodNumber, out DateTime AStartDatePeriod, out DateTime AEndDatePeriod)
 Get the valid date range for the specified period More...
 
static bool GetFirstDayOfAccountingPeriod (Int32 ALedgerNumber, DateTime ADateInAPeriod, out DateTime AFirstDayOfPeriod, TDataBase ADataBase=null)
 Get the first day in the accounting period for any specified date/ledger More...
 

Properties

static TGetValidPostingDateRange GetValidPostingDateRangeDelegate [get, set]
 This property is used to provide a function which invokes the verification of the existence of a Finance. More...
 
static TGetValidPeriodDates GetValidPeriodDatesDelegate [get, set]
 This property is used to provide a function which invokes the verification of the existence of a Finance. More...
 
static TGetFirstDayOfAccountingPeriod GetFirstDayOfAccountingPeriodDelegate [get, set]
 This property is used to provide a function which determines the first day of the accounting period for the ledger and date specified. More...
 

Detailed Description

Contains helper functions for the shared validation of Finance data.

Member Function Documentation

◆ GetFirstDayOfAccountingPeriod()

static bool Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.GetFirstDayOfAccountingPeriod ( Int32  ALedgerNumber,
DateTime  ADateInAPeriod,
out DateTime  AFirstDayOfPeriod,
TDataBase  ADataBase = null 
)
inlinestatic

Get the first day in the accounting period for any specified date/ledger

Parameters
ALedgerNumber
ADateInAPeriod
AFirstDayOfPeriod
ADataBase
Returns
The first day in the accounting period for the date specified.

◆ GetValidPeriodDates()

static bool Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.GetValidPeriodDates ( Int32  ALedgerNumber,
Int32  AYearNumber,
Int32  ADiffPeriod,
Int32  APeriodNumber,
out DateTime  AStartDatePeriod,
out DateTime  AEndDatePeriod 
)
inlinestatic

Get the valid date range for the specified period

Parameters
ALedgerNumber
AYearNumber
ADiffPeriod
APeriodNumber
AStartDatePeriod
AEndDatePeriod
Returns
true if dates are returned OK

◆ GetValidPostingDateRange()

static bool Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.GetValidPostingDateRange ( Int32  ALedgerNumber,
out DateTime  AStartDateCurrentPeriod,
out DateTime  AEndDateLastForwardingPeriod 
)
inlinestatic

Get the valid posting date range for the specified ledger

Parameters
ALedgerNumber
AStartDateCurrentPeriod
AEndDateLastForwardingPeriod
Returns
true if dates are returned OK

◆ TGetFirstDayOfAccountingPeriod()

delegate bool Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.TGetFirstDayOfAccountingPeriod ( Int32  ALedgerNumber,
DateTime  ADateInAPeriod,
out DateTime  AFirstDayOfPeriod,
TDataBase  ADataBase = null 
)

Delegate for invoking the process of finding the first day in the accounting period for the specified Ledger and date.

◆ TGetValidPeriodDates()

delegate bool Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.TGetValidPeriodDates ( Int32  ALedgerNumber,
Int32  AYearNumber,
Int32  ADiffPeriod,
Int32  APeriodNumber,
out DateTime  AStartDatePeriod,
out DateTime  AEndDatePeriod 
)

Delegate for invoking the process of finding the valid start and end dates for the specified period.

◆ TGetValidPostingDateRange()

delegate bool Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.TGetValidPostingDateRange ( Int32  ALedgerNumber,
out DateTime  AStartDateCurrentPeriod,
out DateTime  AEndDateLastForwardingPeriod 
)

Delegate for invoking the process of finding the valid start and end dates for the specified Ledger.

Property Documentation

◆ GetFirstDayOfAccountingPeriodDelegate

TGetFirstDayOfAccountingPeriod Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.GetFirstDayOfAccountingPeriodDelegate
staticgetset

This property is used to provide a function which determines the first day of the accounting period for the ledger and date specified.

The Delegate is set up at the start of the application.

◆ GetValidPeriodDatesDelegate

TGetValidPeriodDates Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.GetValidPeriodDatesDelegate
staticgetset

This property is used to provide a function which invokes the verification of the existence of a Finance.

The Delegate is set up at the start of the application.

◆ GetValidPostingDateRangeDelegate

TGetValidPostingDateRange Ict.Petra.Server.MFinance.Validation.TFinanceValidationHelper.GetValidPostingDateRangeDelegate
staticgetset

This property is used to provide a function which invokes the verification of the existence of a Finance.

The Delegate is set up at the start of the application.


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