project QadFinancials > class BPosting > business logic query PostingByPeriodRange


Parameters


iiCompanyIdintegerCompany id
iiFromYearPeriodinteger
iiToYearPeriodinteger


query condition


  each Posting where
Posting.Company_Id = iiCompanyId AND
Posting.PostingYearPeriod >= iiFromYearPeriod and
Posting.PostingYearPeriod <= iiToYearPeriod

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

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

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

          first BusinessRelation (outer-join) where
BusinessRelation.BusinessRelation_ID = PostingLine.IntercoBusinessRelation_ID AND

          first CostCentre (outer-join) where
CostCentre.SharedSet_Id = vi_COSTCENTRE_sharedset(iiCompanyId) AND
CostCentre.CostCentre_ID = PostingLine.CostCentre_ID AND

          first Currency (inner-join) where
Currency.Currency_ID = PostingLine.Currency_ID AND

          first Division (outer-join) where
Division.SharedSet_Id = vi_DIVISION_sharedset(iiCompanyId) AND
Division.Division_ID = PostingLine.Division_ID AND

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

              first Unit (outer-join) where
Unit.Unit_ID = GL.Unit_ID AND

          first Project (outer-join) where
Project.SharedSet_Id = vi_PROJECT_sharedset(iiCompanyId) AND
Project.Project_ID = PostingLine.Project_ID AND


query resultset tqPostingByPeriodRange


field namedata typedb fielddescription
tcBusinessRelationICCodecharacterBusinessRelation.BusinessRelationICCodeIntercompany Code. When Intercompany is true, this field is mandatory.
The code entered here must match the intercompany code entered for GL accounts in order to generate intercompany reports.
The intercompany code must be unique for this business relation.
tiClosing_IDintegerPosting.ObsoleteClosing_IDLink to Closing
tiCompany_IDintegerPosting.Company_IDLink to Company
tiCostCentre_IDintegerPostingLine.CostCentre_IDCost Center Code
tcCostCentreCodecharacterCostCentre.CostCentreCodeCost Center: A code that identifies the cost center.
tiCreatorUsr_IDintegerPosting.CreatorUsr_IDLogin
tiCrossCompany_IDintegerPostingLine.CrossCompany_IDLink to Company
tiCrossCompanyPosting_IDintegerPostingLine.CrossCompanyPosting_IDPosting (Cross-Cy)
tiCrossCompanyPostingLine_IDintegerPostingLine.CrossCompanyPostingLine_IDPosting line (Cross-Cy)
tiCurrency_IDintegerPostingLine.Currency_IDCurrency Code
tcCurrencyCodecharacterCurrency.CurrencyCodeCurrency Code
tcCustomCombo0characterPosting.CustomCombo0Custom Combo Field
tcCustomCombo1characterPosting.CustomCombo1Custom Combo Field
tiDivision_IDintegerPostingLine.Division_IDSub-Account Code
tcDivisionCodecharacterDivision.DivisionCodeSub-Account
tiGL_IDintegerGL.GL_IDRecord ID
tcGLCodecharacterGL.GLCodeA code identifying the GL account.
tcGLDescriptioncharacterGL.GLDescriptionA description of the GL account.
tlGLIsAutomaticAccountlogicalGL.GLIsAutomaticAccountAutomatic Account: Indicate what types of posting this account accepts.

