project QadFinancials > class BBusinessRelation > business logic query AddressByCountryID

Description

This query that returns the elementary information on the address and the linked business-realtion based on the country-id of the address.


Parameters


iiCountryIDinteger


query condition


  each Address where
Address.Country_ID = iiCountryID

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


query resultset tqAddressByCountryID


field namedata typedb fielddescription
tiBusinessRelation_IDintegerAddress.BusinessRelation_IDLink to BusinessRelation
tiAddress_IDintegerAddress.Address_IDRecord ID
tiCountry_IDintegerAddress.Country_IDCountry Format
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.
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.


Internal usage


QadFinancials
method BCountry.ValidateComponentUsageInAddress