project QadFinancials > class BCreditorReport > business logic query CreditorAllItems


Parameters


iiCompanyIdintegerCompany id
icCreditorCodecharacter
icCreditorCodeTocharacter
icCreditorCodeFromcharacter
icBusRelCodecharacter
icBusRelCodeFromcharacter
icBusRelCodeTocharacter
icCurrencyCodecharacter
ilCreditorIsActivelogical
ilCreditorIsSendRemittancelogical
ilCreditorIsIndividualPaymentlogical
icVatDeliveryTypecharacter
icVatPercentageLevelcharacter
icAddressCitycharacter
icAddressStreet1character
icBusinessRelationNamecharacter
icProfileCodeCnFiltercharacter
icProfileCodeDivFiltercharacter
icProfileCodeInvFiltercharacter
icPaymentCondCodeNmFiltercharacter
icDeliveryCondCodeFiltercharacter
icReasonCodeFiltercharacter
icBLWIGroupCodeFiltercharacter
icPaymentGroupCodeFiltercharacter
icFederalTaxIDcharacter
icStateTaxIDcharacter


query condition


  each Creditor where
Creditor.SharedSet_Id = vi_CREDITOR_sharedset(iiCompanyId) AND
Creditor.CreditorCode can-do icCreditorCode AND
Creditor.CreditorCode >= icCreditorCodeFrom AND
Creditor.CreditorCode <= icCreditorCodeTo AND
Creditor.CreditorIsActive = ilCreditorIsActive AND
Creditor.CreditorIsIndividualPaymnt = ilCreditorIsIndividualPayment AND
Creditor.CreditorIsSendRemittance = ilCreditorIsSendRemittance AND
Creditor.VatDeliveryType = icVatDeliveryType AND
Creditor.CreditorTaxIDState = icVatPercentageLevel AND
Creditor.CreditorTaxIDFederal = icFederalTaxID AND
Creditor.CreditorTaxIDState = icStateTaxID

      first BLWIGroup (conditional-join) where
BLWIGroup.BLWIGroup_ID = Creditor.BLWIGroup_ID AND
BLWIGroup.BLWIGroupCode can-do icBLWIGroupCodeFilter

      first BusinessRelation (inner-join) where
BusinessRelation.BusinessRelation_ID = Creditor.BusinessRelation_ID AND
BusinessRelation.BusinessRelationCode can-do icBusRelCode AND
BusinessRelation.BusinessRelationCode >= icBusRelCodeFrom AND
BusinessRelation.BusinessRelationCode <= icBusRelCodeTo AND
BusinessRelation.BusinessRelationName1 can-do icBusinessRelationName

          each Address (conditional-join) where
Address.BusinessRelation_ID = BusinessRelation.BusinessRelation_ID AND
Address.AddressCity can-do icAddressCity AND
Address.AddressStreet1 can-do icAddressStreet1 AND
Address.AddressIsTemporary = no

              first AddressType (conditional-join) where
AddressType.AddressType_ID = Address.AddressType_ID AND

              first Country (conditional-join) where
Country.Country_ID = Address.Country_ID AND

              first County (outer-join) where
County.County_ID = Address.County_ID AND

              first State (outer-join) where
State.State_ID = Address.State_ID AND

      first CreditorType (outer-join) where
CreditorType.CreditorType_ID = Creditor.CreditorType_ID AND

      first Currency (inner-join) where
Currency.Currency_ID = Creditor.Currency_ID AND
Currency.CurrencyCode can-do icCurrencyCode

      first DeliveryCond (conditional-join) where
DeliveryCond.DeliveryCond_ID = Creditor.DeliveryCond_ID AND
DeliveryCond.DeliveryCondCode can-do icDeliveryCondCodeFilter

      first PaymentCondition (inner-join) where
