project QadFinancials > class BDebtor > business logic query DebtorByDebtor

Annotation

give some information for a certain debtor

Description

query that give all fields for a certain debtor


Parameters


iiCompanyIdintegerCompany id
icAddressTypecharacterAddress Type
iiDebtorIdintegerDebtor ID
icDebtorCodecharacterCustomer Code


query condition


  each Debtor where
Debtor.SharedSet_Id = vi_DEBTOR_sharedset(iiCompanyId) AND
Debtor.Debtor_ID = iiDebtorId AND
Debtor.DebtorCode matches icDebtorCode

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

          each Address (inner-join) where
Address.BusinessRelation_ID = BusinessRelation.BusinessRelation_ID AND

              first AddressType (inner-join) where
AddressType.AddressType_ID = Address.AddressType_ID AND
AddressType.AddressTypeCode matches icAddressType

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

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

          first Lng (inner-join) where
Lng.Lng_ID = BusinessRelation.Lng_ID AND

          each VatNumber (conditional-join) where
VatNumber.BusinessRelation_ID = BusinessRelation.BusinessRelation_ID AND

      first Currency (inner-join) where
Currency.Currency_ID = Debtor.Currency_ID AND

      first Debtor2 (conditional-join) where
Debtor2.SharedSet_Id = vi_DEBTOR_sharedset(iiCompanyId) AND
Debtor2.Debtor_ID = Debtor.BillToDebtor_ID AND

      first PaymentCondition (inner-join) where
PaymentCondition.PaymentCondition_ID = Debtor.NormalPaymentCondition_ID AND

      first Reason (inner-join) where
Reason.Reason_ID = Debtor.Reason_ID AND


query sort order


Debtor.Debtor_ID (ascending)


