project QadFinancials > class BDebtorEndUser > business logic query DebtorEndUserByDbt


Parameters


iiCompanyIdintegerCompany id
iiDebtorIdinteger


query condition


  each DebtorEndUser where
DebtorEndUser.SharedSet_Id = vi_DEBTOR_sharedset(iiCompanyId) AND
DebtorEndUser.Debtor_ID = iiDebtorId

      first Address (inner-join) where
Address.Address_ID = DebtorEndUser.Address_ID AND

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

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

          first Country (inner-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 Debtor (inner-join) where
Debtor.SharedSet_Id = vi_DEBTOR_sharedset(iiCompanyId) AND
Debtor.Debtor_ID = DebtorEndUser.Debtor_ID AND


query resultset tqDebtorEndUserByDbt


field namedata typedb fielddescription
tiAddress_IDintegerDebtorEndUser.Address_IDCity
tcAddressCitycharacterAddress.AddressCityCity. The city for this address. This field can be used to decide the tax zone of the address.
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.
tlAddressIsTemporarylogicalAddress.AddressIsTemporaryTemporary. If the type of this address is ship-to or dock, this field indicates if the address is temporary.
This field is for reference and can be useful for sorting and filtering records.
api annotation:PartialUpdate = yes - defaults to false.
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.
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.
tiBusinessRelation_IDintegerAddress.BusinessRelation_IDLink to BusinessRelation
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.
tiCountry_IDintegerCountry.Country_IDRecord ID
tcCountryCodecharacterCountry.CountryCodeCountry Code
tcCountryDescriptioncharacterCountry.CountryDescriptionDescription
tlCountryIsEUCountrylogicalCountry.CountryIsEUCountryEU Member
tiCounty_IDintegerCounty.County_IDRecord ID
tcCountyCodecharacterCounty.CountyCodeCounty Code
tcCountyDescriptioncharacterCounty.CountyDescriptionDescription
tiDebtor_IDintegerDebtorEndUser.Debtor_IDCustomer Code
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.
tiDebtorEndUser_IDintegerDebtorEndUser.DebtorEndUser_IDRecord ID
tcDebtorEndUserCodecharacterDebtorEndUser.DebtorEndUserCodeEnd user code(maximum 8 characters).
api annotation:If you select Link to Customer or Link to Ship-To Address, the End User Code field is filled with the value you specify for the customer or ship-to address./ Otherwise the system automatically generates a number for the record based on the sequence defined in End User Autonumber Create.
tlDebtorEndUserIsDebtorlogicalDebtorEndUser.DebtorEndUserIsDebtorIndicate whether you select Link to Customer.Select this field if you want to define the customer entered in the field "tcDebtorCode" as an end user.
api annotation:Value for this field defaults to false.
tlDebtorEndUserIsShipTologicalDebtorEndUser.DebtorEndUserIsShipToIndicate whether you select Link to Ship-to Address. Select this field if you want to enter a shipto associated with the customer and define the ship-to as an end user.
api annotation:Value for this field defaults to false.
tcDebtorEndUserNamecharacterDebtorEndUser.DebtorEndUserNameEnd User Name
ttLastModifiedDatedateDebtorEndUser.LastModifiedDateLast Modified Date
tiLastModifiedTimeintegerDebtorEndUser.LastModifiedTimeLast Modified Time
tcLastModifiedUsercharacterDebtorEndUser.LastModifiedUserLast Modified User
tiSharedSet_IDintegerDebtorEndUser.SharedSet_IDLink to SharedSet
tiState_IDintegerState.State_IDRecord ID
tcStateCodecharacterState.StateCodeState
tcStateDescriptioncharacterState.StateDescriptionDescription
tcTxzTaxZonecharacterAddress.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.
ti_sequenceintegercalculatedprimary index
tc_rowidcharactercalculated = rowid(DebtorEndUser),rowid(Address),rowid(AddressType),rowid(BusinessRelation),rowid(Country),rowid(County),rowid(State),rowid(Debtor)


Internal usage


QadFinancials
method BDebtorEndUser.ApiLoadDebtorEndUser
method BMfgEndUser.MaintainDataBusinessRelation