Its value is decided by the value of tcPostingType.
api annotation:This field can be left blank as it will be calculated by the system.
tlGLIsDebitAccountlogicalGL.GLIsDebitAccountDebit/Credit: The posting designation for this account.
api annotation:This field can be left blank as it will be calculated by the system.
tcGLTypeCodecharacterGL.GLTypeCodeA code identifying the type of account.
tiIntercoBusinessRelation_IDintegerPostingLine.IntercoBusinessRelation_IDIntercompany Code
tiJournal_IDintegerPosting.Journal_IDDaybook Code
tcJournalCodecharacterJournal.JournalCodeA daybook code (maximum eight characters).
tiLastVerifiedUsr_IDintegerPosting.LastVerifiedUsr_IDLink to Usr
tcLayerTypeCodecharacterLayer.LayerTypeCodeLayer Type
tiPeriod_IDintegerPosting.Period_IDLink to Period
tiPeriodMark_IDintegerPosting.PeriodMark_IDLink to PeriodMark
tiPosting_IDintegerPosting.Posting_IDRecord ID
tiPostingAddGLNbrintegerPosting.PostingAddGLNbrWhen additional GL numbering is enabled for an entity, all postings for this entity are assigned a continuous, uninterrupted incremental sequence numbers as the value for this field.
api annotation:When additional GL numbering is not enabled for the current entity, value for this field defaults to 0.
tcPostingBusinessRelationTxtcharacterPosting.PostingBusinessRelationTxtWhen the posting is a transaction linked to a business relation (for example, an invoice posting), this field contains the Business Relation Name. Used for information purposes on reports and browses.
api annotation:Value for this field defaults to blank.
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).
tcPostingInvoiceReferenceTxtcharacterPosting.PostingInvoiceReferenceTxtWhen the posting is part of an invoice posting, then this field contains the invoice number (Year/Daybook/Voucher extended with supplier invoice Reference in case of a supplier invoice). Used for information purpose on reports and browsers.
api annotation:Value for this field defaults to blank
tiPostingLine_IDintegerPostingLine.PostingLine_IDRecord ID
tiPostingLineCompanyIdintegerPostingLine.Company_IDLink to Company
tcPostingLineCostCentreTextcharacterPostingLine.PostingLineCostCentreTextCost Center
api annotation:Value for this field defaults to blank.
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.
tdPostingLineCreditPCdecimalPostingLine.PostingLineCreditPCPC Credit
api annotation:This field is obsolete and can be left blank.
tdPostingLineCreditTCdecimalPostingLine.PostingLineCreditTCTC Credit
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.
tdPostingLineDebitPCdecimalPostingLine.PostingLineDebitPCPC Debit
api annotation:This field is obsolete.
tdPostingLineDebitTCdecimalPostingLine.PostingLineDebitTCTC Debit
tdPostingLineExchangeRatedecimalPostingLine.PostingLineExchangeRateExchange Rate
api annotation:Default value for this field depends on the exchang erate shared set specified for the current domain.
tlPostingLineIsProjPostinglogicalPostingLine.PostingLineIsProjPostingProject Posting
tiPostingLineMaster_IDintegerPostingLine.PostingLineMaster_IDLink to Master
tiPostingLinePeriodIdintegerPostingLine.Period_IDLink to Period
tiPostingLinePostingIdintegerPostingLine.Posting_IDLink to Posting
tcPostingLineProjectTextcharacterPostingLine.PostingLineProjectTextProject
api annotation:Value for this field defaults to blank.
tdPostingLineQTYdecimalPostingLine.PostingLineQTYQuantity
api annotation:Value for this field defaults to 0.0000.
tdPostingLineRateScaledecimalPostingLine.PostingLineRateScaleScale Factor
api annotation:The default value is 1.
tcPostingLineSafTextcharacterPostingLine.PostingLineSafTextSAF
api annotation:Value for this field defaults to blank.
tiPostingLineSequenceintegerPostingLine.PostingLineSequenceSequence
tcPostingLineTextcharacterPostingLine.PostingLineTextDescription
api annotation:Value for this field defaults to blank. Note: if a new record is created through the user interface, the default value is as same as the value of "PostingText" of tPosting.
tiPostingLineTransaction_IDintegerPostingLine.PostingLineTransaction_IDLink to Transaction
tiPostingLineYearPeriodintegerPostingLine.PostingYearPeriodThe GL calendar year/period for the journal entry.
api annotation:In Create mode, it will get be defaulted to the value for the field PostingYearPeriod of tPosting.
tcPostingParentTextcharacterPosting.PostingParentTextContains the description field from the parent object that triggered the posting. When the posting is an invoice posting, this field contains the invoice description. When the posting is a banking entry posting, the description of the bank statement line is copied to this field, etc. Used for information purposes on reports and browses.
api annotation:Value for this field defaults to blank.
tiPostingPeriodintegerPosting.PostingPeriodThe GL period for the posting. The period must be open.
ttPostingSystemDatedatePosting.PostingSystemDateThe system date of the posting corresponding to "PostingDate".
api annotation:In Create mode, when Partial Update = yes - this field gets a default value which is the current date of the system.
tcPostingTextcharacterPosting.PostingTextFree text describing the posting.
api annotation:Value for this field defaults to blank
ttPostingValueDatedatePosting.PostingValueDateThe value date (used for banking entries).
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.
tiPostingYearintegerPosting.PostingYearThe GL calendar year for the posting.
tiPostingYearPeriodintegerPosting.PostingYearPeriodThe GL calendar year/period for the posting. This field is determined by "PostingPeriod" and "PostingYear".
api annotation:If Partial Update is true, the value defaults using PostingPeriod and PostingYear.
tiProject_IDintegerProject.Project_IDRecord ID
tcProjectCodecharacterProject.ProjectCodeProject
tcProjectDescriptioncharacterProject.ProjectDescriptionDescription
tcUnitCodecharacterUnit.UnitCodeUnit of Measure


Internal usage


QadFinancials
method BJournalEntry.DumpJEDetForConsolid
method BJournalEntry.DumpJESumForConsolid