query resultset tqDebtorByDebtor


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.
tlAddressIsTaxablelogicalAddress.AddressIsTaxableTaxable Address. This field indicates if business activities for this address are normally subject to tax.
The taxable status of the address defaults to transactions where the address is used.
api annotation:PartialUpdate = yes - defaults to false.
tlAddressIsTaxInCitylogicalAddress.AddressIsTaxInCityTax in City. This field determines whether the address is in the city limits for taxation purposes. It is used only with the Sales and Use Tax Interface for US and Canadian tax processing.
api annotation:PartialUpdate = yes - defaults to true.
tcAddressNamecharacterAddress.AddressNameName. The full name of this particular address.
The name of a headoffice address is the same as the name of the business relationship and can not be modified.
api annotation:PartialUpdate = yes - defaults to the name of the businessRelation.
tcAddressStatecharacterAddress.AddressStateObsolete field
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.
tcAddressTaxIDStatecharacterAddress.AddressTaxIDStateState Tax. This field is for reference and documentation purposes, the value of the field is either a state or provincial tax identification number or a VAT registration number.
tcAddressTelephonecharacterAddress.AddressTelephoneTelephone. The telephone number for calling this business relation address.
This field can be blank.
tcAddressTxclTaxClscharacterAddress.TxclTaxClsTax Class. This field indicates the tax class of the address. This field helps to determine the default tax environment (set of tax types) for related transactions.
The value of this field defaults to the header of transactions created for this address.
This field can be blank.
tcAddressTxuTaxUsagecharacterAddress.TxuTaxUsageTax Usage. This field identifies the normal use of items sold to this address.
Tax usage codes, along with tax class and tax date, determine which tax rates apply.
Tax usage codes identify the normal use of items sold to this address.
This field can be blank.
tcAddressTxzTaxZonecharacterAddress.TxzTaxZoneTax Zone. This field indicates the tax zone for this address. This field is mandatory.
api annotation:PartialUpdate = yes - defaults to a value the system searches for based on the country, state or province, county, city, and postal code of the current address.
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.
tcBillToDebtorCodecharacterDebtor2.DebtorCodeA code (maximum eight characters) that identifies a customer. If the code you specify matches an existing supplier code, a warning message displays. You can choose to ignore the warning, and create the record. However, when a supplier and customer share the same code, they must reference the same business relation.
api annotation:If you leave the Customer Code field blank, the system automatically generates a number for the record based on the sequence defined in Customer Autonumber Create.
tiBusinessRelation_IDintegerDebtor.BusinessRelation_IDBusiness Relation
tcBusinessRelationAVRCodecharacterBusinessRelation.BusinessRelationAVRCodeObsolete field
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.
tcBusinessRelationICCodecharacterBusinessRelation.BusinessRelationICCodeIntercompany Code. When Intercompany is true, this field is mandatory.
The code entered here must match the intercompany code entered for GL accounts in order to generate intercompany reports.
The intercompany code must be unique for this business relation.
tlBusinessRelationIsIntercologicalBusinessRelation.BusinessRelationIsIntercoIntercompany. This field Indicates if the business relation identifies an entity that is a member of a group of entities that trade with each other.
If the business relation is identified as an internal entity,this field is true and cannot be changed.
api annotation:PartialUpdate = yes - defaults to false.
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.
tiCnControlGLProfile_IDintegerDebtor.CnControlGLProfile_IDControl GL Profile (Credit Note)
tiCountry_IDintegerCountry.Country_IDRecord ID
tcCountryCodecharacterCountry.CountryCodeCountry Code
tcCountryDescriptioncharacterCountry.CountryDescriptionDescription
tlCountryIsEUCountrylogicalCountry.CountryIsEUCountryEU Member
tiCurrency_IDintegerDebtor.Currency_IDCurrency Code
tcCurrencyCodecharacterCurrency.CurrencyCodeCurrency Code
tiDebtor_IDintegerDebtor.Debtor_IDRecord ID
tcDebtorCodecharacterDebtor.DebtorCodeA code (maximum eight characters) that identifies a customer. If the code you specify matches an existing supplier code, a warning message displays. You can choose to ignore the warning, and create the record. However, when a supplier and customer share the same code, they must reference the same business relation.
api annotation:If you leave the Customer Code field blank, the system automatically generates a number for the record based on the sequence defined in Customer Autonumber Create.
tlDebtorIsActivelogicalDebtor.DebtorIsActiveIndicate if this is an active record.
api annotation:Value for this field defaults to false.
tlDebtorIsCheckAftDICredLimlogicalDebtor.DebtorIsCheckAftDICredLimIndicate whether to perform the credit check when saving a new or modified invoice and include the new invoice amount in the total.
api annotation:Value for this field defaults to false.
tlDebtorIsCheckAftSOCredLimlogicalDebtor.DebtorIsCheckAftSOCredLimIndicate whether to perform the credit check when saving a new or modified order and include the new order amount in the total.
api annotation:Value for this field defaults to false.
tlDebtorIsCheckBefDICredLimlogicalDebtor.DebtorIsCheckBefDICredLimIndicate whether to perform the credit check before a new customer invoice is entered.
api annotation:Value for this field defaults to false.
tlDebtorIsCheckBefSOCredLimlogicalDebtor.DebtorIsCheckBefSOCredLimIndicate whether to perform the credit check before a new order is entered or not.
api annotation:Value for this field defaults to false.
tlDebtorIsLockedCredLimlogicalDebtor.DebtorIsLockedCredLimIndicate whether to put this customer on hold.
api annotation:Value for this field defaults to false.
tlDebtorIsOverruleDICredLimlogicalDebtor.DebtorIsOverruleDICredLimIndicate whether to allow users to enter invoice transactions for a customer when the customer’s credit limit is exceeded.
api annotation:Value for this field defaults to false.
tlDebtorIsOverruleSOCredLimlogicalDebtor.DebtorIsOverruleSOCredLimIndicate whether to allow users to enter order transactions for a customer when the customer’s credit limit is exceeded.
api annotation:Value for this field defaults to false.
tlDebtorIsPrintReminderlogicalDebtor.DebtorIsPrintReminderIndicate if reminders are typically printed for this customer to report past due balances.
api annotation:Value for this field defaults to false.
tlDebtorIsPrintStatementlogicalDebtor.DebtorIsPrintStatementIndicate if statements should be printed for this customer. When this field is selected, a statement is printed for this customer using the frequency specified in Statement Cycle.
api annotation:Value for this field defaults to false.
tlDebtorIsTaxablelogicalDebtor.DebtorIsTaxableIndicate if business activities for this address are normally subject to tax.
api annotation:Value for the field defaults from the Taxable field in Global Tax Management Control.
tlDebtorIsWithPreInvGrouplogicalDebtor2.DebtorIsWithPreInvGroupIndicate if Customer is Member of Pre-Invoice Group or not.
api annotation:Value for this field defaults to false.
tdDebtorSalesOrderBalancedecimalDebtor.DebtorSalesOrderBalanceCurrent balance of all sales order related to this customer.
api annotation:Value for this field defaults to 0.0000 .
tiDebtorTaxDeclarationintegerDebtor.DebtorTaxDeclarationTax Declaration
tcDebtorTaxIDFederalcharacterDebtor.DebtorTaxIDFederalFederal Tax- the tax ID assigned to this address by the federal or national government.
api annotation:Value for the field defaults to null.
tcDebtorTaxIDMisc1characterDebtor.DebtorTaxIDMisc1Miscellaneous tax 1, 2, 3. For reference and documentation purposes, enter any other tax identification numbers that are useful.
api annotation:Values for these fields default to null.
tcDebtorTaxIDMisc2characterDebtor.DebtorTaxIDMisc2Miscellaneous Tax 2
tcDebtorTaxIDMisc3characterDebtor.DebtorTaxIDMisc3Miscellaneous Tax 3
tcDebtorTaxIDStatecharacterDebtor.DebtorTaxIDStateState Tax- For reference and documentation purposes, enter either a state or provincial tax identification number or a VAT registration number.
api annotation:Value for the field defaults to null.
tiDeductionCtrlGLProfile_IDintegerDebtor.DeductionCtrlGLProfile_IDLink to Deduction Profile
tiDivisionProfile_IDintegerDebtor.DivisionProfile_IDSub-Account Profile
tiDomiciliationNumberintegerDebtor.DomiciliationNumberDomiciliation Number
tiFinChgGLProfile_IDintegerDebtor.FinChgGLProfile_IDFinance Charge Profile
tiInvControlGLProfile_IDintegerDebtor.InvControlGLProfile_IDControl GL Profile (Invoice)
tiLng_IDintegerBusinessRelation.Lng_IDLanguage Code
tcLngCodecharacterLng.LngCodeLanguage Code
tiNormalPaymentCondition_IDintegerDebtor.NormalPaymentCondition_IDCredit Terms Code
tcNormalPaymentConditionCodecharacterPaymentCondition.PaymentConditionCodeCredit Terms Code
tcNormalPaymentTypecharacterPaymentCondition.PaymentConditionPaymentTypPayment Type
tiPrePayControlGLProfile_IDintegerDebtor.PrePayControlGLProfile_IDControl GL Profile (Pre-payment)
tiReason_IDintegerDebtor.Reason_IDInvoice Status Code
tcReasonCodecharacterReason.ReasonCodeInvoice Status Code
tiSalesAccountGLProfile_IDintegerDebtor.SalesAccountGLProfile_IDSales Account GL Profile
tiSalesCode_IDintegerDebtor.SalesCode_IDLink to SalesCode
tiSharedSet_IDintegerDebtor.SharedSet_IDLink to SharedSet
tcStateCodecharacterState.StateCodeState
tcTxclTaxClscharacterDebtor.TxclTaxClsA tax class previously defined in Tax Class Maintenance. Tax classes group addresses taxed at specific rates or that are tax-exempt and help determine the default tax environment (set of tax types) for related transactions.
api annotation:The value of tax class defaults from the header of transactions created for this address.
tcTxuTaxUsagecharacterDebtor.TxuTaxUsageA tax usage code previously defined in Tax Usage Maintenance. Tax usage codes identify the normal use of items sold to this address.Common tax usages are retail, manufacturing, and industrialization.
api annotation:The value of tax usage defaults from the header of transactions created for this address.
tcTxzTaxZonecharacterDebtor.TxzTaxZoneThe tax zone for this address, defined in Tax Zone Maintenance. A value is required.
api annotation:The system searches for a default based on the country, state or province, county, city, and postal code of the current address.
tcVatDeliveryTypecharacterDebtor.VatDeliveryTypeTax Nature. Legacy field from the Soft Cell version of the product. This field is now replaced by the GTM tax field.
tiVatNumber_IDintegerVatNumber.VatNumber_IDRecord ID
tcVatNumberIdentitycharacterVatNumber.VatNumberIdentityObsolete field
tcVatPercentageLevelcharacterDebtor.VatPercentageLevelTax Level- Possible values: None, Zero, Low, Medium, High.legacy field from the Soft Cell version of the product. This field is now replaced by the GTM tax field.


