project QadFinancials > class BBusinessRelation > business logic query AddressForCreditor

Description

This query returns address info and business relation name by sevral address paramenters for creditor.


Parameters


icAddressCitycharacter
icAddressCountrycharacter
icAddressLinecharacter
icAddressSearchNamecharacter
icAddressTypeCodecharacter
icAddressZipcharacter
icBusinessRelationNamecharacter
iiCompanyIdintegerCompany id
icAddressNamecharacter
iiAddressIDinteger


query condition


  each Address where
Address.AddressName = icAddressName AND
Address.AddressSearchName = icAddressSearchName AND
Address.AddressCity = icAddressCity AND
Address.AddressZip = icAddressZip AND
Address.AddressStreet1 = icAddressLine AND
Address.Address_ID = iiAddressID

      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
BusinessRelation.BusinessRelationName1 = icBusinessRelationName

          each Creditor (inner-join) where
Creditor.SharedSet_Id = vi_CREDITOR_sharedset(iiCompanyId) AND
Creditor.BusinessRelation_ID = BusinessRelation.BusinessRelation_ID AND

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


query resultset tqAddressForCreditor


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_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.
tlBusinessRelationIsActivelogicalBusinessRelation.BusinessRelationIsActiveActive: This field indicates if this is an active record.
api annotation:PartialUpdate = yes - defaults to true.
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.
tcCountryCodecharacterCountry.CountryCodeCountry Code
tiCreditor_IDintegerCreditor.Creditor_IDRecord ID
tcCreditorCodecharacterCreditor.CreditorCodeSupplier Code
tlCreditorIsActivelogicalCreditor.CreditorIsActiveActive
tlCreditorIsTaxReportlogicalCreditor.CreditorIsTaxReportTax Report


Internal usage


QadFinancials
method BBankImportLine.GetCreditorByBankImpLine
method BBusinessRelation.ValidateComponentPostAddress
dataset BBankImportLine.tAddressForCreditor