project QadFinancials > class BFixedAssetReport > business logic query CapitalizedFixedAsset


Parameters


iiCompanyIdintegerCompany id
icCandoFAAssetCodecharacter
icFromFAAssetCodecharacter
icToFAAssetCodecharacter
icBookCodecharacter
icCandoFAAssetTypecharacter
icFromFAAssetTypecharacter
icToFAAssetTypecharacter
icCandoGLCodecharacter
icFromGLCodecharacter
icToGLCodecharacter
iiFromBreakOffPeriodinteger
iiToBreakOffPeriodinteger
icCandoFACatalogueValue2character
icCandoFACatalogueValue3character
icCandoFACatalogueValue4character
icCandoFACatalogueValue5character
icCandoFACatalogueValue6character


query condition


  each FAAsset where
FAAsset.Company_Id = iiCompanyId AND
FAAsset.FAAssetIsCapitalized = true AND
FAAsset.FAAssetCode can-do icCandoFAAssetCode AND
FAAsset.FAAssetCode >= icFromFAAssetCode AND
FAAsset.FAAssetCode <= icToFAAssetCode AND
FAAsset.FAAssetCatalogueValue2 can-do icCandoFACatalogueValue2 AND
FAAsset.FAAssetCatalogueValue3 can-do icCandoFACatalogueValue3 AND
FAAsset.FAAssetCatalogueValue4 can-do icCandoFACatalogueValue4 AND
FAAsset.FAAssetCatalogueValue5 can-do icCandoFACatalogueValue5 AND
FAAsset.FAAssetCatalogueValue6 can-do icCandoFACatalogueValue6

      each FAAssetBook (inner-join) where
FAAssetBook.FAAsset_ID = FAAsset.FAAsset_ID AND
FAAssetBook.FAAssetBookCode = icBookCode

          first FABookType (inner-join) where
FABookType.Company_Id = iiCompanyId AND
FABookType.FABookType_ID = FAAssetBook.FABookType_ID AND

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

          each FACapitalAssetBook (inner-join) where
FACapitalAssetBook.FAAssetBook_ID = FAAssetBook.FAAssetBook_ID AND

              first FACapital (inner-join) where
FACapital.Company_Id = iiCompanyId AND
FACapital.FACapital_ID = FACapitalAssetBook.FACapital_ID AND

                  first GL (inner-join) where
GL.SharedSet_Id = vi_GL_sharedset(iiCompanyId) AND
GL.GL_ID = FACapital.GL_ID AND
GL.GLCode can-do icCandoGLCode AND
GL.GLCode >= icFromGLCode AND
GL.GLCode <= icToGLCode

                  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 Journal (inner-join) where
Journal.SharedSet_Id = vi_JOURNAL_sharedset(iiCompanyId) AND
Journal.Journal_ID = Posting.Journal_ID AND

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

      first FAAssetType (inner-join) where
FAAssetType.Company_Id = iiCompanyId AND
FAAssetType.FAAssetType_ID = FAAsset.FAAssetType_ID AND
FAAssetType.FAAssetTypeCode can-do icCandoFAAssetType AND
FAAssetType.FAAssetTypeCode >= icFromFAAssetType AND
FAAssetType.FAAssetTypeCode <= icToFAAssetType


query resultset tqCapitalizedFixedAsset


field namedata typedb fielddescription
tiFAAsset_IDintegerFAAsset.FAAsset_IDRecord ID
tcFAAssetBookDeprTypecharacterFAAssetBook.FAAssetBookDeprTypeDepreciation Type
tiFAAssetBookPeriodsDeprintegerFAAssetBook.FAAssetBookPeriodsDeprPeriods Depreciated
tdFAAssetBookSalvageAmountCCdecimalFAAssetBook.FAAssetBookSalvageAmountCCSC Salvage Amount
tdFAAssetBookSalvageAmountLCdecimalFAAssetBook.FAAssetBookSalvageAmountLCBC Salvage Amount
tcFAAssetCodecharacterFAAsset.FAAssetCodeCode
tcFAAssetDescriptioncharacterFAAsset.FAAssetDescriptionDescription
tiFAAssetType_IDintegerFAAssetType.FAAssetType_IDRecord ID
tcFAAssetTypeCodecharacterFAAssetType.FAAssetTypeCodeCode
tcFAAssetTypeDescriptioncharacterFAAssetType.FAAssetTypeDescriptionDescription
tcFABookCodecharacterFAAssetBook.FAAssetBookCodeCode
tdFACapitalAmountLCdecimalFACapital.FACapitalAmountLCBC Amount
tcFACapitalDescriptioncharacterFACapital.FACapitalDescriptionDescription
tcGLCodecharacterGL.GLCodeA code identifying the GL account.
tiJournal_IDintegerPosting.Journal_IDDaybook Code
tcJournalCodecharacterJournal.JournalCodeA daybook code (maximum eight characters).
tcLayerCodecharacterLayer.LayerCodeLayer Code
tiPeriod_IDintegerPosting.Period_IDLink to Period
tiPeriodPeriodintegerPeriod.PeriodPeriodGL Period
tiPeriodYearintegerPeriod.PeriodYearGL Calendar Year
tiPeriodYearPeriodintegerPeriod.PeriodYearPeriodGL Calendar Year/GL Period
ttPostingDatedatePosting.PostingDateThe accounting date on which the journal entry is posted. The posting date must be a valid calendar date and must be within the GL calendar year (PostingYear) and period (PostingPeriod).
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.
tcPostingTextcharacterPosting.PostingTextFree text describing the posting.
api annotation:Value for this field defaults to blank
tiPostingVoucherintegerPosting.PostingVoucherVoucher is a sequential number that uniquely identifies the journal entry (within the combination of an entity and a daybook code).
api annotation:In create mode,enter 0 in this field - the voucher number is generated by the system. In Modify/Delete, the correct voucher number must be entered because this identifies the record.
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(FAAsset),rowid(FAAssetBook),rowid(FABookType),rowid(Layer),rowid(FACapitalAssetBook),rowid(FACapital),rowid(GL),rowid(PostingLine),rowid(Posting),rowid(Journal),rowid(Period),rowid(FAAssetType)


Internal usage


QadFinancials
method BFixedAssetReport.MovementsByAssetCode
method BFixedAssetReport.MutationsByGL
method BFixedAssetReport.TransactionsByAssetCode