Internal usage


QadFinancials
method BBankEntry.AdditionalUpdatesInvDeductions
method BBankEntry.AdditionalUpdatesInvPrePayments
method BBankEntry.CreateDeduction
method BBankEntry.CreatePrepayment
method BBankEntry.GetDefaultCCProjDivForDeduction
method BBankEntry.GetDefaultCCProjDivForPrePay
method BBankNumber.GetParentBankData
method BDCollection.ExportCLIEOP03
method BDCollection.ExportDOM80
method BDCollection.ExportLCRBOR
method BDCollection.ExportXml
method BDDocument.DefaultValuesDebtorCode
method BDebtor.CalculateBalanceDrafts
method BDebtor.CalculateBalanceOpenItems
method BDebtor.CalculateBalanceSalesOrders
method BDebtor.CalculateBOIforCompanies
method BDebtor.CalculateBSOForCompany
method BDebtor.CalculateCreditOnTurnover
method BDebtorFinanceCharge.FCDInvoiceCommit
method BDebtorReport.DebtorInvoicePrint
method BDebtorShipTo.ApiShipToAndHOAddress
method BDInvoice.ApiCreateDInvoicesFinCharge
method BDInvoice.ApiStdMaintainTTWithExtPost
method BDInvoice.ApiStdMaintainTTWithExtPostDetail
method BDInvoice.ApiStdMaintainTTWithIntPost
method BDInvoice.ApiStdMaintainTTWithIntPostCreateVat
method BDInvoice.CreateDInvoices
method BDInvoice.CreateDIPosting
method BDInvoice.CreateFinChgInvoices
method BDInvoice.DefaultValuesShipFromShipTo
method BDInvoice.DefaultValuesValidate
method BDInvoice.StdMaintainTTWithExtPost
method BDInvoice.StdMaintainTTWithIntPost
method BDInvoice.ValidateComponentAllShipTo
method BDInvoiceJournalEntry.ApiStdMaintainTTDefValExtPost
method BOpenItemAdjustment.OIAdjCommitSubDInvoice
method BPaymentSelection.ExportBEAbroadPreselect
method BPaymentSelection.ExportBEInlandPreSelect
method BPaymentSelection.ExportNLInlandPreselect
method BVATExportListing.ExportFormatting725