project QadFinancials > class BRevaluationReport > business logic query CDocumentForRevReport


Parameters


iiCompanyIdintegerCompany id
iiCDocumentIDinteger


query condition


  each CDocument where
CDocument.Company_Id = iiCompanyId AND
CDocument.CDocument_ID = iiCDocumentID

      first Creditor (inner-join) where
Creditor.SharedSet_Id = vi_CREDITOR_sharedset(iiCompanyId) AND
Creditor.Creditor_ID = CDocument.Creditor_ID AND

          first BusinessRelation (inner-join) where
BusinessRelation.BusinessRelation_ID = Creditor.BusinessRelation_ID AND


query resultset tqCDocumentForRevReport


field namedata typedb fielddescription
tcBusinessRelationCodecharacterBusinessRelation.BusinessRelationCodeBusiness Relation. A code to identify the business relation.
If this field does not have a input from the user, the system automatically generates a number for the record based on the sequence defined in Business Relation Autonumber Create.
tcBusinessRelationName1characterBusinessRelation.BusinessRelationName1Name: The full name of the business relation.
This field sets the default name for linked addresses such as customers and suppliers.
api annotation:PartialUpdate = yes - defaults to the BusinessRelationCode.
tiCDocument_IDintegerCDocument.CDocument_IDRecord ID
ttCDocumentCreationDatedateCDocument.CDocumentCreationDateCreation Date.This field indicate the payment creation date.
This field is read-only.
tdCDocumentExchangeRatedecimalCDocument.CDocumentExchangeRateExchange Rate. This field holds the exchange rate applying to the transaction currency.
tiCDocumentNumberintegerCDocument.CDocumentNumberDocument Number. This field hold a unified number for report use.
tdCDocumentRateScaledecimalCDocument.CDocumentRateScaleScale Factor. This field indicates the scaling factor applying to the transaction currency.
tcCDocumentSubTypecharacterCDocument.CDocumentSubTypeSubtype.This field indicates whether the payment is manual or automatic. You create manual supplier payments through the Supplier Payment activities, and automatic payments through the Supplier Payment Selection activities.
This field is read-only.
tcCDocumentTypecharacterCDocument.CDocumentTypePayment Instrument.This field displays the payment instrument associated with the payment format linked to the supplier bank.
tiCDocumentYearintegerCDocument.CDocumentYearYear/Number. This field displays the accounting year and payment sequence number, which is automatically generated by the accounting year.
tcCreditorCodecharacterCreditor.CreditorCodeSupplier Code


Internal usage


QadFinancials
method BRevaluationReport.Revaluation