project QadFinancials > class BPeriod > business logic query PeriodPrevPeriodByYearPeriod

Description

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


Parameters


iiCompanyIdintegerCompany id
iiPeriodYearintegerPass the year
iiPeriodPeriodintegerPass the Period


query condition


  each Period where
Period.Company_Id = iiCompanyId AND
Period.PeriodTypeCode <> {&PERIODTYPECODE-YEARCLOSING} AND
Period.PeriodYearPeriod < iiPeriodYear * 100 + iiPeriodPeriod


query sort order


Period.Company_ID (ascending)
Period.PeriodYear (ascending)
Period.PeriodPeriod (ascending)


query resultset tqPeriodPrevPeriodByYearPeriod


field namedata typedb fielddescription
tiCompany_IDintegerPeriod.Company_IDLink to Company
tiPeriod_IDintegerPeriod.Period_IDRecord ID
ttPeriodEndDatedatePeriod.PeriodEndDateEnd Date
tiPeriodPeriodintegerPeriod.PeriodPeriodGL Period
ttPeriodStartDatedatePeriod.PeriodStartDateStart Date
tiPeriodYearintegerPeriod.PeriodYearGL Calendar Year
tiPeriodYearPeriodintegerPeriod.PeriodYearPeriodGL Calendar Year/GL Period


Internal usage


QadFinancials
method BAnalyticalReport.CostCentreTransDetHist
method BAnalyticalReport.CostCentreTransSummHist
method BAnalyticalReport.ProjectTransDetHist
method BAnalyticalReport.ProjectTransSummHist
method BAnalyticalReport.SafOnlyTransDetHist
method BAnalyticalReport.SafOnlyTransSummHist
method BCashBoxReport.CashBook
method BConsolid.CheckPreviousPeriod
method BConsolid.ValidateComponentPostSub1
method BConsolidDump.AdditionalUpdatesPosting
method BDebtorReport.GetAppropriatePeriodByEndOfDate
method BGLReport.BalanceSheetReport
method BGLReport.CalClosingBalance
method BGLReport.CalculateMeasureDateforBS
method BGLReport.CalculateMeasureDateforIS
method BGLReport.CalculateOpeningBalanceForNumberingPeriod
method BGLReport.CalculateOpeningBalanceForPeriod
method BGLReport.CalMeasureActualsForISGL
method BGLReport.CalMeasureActualsForMultiColISGL
method BGLReport.CalOpeningBalance
method BGLReport.CalOpeningBalanceForAuditLogRpt
method BGLReport.FindWholePeriodRange
method BGLReport.GetCorrectMeasureDateForIS
method BGLReport.GetYearPeriodForChineseBS
method BGLReport.GetYearPeriodForChineseIS
method BGLReport.TrialBalance
method BGLReport.VATPayableLedger