project QadFinancials > class BAPMatching > business logic query APMatchingLnByStatusPvod

Description

APMatchingLnByStatusPvod: query that tries to find APMatchingLine-records based on the PVO-data and based on the status of the header


Parameters


iiCompanyIdintegerCompany id
icPvoDomaincharacter
iiPvoIDinteger
iiPvodLineIDinteger
icAPMatchingStatuscharacter
icSkipAPMatchingLnRowidcharacterThis parameter can contain the rowid (converted to string) of an APMatchingLn-record that shoudl NOT be in the result-set.


query condition


  each APMatchingLn where
APMatchingLn.PvoDomain = icPvoDomain AND
APMatchingLn.PvoID = iiPvoID AND
APMatchingLn.PvodLineID = iiPvodLineID AND
rowid(APMatchingLn) <> to-rowid(icSkipAPMatchingLnRowid)

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

          first CInvoice (inner-join) where
CInvoice.Company_Id = iiCompanyId AND
CInvoice.CInvoice_ID = APMatching.CInvoice_ID AND

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


query resultset tqAPMatchingLnByStatusPvod


field namedata typedb fielddescription
tiAPMatching_IDintegerAPMatchingLn.APMatching_IDLink to APMatching
ttAPMatchingDatedateAPMatching.APMatchingDateDate
tiAPMatchingLn_IDintegerAPMatchingLn.APMatchingLn_IDRecord ID
tlAPMatchingLnIsPvodFinishedlogicalAPMatchingLn.APMatchingLnIsPvodFinishedFinished
tdAPMatchingLnMatchAmtTCdecimalAPMatchingLn.APMatchingLnMatchAmtTCTC Matched Amount
tdAPMatchingLnMatchQtydecimalAPMatchingLn.APMatchingLnMatchQtyMatched Quantity
tcAPMatchingStatuscharacterAPMatching.APMatchingStatusStatus
tiCInvoice_IDintegerAPMatching.CInvoice_IDVoucher
tiCInvoicePostingYearintegerCInvoice.CInvoicePostingYearYear.This field indicates the accounting year for the invoice.
If you modify these fields, the posting and tax dates are changed correspondingly.
api annotation:This field defaults to the accounting year associated with the posting date.
tiCInvoiceRegistrationNrintegerCInvoice.CInvoiceRegistrationNrRegistration number. This field displays the sequential number assigned to each invoice upon initial entry in the system.
tiCInvoiceVoucherintegerCInvoice.CInvoiceVoucherVoucher. This field displays the numeric identifier assigned to the posting.
When the daybook of the journal entry is changed (after transfer), the voucher is cleared.
Voucher must be unique in one GL period.
When the user input is zero, the system automatically assign a value not used yet for this field.
tiJournal_IDintegerCInvoice.Journal_IDDaybook Code
tcJournalCodecharacterJournal.JournalCodeA daybook code (maximum eight characters).
tiPvodLineIDintegerAPMatchingLn.PvodLineIDPinv Line ID
tcPvoDomaincharacterAPMatchingLn.PvoDomainDomain
tiPvoIDintegerAPMatchingLn.PvoIDPinv ID
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(APMatchingLn),rowid(APMatching),rowid(CInvoice),rowid(Journal)


Internal usage


QadFinancials
method BAPMatching.CalculatePostAPMLn
method BAPMatching.GetPendingVouchers
method BAPMatching.GetPendingVouchersAssignPendingMatchFields
method BAPMatching.ValidateComponentPost
method BAPMatching.ValidateComponentPostAPMLn1
method BAPMatching.ValidateComponentPostAPMLn2
method BERSProcessor.GetERSLegalDocumentsNoLC
method BERSProcessor.GetERSPendingVouchersPORec
method BERSProcessor.StopAllQueries
method BERSProcessor.ValidateLogisticCharge
method BERSProcessor.ValidateReceipt