PaymentCondition.PaymentCondition_ID = Creditor.NormalPaymentCondition_ID AND
PaymentCondition.PaymentConditionCode can-do icPaymentCondCodeNmFilter

      first PaymentGroup (conditional-join) where
PaymentGroup.PaymentGroup_ID = Creditor.PaymentGroup_ID AND
PaymentGroup.PaymentGroupCode can-do icPaymentGroupCodeFilter

      first Profile4 (inner-join) where
Profile4.Profile_ID = Creditor.PurchaseGLProfile_ID AND

      first Profile5 (inner-join) where
Profile5.Profile_ID = Creditor.PrePayControlGLProfile_ID AND

      first Profile1 (inner-join) where
Profile1.Profile_ID = Creditor.InvControlGLProfile_ID AND
Profile1.ProfileCode can-do icProfileCodeInvFilter

      first Profile2 (conditional-join) where
Profile2.Profile_ID = Creditor.DivisionProfile_ID AND
Profile2.ProfileCode can-do icProfileCodeDivFilter

      first Profile3 (inner-join) where
Profile3.Profile_ID = Creditor.CnControlGLProfile_ID AND
Profile3.ProfileCode can-do icProfileCodeCnFilter

      first PurchaseType (outer-join) where
PurchaseType.PurchaseType_ID = Creditor.PurchaseType_ID AND

      first Reason (inner-join) where
Reason.Reason_ID = Creditor.Reason_ID AND
Reason.ReasonCode can-do icReasonCodeFilter


query resultset tqCreditorAllItems


