project QadFinancials > class BRevaluationReport > business logic query RevaluationForBase


Parameters


iiCompanyIdintegerCompany id
iiAccPeriodinteger
iiAccYearinteger
iiRevalNumberinteger
icRevalAreacharacter


query condition


  each RevalHeader where
RevalHeader.Company_Id = iiCompanyId AND
RevalHeader.RevalHeaderNumber = iiRevalNumber

      first Layer (inner-join) where
Layer.Layer_ID = RevalHeader.Layer_ID AND

      first Period (inner-join) where
Period.Company_Id = iiCompanyId AND
Period.Period_ID = RevalHeader.Period_ID AND
Period.PeriodYear = iiAccYear AND
Period.PeriodPeriod = iiAccPeriod

      each Reval (conditional-join) where
Reval.RevalHeader_ID = RevalHeader.RevalHeader_ID AND
Reval.RevalRevaluationArea can-do icRevalArea

          each RevalGL (conditional-join) where
RevalGL.Reval_ID = Reval.Reval_ID AND

              first BusinessRelation (conditional-join) where
BusinessRelation.BusinessRelation_ID = RevalGL.IntercoBusinessRelation_ID AND

              first GL1 (conditional-join) where
GL1.SharedSet_Id = vi_GL_sharedset(iiCompanyId) AND
GL1.GL_ID = RevalGL.GL_ID AND

                  first GL2 (conditional-join) where
GL2.SharedSet_Id = vi_GL_sharedset(iiCompanyId) AND
GL2.GL_ID = GL1.RevaluationGL_ID AND

              first Project (conditional-join) where
Project.SharedSet_Id = vi_PROJECT_sharedset(iiCompanyId) AND
Project.Project_ID = RevalGL.Project_ID AND

              each RevalDet (conditional-join) where
RevalDet.RevalGL_ID = RevalGL.RevalGL_ID AND

              first RevalGLSafCombined (conditional-join) where
RevalGLSafCombined.RevalGLSafCombined_ID = RevalGL.RevalGLSafCombined_ID AND


query resultset tqRevaluationForBase


field namedata typedb fielddescription
tcBusinessRelationCodeIntcharacterBusinessRelation.BusinessRelationCodeBusiness Relation. A code to identify the business relation.
If this field does not have a input from the user, the system automatically generates a number for the record based on the sequence defined in Business Relation Autonumber Create.
tcBusinessRelationName1IntcharacterBusinessRelation.BusinessRelationName1Name: The full name of the business relation.
This field sets the default name for linked addresses such as customers and suppliers.
api annotation:PartialUpdate = yes - defaults to the BusinessRelationCode.
tiCostCentre_IDintegerRevalGL.CostCentre_IDCost Center
tiCurrency_IDintegerRevalGL.Currency_IDCurrency Code
tiDivision_IDintegerRevalGL.Division_IDSub-Account
tiGL_IDintegerGL1.GL_IDRecord ID
tiGL_ID1integerGL2.GL_IDRecord ID
tcGLCodeRevaluatedcharacterGL1.GLCodeA code identifying the GL account.
tcGLCodeRevaluationcharacterGL2.GLCodeA code identifying the GL account.
tcGLDescriptionRevaluatedcharacterGL1.GLDescriptionA description of the GL account.
tcGLDescriptionRevaluationcharacterGL2.GLDescriptionA description of the GL account.
tlGLIsDebitAccountlogicalGL1.GLIsDebitAccountDebit/Credit: The posting designation for this account.
api annotation:This field can be left blank as it will be calculated by the system.
tiLayer_IDintegerLayer.Layer_IDRecord ID
tcLayerCodecharacterLayer.LayerCodeLayer Code
tcLayerDescriptioncharacterLayer.LayerDescriptionDescription
tcLayerTypeCodecharacterLayer.LayerTypeCodeLayer Type
tiPeriodPeriodRevintegerPeriod.PeriodPeriodGL Period
tiPeriodYearRevintegerPeriod.PeriodYearGL Calendar Year
tiProject_IDintegerProject.Project_IDRecord ID
tcProjectCodecharacterProject.ProjectCodeProject
tcProjectDescriptioncharacterProject.ProjectDescriptionDescription
tiRevalDet_IDintegerRevalDet.RevalDet_IDRecord ID
tdRevalDetCreditCCdecimalRevalDet.RevalDetCreditCCSC Credit
tdRevalDetCreditLCdecimalRevalDet.RevalDetCreditLCBC Credit
tdRevalDetCreditTCdecimalRevalDet.RevalDetCreditTCTC Credit
tdRevalDetDebitCCdecimalRevalDet.RevalDetDebitCCSC Debit
tdRevalDetDebitLCdecimalRevalDet.RevalDetDebitLCBC Debit
tdRevalDetDebitTCdecimalRevalDet.RevalDetDebitTCTC Debit
tiRevalDetParentObject_IDintegerRevalDet.RevalDetParentObject_IDLink to ParentObject
tcRevalDetParentObjectTypecharacterRevalDet.RevalDetParentObjectTypeObject Type
tdRevalDetRevCreditCCdecimalRevalDet.RevalDetRevCreditCCSC Revaluated Credit
tdRevalDetRevCreditLCdecimalRevalDet.RevalDetRevCreditLCBC Revaluated Credit
tdRevalDetRevDebitCCdecimalRevalDet.RevalDetRevDebitCCSC Revaluated Debit
tdRevalDetRevDebitLCdecimalRevalDet.RevalDetRevDebitLCBC Revaluated Debit
tiRevalGL_IDintegerRevalGL.RevalGL_IDRecord ID
tdRevalGLCreditCCdecimalRevalGL.RevalGLCreditCCSC Credit
tdRevalGLCreditLCdecimalRevalGL.RevalGLCreditLCBC Credit
tdRevalGLCreditTCdecimalRevalGL.RevalGLCreditTCTC Credit
tdRevalGLDebitCCdecimalRevalGL.RevalGLDebitCCSC Debit
tdRevalGLDebitLCdecimalRevalGL.RevalGLDebitLCBC Debit
tdRevalGLDebitTCdecimalRevalGL.RevalGLDebitTCTC Debit
tcRevalGLMethodCCcharacterRevalGL.RevalGLMethodCCSC Revaluation Method
tcRevalGLMethodTCcharacterRevalGL.RevalGLMethodTCTC Revaluation Method
tdRevalGLRevCreditCCdecimalRevalGL.RevalGLRevCreditCCSC Revaluated Credit
tdRevalGLRevCreditLCdecimalRevalGL.RevalGLRevCreditLCBC Revaluated Credit
tdRevalGLRevDebitCCdecimalRevalGL.RevalGLRevDebitCCSC Revaluated Debit
tdRevalGLRevDebitLCdecimalRevalGL.RevalGLRevDebitLCBC Revaluated Debit
tcRevalGLTypecharacterRevalGL.RevalGLTypeGL Type
tcRevalHeaderDescriptioncharacterRevalHeader.RevalHeaderDescriptionRev Desc
tiRevalHeaderNumberintegerRevalHeader.RevalHeaderNumberRev Number
ttRevalHeaderRevalDatedateRevalHeader.RevalHeaderRevalDateRev Date
tcRevalRevaluationAreacharacterReval.RevalRevaluationAreaRevaluation Area
tcRevalStatusCodecharacterReval.RevalStatusCodeStatus


Internal usage


QadFinancials
method BRevaluationReport.Revaluation