project QadFinancials > class BPeriod > business logic query PeriodByYearPeriodForPrevStat

Description

Return the previous periods
A period is considered as 'prev' when it is not a YC period, and when the YearPeriod is greater then the input YearPeriod.


Parameters


iiCompanyIdintegerCompany id
iiPeriodPeriodinteger
iiPeriodYearinteger


query condition


  each Period where
Period.Company_Id = iiCompanyId AND
Period.PeriodTypeCode <> {&PERIODTYPECODE-YEARCLOSING} AND
Period.PeriodYearPeriod < iiPeriodYear * 100 + iiPeriodPeriod AND
(Period.PeriodStatus <> {&PERIODSTATUS-REPORTED} AND
Period.PeriodStatus <> {&PERIODSTATUS-FROZEN} )


query resultset tqPeriodByYearPeriodForPrevStat


field namedata typedb fielddescription
tiCompany_IDintegerPeriod.Company_IDLink to Company
tiPeriod_IDintegerPeriod.Period_IDRecord ID
tlPeriodIsReportCheckedlogicalPeriod.PeriodIsReportCheckedChecked/Reported
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