project QadFinancials > class BDeductionCat > business logic query DeductionCatLineExpenseAccount


Parameters


iiCompanyIdintegerCompany id
iiDeductionCatLine_IDintegerDeduction Cat Line ID.


query condition


  each DeductionCatLine where
DeductionCatLine.DeductionCatLine_ID = iiDeductionCatLine_ID

      first CostCentre (conditional-join) where
CostCentre.SharedSet_Id = vi_COSTCENTRE_sharedset(iiCompanyId) AND
CostCentre.CostCentre_ID = DeductionCatLine.CostCentre_ID AND

      each DeductionCatLineSaf (outer-join) where
DeductionCatLineSaf.DeductionCatLine_ID = DeductionCatLine.DeductionCatLine_ID AND

          first Saf (outer-join) where
Saf.Saf_ID = DeductionCatLineSaf.Saf_ID AND

              first SafConcept (outer-join) where
SafConcept.SafConcept_ID = Saf.SafConcept_ID AND

      first Division (conditional-join) where
Division.SharedSet_Id = vi_DIVISION_sharedset(iiCompanyId) AND
Division.Division_ID = DeductionCatLine.Division_ID AND

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

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


query resultset tqDeductionCatLineExpenseAccount


field namedata typedb fielddescription
tiCostCentre_IDintegerDeductionCatLine.CostCentre_IDLink to CostCentre
tcCostCentreCodecharacterCostCentre.CostCentreCodeCost Center: A code that identifies the cost center.
tlCostCentreIsActivelogicalCostCentre.CostCentreIsActiveActive: Indicate if this is an active cost center.
api annotation:PartialUpdate = yes - defaults to true
tiDivision_IDintegerDeductionCatLine.Division_IDLink to Division
tcDivisionCodecharacterDivision.DivisionCodeSub-Account
tlDivisionIsActivelogicalDivision.DivisionIsActiveActive
tiExpenseJournal_IDintegerDeductionCatLine.ExpenseJournal_IDLink to ExpenseJournal
tiGL_IDintegerDeductionCatLine.GL_IDLink to GL
tcGLCodecharacterGL.GLCodeA code identifying the GL account.
tlGLIsActivelogicalGL.GLIsActiveActive: Indicate if this is an active account.
tcJournalCodecharacterJournal.JournalCodeA daybook code (maximum eight characters).
tiRechargeJournal_IDintegerDeductionCatLine.RechargeJournal_IDLink to RechargeJournal
tiSaf_IDintegerDeductionCatLineSaf.Saf_IDLink to Saf
tcSafCodecharacterSaf.SafCodeSAF Code
tiSafConcept_IDintegerSaf.SafConcept_IDSAF Concept Code
tcSafConceptCodecharacterSafConcept.SafConceptCodeSAF Concept Code
tlSafConceptIsActivelogicalSafConcept.SafConceptIsActiveActive
tlSafIsActivelogicalSaf.SafIsActiveActive
tiSafStructure_IDintegerDeductionCatLine.SafStructure_IDLink to SafStructure


Internal usage


QadFinancials
method BDeductionCat.ApiGetExpenseSubCCAndSAF
method BDInvoice.UpdateDeductionDetailPosting