project QadFinancials > class BPosting > business logic query PostingVATByPeriodPeriodMark

Description

PostingVATByPeriodPeriodMark; Get VAT-postings based on the Period and the PeriodMark


Parameters


iiCompanyIdintegerCompany id
iiVATPeriodIDintegerVATPeriodID
iiPeriodMarkIDintegerPeriodMarkID


query condition


  each PostingVat where
PostingVat.PeriodMark_ID = iiPeriodMarkID AND
PostingVat.VatPeriod_ID = iiVATPeriodID

      first PostingLine (inner-join) where
PostingLine.Company_Id = iiCompanyId AND
PostingLine.PostingLine_ID = PostingVat.PostingLine_ID AND

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


query sort order


Posting.Company_ID (ascending)


query resultset tqPostingVATByPeriodPeriodMark


field namedata typedb fielddescription
tiCompany_IDintegerPosting.Company_IDLink to Company
tiPeriodMark_IDintegerPostingVat.PeriodMark_IDLink to PeriodMark
tiPosting_IDintegerPosting.Posting_IDRecord ID
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).
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.
tiVatPeriod_IDintegerPostingVat.VatPeriod_IDLink to VatPeriod


Internal usage


QadFinancials
method BPeriodMark.GetPeriodMarkIsReferenced
method BVATPeriod.ValidateComponent