project QadFinancials > class BPeriod > business logic query PeriodNextPeriodForPeriodStat

Description

Return the next periods.
A period is considered as 'next' when it is not a YC period, period status is Reported or Frozen and when the YearPeriod is greater then the input YearPeriod.


Parameters


iiCompanyIdintegerCompany id
iiPeriodPeriodintegerPass the Period
iiPeriodYearintegerPass the Year


query condition


  each Period where
Period.Company_Id = iiCompanyId AND
Period.PeriodTypeCode <> {&PERIODTYPECODE-YEARCLOSING} AND
Period.PeriodYearPeriod > iiPeriodYear * 100 + iiPeriodPeriod AND
(Period.PeriodStatus = 'Periodreported' OR
Period.PeriodStatus = 'Periodfrozen' )


query resultset tqPeriodNextPeriodForPeriodStat


field namedata typedb fielddescription
tiCompany_IDintegerPeriod.Company_IDLink to Company
tiPeriod_IDintegerPeriod.Period_IDRecord ID
tiPeriodPeriodintegerPeriod.PeriodPeriodGL Period
tcPeriodStatuscharacterPeriod.PeriodStatusStatus
tcPeriodTypeCodecharacterPeriod.PeriodTypeCodeGL Period Type
tiPeriodYearintegerPeriod.PeriodYearGL Calendar Year
tiPeriodYearPeriodintegerPeriod.PeriodYearPeriodGL Calendar Year/GL Period


Internal usage


QadFinancials
method BPeriod.ValidateComponentPost