project QadFinancials > class BClosingPostingsReport > business logic query BaseFixedAssetControlGL


Parameters


iiCompanyIdintegerCompany id
iiTillYearPeriodinteger


query condition


  each FACapital where
FACapital.Company_Id = iiCompanyId AND

      first FAAsset (conditional-join) where
FAAsset.Company_Id = iiCompanyId AND
FAAsset.FAAsset_ID = FACapital.FAAsset_ID AND

      first GL (inner-join) where
GL.SharedSet_Id = vi_GL_sharedset(iiCompanyId) AND
GL.GL_ID = FACapital.GL_ID AND

      first PostingLine (inner-join) where
PostingLine.Company_Id = iiCompanyId AND
PostingLine.PostingLine_ID = FACapital.PostingLine_ID AND

          first Posting (inner-join) where
Posting.Company_Id = iiCompanyId AND
Posting.Posting_ID = PostingLine.Posting_ID AND

              first Period (inner-join) where
Period.Company_Id = iiCompanyId AND
Period.Period_ID = Posting.Period_ID AND
Period.PeriodYearPeriod <= iiTillYearPeriod


query resultset tqBaseFixedAssetControlGL


field namedata typedb fielddescription
tiFAAsset_IDintegerFAAsset.FAAsset_IDRecord ID
tcFAAssetCodecharacterFAAsset.FAAssetCodeCode
tcFAAssetDescriptioncharacterFAAsset.FAAssetDescriptionDescription
tiGL_IDintegerGL.GL_IDRecord ID
tcGLCodecharacterGL.GLCodeA code identifying the GL account.
tcGLDescriptioncharacterGL.GLDescriptionA description of the GL account.
tiPostingLine_IDintegerPostingLine.PostingLine_IDRecord ID
tdPostingLineCreditCCdecimalPostingLine.PostingLineCreditCCSC Credit
api annotation:Partial Update = yes - it will get a default value depending on the value of PostingLinCreditTC, PostingLineCCRate & PostingLineCCScale.
SC Amount = TC Amount * Exchange rate (TC/SC) * Scale Factor (TC/SC). If Partial Update is false, you should enter the correct value for this field
tdPostingLineCreditLCdecimalPostingLine.PostingLineCreditLCBC Credit
api annotation:Partial Update = yes - it will get a default value depends on the value of PostingLineCreditTC, PostingLineExchangeRate & PostingLineRateScale.
BC Amount = TC Amount * Exchange rate (TC/BC) * Scale Factor (TC/BC). If Partial Update is false, enter a value for this field.
tdPostingLineDebitCCdecimalPostingLine.PostingLineDebitCCSC Debit
api annotation:Partial Update = yes - it will get a default value depending on the value of PostingLineDebitTC, PostingLineCCRate & PostingLineCCScale.
SC Amount = TC Amount * Exchange rate (TC/SC) * Scale Factor (TC/SC). If Partial Update is false, enter the correct value for this field.
tdPostingLineDebitLCdecimalPostingLine.PostingLineDebitLCBC Debit
api annotation:Partial Update = yes - it will get a default value depending on the value of PostingLineDebitTC, PostingLineExchangeRate and PostingLineRateScale.
BC Amount = TC Amount * Exchange rate (TC/BC) * Scale Factor (TC/BC). If Partial Update = false, enter the correct value into this field.
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(FACapital),rowid(FAAsset),rowid(GL),rowid(PostingLine),rowid(Posting),rowid(Period)


Internal usage


QadFinancials
method BClosingPostingsReport.FAControlGLBalance