project QadFinancials > class BClosingPostingsReport > business logic query GetNotLinkedFAAmounts


Parameters


iiCompanyIdintegerCompany id
iiGLIDinteger
iiTillYearPeriodinteger


query condition


  each GL where
GL.SharedSet_Id = vi_GL_sharedset(iiCompanyId) AND
GL.GL_ID = iiGLID

      each PostingLine (inner-join) where
PostingLine.Company_Id = iiCompanyId AND
PostingLine.GL_ID = GL.GL_ID AND

          each FACapital (outer-join) where
FACapital.Company_Id = iiCompanyId AND
FACapital.PostingLine_ID = PostingLine.PostingLine_ID AND

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

              first Journal (inner-join) where
Journal.SharedSet_Id = vi_JOURNAL_sharedset(iiCompanyId) AND
Journal.Journal_ID = Posting.Journal_ID AND

                  first JournalType (inner-join) where
JournalType.JournalTypeCode = Journal.JournalTypeCode AND

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


query resultset tqGetNotLinkedFAAmounts


field namedata typedb fielddescription
tiFACapital_IDintegerFACapital.FACapital_IDRecord ID
tcJournalTypeCodecharacterJournalType.JournalTypeCodeDaybook Type Code
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(GL),rowid(PostingLine),rowid(FACapital),rowid(Posting),rowid(Journal),rowid(JournalType),rowid(Period)


Internal usage


QadFinancials
method BClosingPostingsReport.FAControlGLBalance