project QadFinancials > class BBusinessRelation > business logic query AddressByDebtorAddressType

Description

This query returns the address info for the Detor of addresstype.


Parameters


iiCompanyIdintegerCompany id
iiDebtorIdinteger
icAddressSearchNamecharacter
icAddressNamecharacter
icAddressTypeCodecharacter


query condition


  each Address where
Address.AddressName = icAddressName AND
Address.AddressSearchName = icAddressSearchName

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

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

          each Debtor (inner-join) where
Debtor.SharedSet_Id = vi_DEBTOR_sharedset(iiCompanyId) AND
Debtor.BusinessRelation_ID = BusinessRelation.BusinessRelation_ID AND
Debtor.Debtor_ID = iiDebtorId


query resultset tqAddressByDebtorAddressType


field namedata typedb fielddescription
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.
tcAddressSearchNamecharacterAddress.AddressSearchNameSearch Name. An alternate name for finding this address.
The searchname of a headoffice address is the same as the business relationship and can not be modified.
api annotation:PartialUpdate = yes - defaults to the searchname of the businessRelation.
tiAddressType_IDintegerAddress.AddressType_IDAddress Type
tcAddressTypeCodecharacterAddressType.AddressTypeCodeAddress Type
tiBusinessRelation_IDintegerAddress.BusinessRelation_IDLink to BusinessRelation
tiBusinessRelation_ID2integerBusinessRelation.BusinessRelation_IDRecord ID
tiDebtor_IDintegerDebtor.Debtor_IDRecord ID


Internal usage


QadFinancials
method BBankImportLine.AdditionalUpdates