project QadFinancials > class BMFGLegalDocument > business logic query LegalDocumentByLegalDocNbr

Description

Query to return information for a set of legal documents. Includes pending voucher header information only.


Parameters


icDomainCodecharacterDomain Code
icLegalDocNbrcharacterLegal Document Number
itEffIssueDatedateEffective Issue Date
icSuppliercharacterSupplier Code


query condition


  each lgd_mstr where
lgd_mstr.lgd_domain = icDomainCode AND
lgd_mstr.lgd_effdate = itEffIssueDate AND
lgd_mstr.lgd_nbr = icLegalDocNbr AND
lgd_mstr.lgd_shipfrom = icSupplier

      each lgdd_det (inner-join) where
lgdd_det.oid_lgd_mstr = lgd_mstr.oid_lgd_mstr AND


query resultset tqLegalDocumentByLegalDocNbr


field namedata typedb fielddescription
tclgd_addrcharacterlgd_mstr.lgd_addrLegal Doc Address
tdlgd_amtdecimallgd_mstr.lgd_amtLegal Doc Amount
tdlgd_ar_amtdecimallgd_mstr.lgd_ar_amtAR Amount
tclgd_billcharacterlgd_mstr.lgd_billBill-To
tclgd_custcharacterlgd_mstr.lgd_custCustomer
tclgd_doc_typecharacterlgd_mstr.lgd_doc_typeDoc Type
tclgd_domaincharacterlgd_mstr.lgd_domainDomain
tdlgd_dsc_amtdecimallgd_mstr.lgd_dsc_amtDiscount Amount
ttlgd_effdatedatelgd_mstr.lgd_effdateEffective Date
tdlgd_ex_ratedecimallgd_mstr.lgd_ex_rateExch Rate
tdlgd_ex_rate2decimallgd_mstr.lgd_ex_rate2Exch Rate 2
tdlgd_goods_amtdecimallgd_mstr.lgd_goods_amtGoods Amount
ttlgd_inv_datedatelgd_mstr.lgd_inv_dateInvoice Date
tclgd_inv_movcharacterlgd_mstr.lgd_inv_movInventory Movement Code
tclgd_inv_nbrcharacterlgd_mstr.lgd_inv_nbrInvoice Number
tclgd_nbrcharacterlgd_mstr.lgd_nbrLegal Doc Nbr
tclgd_ordercharacterlgd_mstr.lgd_orderOrder Number
tclgd_shipcharacterlgd_mstr.lgd_shipShip-To
tclgd_shipfromcharacterlgd_mstr.lgd_shipfromShip From
tclgd_shipto_loccharacterlgd_mstr.lgd_shipto_locShip-to Location
tclgd_shipto_sitecharacterlgd_mstr.lgd_shipto_siteShip-to Site
tclgd_tax_envcharacterlgd_mstr.lgd_tax_envTax Environment
tllgd_tax_inlogicallgd_mstr.lgd_tax_inTax In
tclgd_tax_usagecharacterlgd_mstr.lgd_tax_usageTax Usage
tllgd_taxablelogicallgd_mstr.lgd_taxableTaxable
tclgd_taxccharacterlgd_mstr.lgd_taxcTax Class
tdlgd_trl_amtdecimallgd_mstr.lgd_trl_amtTrailer Total Amount
tdlgd_trl1_amtdecimallgd_mstr.lgd_trl1_amtTrailer Amt 1
tdlgd_trl2_amtdecimallgd_mstr.lgd_trl2_amtTrailer Amt 2
tdlgd_trl3_amtdecimallgd_mstr.lgd_trl3_amtTrailer Amt 3
tllgd_typelogicallgd_mstr.lgd_typeLegal Document Type
tclgdd_doc_typecharacterlgdd_det.lgdd_doc_typeDoc Type
tilgdd_lineintegerlgdd_det.lgdd_lineLine
tclgdd_ordercharacterlgdd_det.lgdd_orderOrder
tilgdd_order_lineintegerlgdd_det.lgdd_order_lineLine
tclgdd_tax_envcharacterlgdd_det.lgdd_tax_envTax Environment
tllgdd_tax_inlogicallgdd_det.lgdd_tax_inTax In
tclgdd_tax_usagecharacterlgdd_det.lgdd_tax_usageTax Usage
tllgdd_taxablelogicallgdd_det.lgdd_taxableTaxable
tclgdd_taxccharacterlgdd_det.lgdd_taxcTax Class


Internal usage


QadFinancials
method BAPMatching.GetPendingVouchersLogChargesQuery
method BAPMatching.GetPendingVouchersNoLogChargesQuery
method BERSProcessor.ERSProcessLegalDocuments