field namedata typedb fielddescription
tiAddress_IDintegerAddress.Address_IDRecord ID
tcAddressCitycharacterAddress.AddressCityCity. The city for this address. This field can be used to decide the tax zone of the address.
tcAddressCountycharacterAddress.AddressCountyObsolete field
tcAddressEMailcharacterAddress.AddressEMailE-Mail. This field indicates the e-mail address associated with this business relation.
This field can be blank.
tcAddressFaxcharacterAddress.AddressFaxFax. This field indicates the fax or telex number to use when sending documents to this address.
This field can be balnk.
tcAddressStreet1characterAddress.AddressStreet1Address: Line one of address details.
This field can be blank.
tcAddressStreet2characterAddress.AddressStreet2Address.Line two of address details.
This field can be blank.
tcAddressStreet3characterAddress.AddressStreet3Address.Line three of address details.
This field can be blank.
tcAddressTelephonecharacterAddress.AddressTelephoneTelephone. The telephone number for calling this business relation address.
This field can be blank.
tcAddressTypeCodecharacterAddressType.AddressTypeCodeAddress Type
tcAddressWebSitecharacterAddress.AddressWebSiteInternet. This field indicates the Web site of this business relation.
This field can be blank.
tcAddressZipcharacterAddress.AddressZipZip. The postal code or US zip code associated with this address.
This field is used to decide the tax zone for the address.
This field can be blank.
tcBLWIGroupCodecharacterBLWIGroup.BLWIGroupCodeBLWI Group Code
tiBusinessRelation_IDintegerBusinessRelation.BusinessRelation_IDRecord ID
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.
tiCounty_IDintegerCounty.County_IDRecord ID
tcCountyCodecharacterCounty.CountyCodeCounty Code
tcCountyDescriptioncharacterCounty.CountyDescriptionDescription
tiCreditor_IDintegerCreditor.Creditor_IDRecord ID
tcCreditorCocNumbercharacterCreditor.CreditorCocNumberChamber of Commerce Number
tcCreditorCodecharacterCreditor.CreditorCodeSupplier Code
tcCreditorCommentNotecharacterCreditor.CreditorCommentNoteComment Note
tcCreditorDBNumbercharacterCreditor.CreditorDBNumberCredit Agency Reference
tcCreditorDebtorNumbercharacterCreditor.CreditorDebtorNumberExternal Customer Number
tlCreditorIsActivelogicalCreditor.CreditorIsActiveActive
tlCreditorIsIndividualPaymntlogicalCreditor.CreditorIsIndividualPaymntIndividual Payments
tlCreditorIsSendRemittancelogicalCreditor.CreditorIsSendRemittanceSend Remittance
tlCreditorIsTaxablelogicalCreditor.CreditorIsTaxableTaxable Supplier
tlCreditorIsTaxInCitylogicalCreditor.CreditorIsTaxInCityTax in City
tlCreditorIsTaxIncludedlogicalCreditor.CreditorIsTaxIncludedTax Is Included
tlCreditorIsTaxReportlogicalCreditor.CreditorIsTaxReportTax Report
tcCreditorTaxIDFederalcharacterCreditor.CreditorTaxIDFederalFederal Tax
tcCreditorTaxIDMisc1characterCreditor.CreditorTaxIDMisc1Miscellaneous Tax 1
tcCreditorTaxIDMisc2characterCreditor.CreditorTaxIDMisc2Miscellaneous Tax 2
tcCreditorTaxIDMisc3characterCreditor.CreditorTaxIDMisc3Miscellaneous Tax 3
tcCreditorTaxIDStatecharacterCreditor.CreditorTaxIDStateState Tax
tcCreditorTIDNoticecharacterCreditor.CreditorTIDNoticeTID Notice
tiCreditorType_IDintegerCreditorType.CreditorType_IDRecord ID
tcCreditorTypeCodecharacterCreditorType.CreditorTypeCodeCode
tcCreditorTypeDescriptioncharacterCreditorType.CreditorTypeDescriptionDescription
tcCurrencyCodecharacterCurrency.CurrencyCodeCurrency Code
tcDeliveryCondCodecharacterDeliveryCond.DeliveryCondCodeCode
tcPaymentConditionCodeNmcharacterPaymentCondition.PaymentConditionCodeCredit Terms Code
tcPaymentGroupCodecharacterPaymentGroup.PaymentGroupCodePayment Group
tcProfileCodeCncharacterProfile3.ProfileCodeA code (maximum 20 characters) that identifies a profile.
tcProfileCodeDivcharacterProfile2.ProfileCodeA code (maximum 20 characters) that identifies a profile.
tcProfileCodeInvcharacterProfile1.ProfileCodeA code (maximum 20 characters) that identifies a profile.
tcProfileCodePrePaycharacterProfile5.ProfileCodeA code (maximum 20 characters) that identifies a profile.
tcProfileCodePurcharacterProfile4.ProfileCodeA code (maximum 20 characters) that identifies a profile.
tcPurchaseTypeCodecharacterPurchaseType.PurchaseTypeCodePurchase Type
tcReasonCodecharacterReason.ReasonCodeInvoice Status Code
tiState_IDintegerState.State_IDRecord ID
tcStateCodecharacterState.StateCodeState
tcStateDescriptioncharacterState.StateDescriptionDescription
tcTxclTaxClscharacterCreditor.TxclTaxClsTax Class
tcTxuTaxUsagecharacterCreditor.TxuTaxUsageTax Usage
tcTxzTaxZonecharacterCreditor.TxzTaxZoneTax Zone
tcVatDeliveryTypecharacterCreditor.VatDeliveryTypeTax Nature
tcVatPercentageLevelcharacterCreditor.VatPercentageLevelTax Level
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(Creditor),rowid(BLWIGroup),rowid(BusinessRelation),rowid(Address),rowid(AddressType),rowid(Country),rowid(County),rowid(State),rowid(CreditorType),rowid(Currency),rowid(DeliveryCond),rowid(PaymentCondition),rowid(PaymentGroup),rowid(Profile4),rowid(Profile5),rowid(Profile1),rowid(Profile2),rowid(Profile3),rowid(PurchaseType),rowid(Reason)


Internal usage


QadFinancials
method BCreditorReport.CreditorList
method BCreditorReport.CreditorMasterCard