tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
iiDomainID | i | = |
tAddress.AddressCity | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressCounty | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressIsTaxable | l | =,<> |
tAddress.AddressIsTaxIncluded | l | =,<> |
tAddress.AddressStreet1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressStreet2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressTaxDeclaration | i | =,>=,>,<>,<=,< |
tAddress.AddressTaxIDFederal | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressTaxIDMisc1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressTaxIDMisc2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressTaxIDMisc3 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressTaxIDState | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddressType.AddressTypeCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressZip | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationICCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationIsActive | l | =,<> |
tBusinessRelation.BusinessRelationIsCompens | l | =,<> |
tBusinessRelation.BusinessRelationIsDomRestr | l | =,<> |
tBusinessRelation.BusinessRelationIsInComp | l | =,<> |
tBusinessRelation.BusinessRelationIsInterco | l | =,<> |
tBusinessRelation.BusinessRelationIsLastFill | l | =,<> |
tBusinessRelation.BusinessRelationIsTaxRep | l | =,<> |
tBusinessRelation.BusinessRelationName1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationName2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationName3 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationNameCtrl | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationSearchName | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCorporateGroup.CorporateGroupCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCountry.CountryCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCounty.CountyCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.LastModifiedDate | t | =,>=,>,<>,<=,< |
tBusinessRelation.LastModifiedTime | i | =,>=,>,<>,<=,< |
tBusinessRelation.LastModifiedUser | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tLng.LngCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tState.StateCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
iiDomainID | integer |
field name | data type | db field | description |
---|---|---|---|
tcAddressCity | character | Address.AddressCity | City. The city for this address. This field can be used to decide the tax zone of the address. |
tcAddressCounty | character | Address.AddressCounty | Obsolete field |
tlAddressIsTaxable | logical | Address.AddressIsTaxable | Taxable 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. | ||
tlAddressIsTaxIncluded | logical | Address.AddressIsTaxIncluded | Tax Is Included. This field indicates if line item prices for this address normally include tax. The value of Tax Is Included defaults to the header of transactions created for this address. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tcAddressStreet1 | character | Address.AddressStreet1 | Address: Line one of address details. This field can be blank. |
tcAddressStreet2 | character | Address.AddressStreet2 | Address.Line two of address details. This field can be blank. |
tiAddressTaxDeclaration | integer | Address.AddressTaxDeclaration | This field is mandatory. |
tcAddressTaxIDFederal | character | Address.AddressTaxIDFederal | Federal Tax. The value of this filed is the tax ID assigned to this address by the federal or national government. If Tax Report is true, the Federal tax ID must be unique; otherwise, related business relations can share an ID. |
tcAddressTaxIDMisc1 | character | Address.AddressTaxIDMisc1 | Miscellaneous Tax 1.This field is for reference and documentation purposes, its value can be any other tax identification numbers that are useful. This field can be blank. |
tcAddressTaxIDMisc2 | character | Address.AddressTaxIDMisc2 | Miscellaneous Tax 2.This field is for reference and documentation purposes, its value can be any other tax identification numbers that are useful. This field can be blank. |
tcAddressTaxIDMisc3 | character | Address.AddressTaxIDMisc3 | Miscellaneous Tax 3.This field is for reference and documentation purposes, its value can be any other tax identification numbers that are useful. This field can be blank. |
tcAddressTaxIDState | character | Address.AddressTaxIDState | State 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. |
tcAddressTypeCode | character | AddressType.AddressTypeCode | Address Type |
tcAddressZip | character | Address.AddressZip | Zip. 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. |
tcBusinessRelationICCode | character | BusinessRelation.BusinessRelationICCode | Intercompany 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. |
tlBusinessRelationIsDomRestr | logical | BusinessRelation.BusinessRelationIsDomRestr | Domain Restricted. This filed indicates if access to this business relation is restricted by domain. |
api annotation: | PartialUpdate = yes - defaults to the value for this field defaults from the Business Relations by Domain field in System Maintain. | ||
tlBusinessRelationIsLastFill | logical | BusinessRelation.BusinessRelationIsLastFill | Last Filing. For an internal company, this field indicates whether this is the last time your company is filing a 1099-MISC under its current taxpayer ID number. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tlBusinessRelationIsTaxRep | logical | BusinessRelation.BusinessRelationIsTaxRep | Tax Report. For an internal company,this filed indicates whether to use this address for 1099 tax reporting. When this field is yes, the name, first line of the street address, city, state, zip code, telephone number, and federal tax ID for the headoffice address must not be blank. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tcBusinessRelationName3 | character | BusinessRelation.BusinessRelationName3 | Third Name: A name required for some regional reports. This field can be blank. |
tcBusinessRelationNameCtrl | character | BusinessRelation.BusinessRelationNameCtrl | Name Control. For an internal company, the value is the IRS magnetic media control code assigned to this company. When Tax Report is selected, a warning displays when this field is blank. |
tcCorporateGroupCode | character | CorporateGroup.CorporateGroupCode | Group Name |
tcCountryCode | character | Country.CountryCode | Country Code |
tcCountyCode | character | County.CountyCode | County Code |
tiDomain_ID | integer | BusinessRelation.Domain_ID | Link to Domains |
ttLastModifiedDate | date | BusinessRelation.LastModifiedDate | Last Modified Date |
tiLastModifiedTime | integer | BusinessRelation.LastModifiedTime | Last Modified Time |
tcLastModifiedUser | character | BusinessRelation.LastModifiedUser | Last Modified User |
tcLngCode | character | Lng.LngCode | Language Code |
tiState_ID | integer | State.State_ID | Record ID |
tcStateCode | character | State.StateCode | State |
tiBusinessRelation_ID | integer | BusinessRelation.BusinessRelation_ID | Record ID |
tcBusinessRelationCode | character | BusinessRelation.BusinessRelationCode | Business 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. |
tcBusinessRelationSearchName | character | BusinessRelation.BusinessRelationSearchName | Search Name: An alternate name for finding the business relation. This field can be useful for sorting and filtering. |
api annotation: | PartialUpdate = yes - defaults to the BusinessRelationCode. | ||
tcBusinessRelationName1 | character | BusinessRelation.BusinessRelationName1 | Name: 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. | ||
tcBusinessRelationName2 | character | BusinessRelation.BusinessRelationName2 | Second Name. An extended name when the Name field is not large enough to contain all information. This fielsd can be blank. |
tiCorporateGroup_ID | integer | BusinessRelation.CorporateGroup_ID | Group Name |
tlBusinessRelationIsActive | logical | BusinessRelation.BusinessRelationIsActive | Active: This field indicates if this is an active record. |
api annotation: | PartialUpdate = yes - defaults to true. | ||
tlBusinessRelationIsInComp | logical | BusinessRelation.BusinessRelationIsInComp | Internal Entity. This filed indicates if the business relation identifies one of your entities within this database. If this is an internal entity, you can also update the Tax Report, Name Control, and Last Filing fields, which are used for filing 1099-MISC reports in the US. |
api annotation: | PartialUpdate = yes - defaults to false. For internal entities, this field defaults to yes and cannot be changed. | ||
tlBusinessRelationIsInterco | logical | BusinessRelation.BusinessRelationIsInterco | Intercompany. 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. | ||
tlBusinessRelationIsCompens | logical | BusinessRelation.BusinessRelationIsCompens | Customer/Supplier Compensation Allowed. This filed indicates how open items should be managed during payment processing when a customer and supplier are both associated with this business relation. |
api annotation: | PartialUpdate = yes - defaults to false. | ||
tiLng_ID | integer | BusinessRelation.Lng_ID | Language Code |
BusinessRelationCustom | character | calculated | custom fields |
AddressCustom | character | calculated | custom fields |
AddressTypeCustom | character | calculated | custom fields |
CountryCustom | character | calculated | custom fields |
CountyCustom | character | calculated | custom fields |
StateCustom | character | calculated | custom fields |
CorporateGroupCustom | character | calculated | custom fields |
LngCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(BusinessRelation),rowid(Address),rowid(AddressType),rowid(Country),rowid(County),rowid(State),rowid(CorporateGroup),rowid(Lng) |
define temp-table ttContext no-undo field propertyQualifier as character field propertyName as character field propertyValue as character index entityContext is primary unique propertyQualifier propertyName index propertyQualifier propertyQualifier. define dataset dsContext for ttContext. define variable vhContextDS as handle no-undo. define variable vhExceptionDS as handle no-undo. define variable vhServer as handle no-undo. define variable vhInputDS as handle no-undo. define variable vhInputOutputDS as handle no-undo. define variable vhOutputDS as handle no-undo. define variable vhParameter as handle no-undo. /* Create context */ create ttContext. assign ttContext.propertyName = "programName" ttContext.propertyValue = "BBusinessRelation". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "SelectBusinessRelation". create ttContext. assign ttContext.propertyName = "applicationId" ttContext.propertyValue = "fin". create ttContext. assign ttContext.propertyName = "entity" ttContext.propertyValue = "1000". create ttContext. assign ttContext.propertyName = "userName" ttContext.propertyValue = "mfg". create ttContext. assign ttContext.propertyName = "password" ttContext.propertyValue = "". /* Create input dataset */ create dataset vhInputDS. vhInputDS:read-xmlschema("file", "xml/bbusinessrelation.selectbusinessrelation.i.xsd", ?). vhParameter = vhInputDS:get-buffer-handle("tParameterI"). vhParameter:buffer-create(). assign vhParameter::icRange = "A" vhParameter::icRowid = "" vhParameter::iiRownum = 0 vhParameter::iiNumber = 5 /* Number of records to read */ vhParameter::icSortColumns = "" vhParameter::ilCountOnly = false vhParameter::ilForwardRead = true vhParameter::iiMaximumBrowseRecordsToCount = 0. vhParameter = vhInputDS:get-buffer-handle("tFilter"). vhParameter:buffer-create(). assign vhParameter::<field-name-1> = <field-value-1> vhParameter::<field-name-2> = <field-value-2> ... /* Connect the AppServer */ create server vhServer. vhServer:connect("-URL <appserver-url>"). if not vhServer:connected() then do: message "Could not connect AppServer" view-as alert-box error title "Error". return. end. /* Run */ assign vhContextDS = dataset dsContext:handle. run program/rpcrequestservice.p on vhServer (input-output dataset-handle vhContextDS by-reference, output dataset-handle vhExceptionDS, input dataset-handle vhInputDS by-reference, input-output dataset-handle vhInputOutputDS by-reference, output dataset-handle vhOutputDS). /* Handle output however you want, in this example, we dump it to xml */ if valid-handle(vhExceptionDS) then vhExceptionDS:write-xml("file", "Exceptions.xml", true). if valid-handle(vhOutputDS) then vhOutputDS:write-xml("file", "Output.xml", true). /* Cleanup */ vhServer:disconnect(). assign vhServer = ?. if valid-handle(vhInputDS) then delete object vhInputDS. if valid-handle(vhOutputDS) then delete object vhOutputDS. if valid-handle(vhExceptionDS) then delete object vhExceptionDS.