project QadFinancials > class BAPMatching > business logic query APMatchingLnForPostingJournal

Description

This query returns the posting and journal information for a given AP Matching line.


Parameters


iiCompanyIdintegerCompany id
iiApMatchingLnIDintegerThe ID for the AP Matching Line.


query condition


  each APMatchingLn where
APMatchingLn.APMatchingLn_ID = iiApMatchingLnID

      first APMatching (inner-join) where
APMatching.Company_Id = iiCompanyId AND
APMatching.APMatching_ID = APMatchingLn.APMatching_ID AND

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

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


query resultset tqAPMatchingLnForPostingJournal


field namedata typedb fielddescription
tiAPMatching_IDintegerAPMatchingLn.APMatching_IDLink to APMatching
tiAPMatchingLn_IDintegerAPMatchingLn.APMatchingLn_IDRecord ID
tiJournal_IDintegerPosting.Journal_IDDaybook Code
tcJournalCodecharacterJournal.JournalCodeA daybook code (maximum eight characters).
tiPosting_IDintegerPosting.Posting_IDRecord ID
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.


Internal usage


QadFinancials
method BAPMatching.ApiGetMatchingInfoMulti