tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
iiCompanyId | i | |
tAddress1.AddressCity | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress2.AddressCity | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress1.AddressStreet1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress2.AddressStreet1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress1.AddressStreet2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress2.AddressStreet2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress1.AddressZip | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress2.AddressZip | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationName1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCorporateGroup.CorporateGroupCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCurrency.CurrencyCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDebtor2.DebtorCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDebtor1.DebtorCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceBalanceCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceCreditCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceCreditLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceCreditTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceDebitCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceDebitLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceDebitTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBalanceTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceBatch | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceContact | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceCreationDate | t | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceCreationTimeString | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceDate | t | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceDescription | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceDiscountDueDate | t | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceDIText | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceDueDate | t | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceExchangeRate | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceInvCertCertificate | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceInvCertKey | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceInvCertSignatureCurr | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceInvCertSignaturePrev | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceInvCertSignatureShort | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceIsOpen | l | =,<> |
tDInvoice.DInvoiceIsPaymentAllowed | l | =,<> |
tDInvoice.DInvoiceIsSelected | l | =,<> |
tDInvoice.DInvoiceIsTaxable | l | =,<> |
tDInvoice.DInvoiceOriginalCreditCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceOriginalCreditLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceOriginalCreditTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceOriginalDebitCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceOriginalDebitLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceOriginalDebitTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoicePostingDate | t | =,>=,>,<>,<=,< |
tDInvoice.DInvoicePostingPeriod | i | =,>=,>,<>,<=,< |
tDInvoice.DInvoicePostingYear | i | =,>=,>,<>,<=,< |
tDInvoice.DInvoicePostingYearPeriod | i | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceTaxPointDate | t | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceTSMNumber | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceType | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.DInvoiceVatBaseCreditCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatBaseCreditLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatBaseCreditTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatBaseDebitCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatBaseDebitLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatBaseDebitTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatCreditCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatCreditLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatCreditTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatDebitCC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatDebitLC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVatDebitTC | d | =,>=,>,<>,<=,< |
tDInvoice.DInvoiceVoucher | i | =,>=,>,<>,<=,< |
tDivision.DivisionCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tJournal.JournalCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDInvoice.LastModifiedDate | t | =,>=,>,<>,<=,< |
tDInvoice.LastModifiedTime | i | =,>=,>,<>,<=,< |
tDInvoice.LastModifiedUser | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPaymentCondition.PaymentConditionCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPaymentCondition.PaymentConditionPaymentTyp | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tReason.ReasonCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
iiCompanyId | integer | Company id |
field name | data type | db field | description |
---|---|---|---|
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. | ||
tiControlGL_ID | integer | DInvoice.ControlGL_ID | Account |
tcCorporateGroupCode | character | CorporateGroup.CorporateGroupCode | Group Name |
ttDInvoiceCreationDate | date | DInvoice.DInvoiceCreationDate | Creation Date |
tcDInvoiceCreationTimeString | character | DInvoice.DInvoiceCreationTimeString | Seconds since midnight in HH:MM:SS |
tcDInvoiceInvCertCertificate | character | DInvoice.DInvoiceInvCertCertificate | Duplicate field from SysProperty |
tcDInvoiceInvCertKey | character | DInvoice.DInvoiceInvCertKey | Invoice Certification Key |
tcDInvoiceInvCertSignatureCurr | character | DInvoice.DInvoiceInvCertSignatureCurr | Signature Current Invoice |
tcDInvoiceInvCertSignaturePrev | character | DInvoice.DInvoiceInvCertSignaturePrev | Signature Previous Invoice |
tcDInvoiceInvCertSignatureShort | character | DInvoice.DInvoiceInvCertSignatureShort | 4-character signature based upon the content of DInvoiceInvCertSignatureCurr |
tcPaymentConditionCode | character | PaymentCondition.PaymentConditionCode | Credit Terms Code |
tcPaymentConditionPaymentTyp | character | PaymentCondition.PaymentConditionPaymentTyp | Payment Type |
tlDInvoiceIsTaxable | logical | DInvoice.DInvoiceIsTaxable | Taxable. This field indicates if the invoice is taxable. |
api annotation: | This field defaults to true if the customer is taxable. | ||
tiSoldToDebtor_ID | integer | DInvoice.SoldToDebtor_ID | Customer Code |
tcDInvoiceBatch | character | DInvoice.DInvoiceBatch | Batch Number. This field is used to identify a group of customer invoices created at one time using Evaluated Receipts Settlement (ERS) functions. |
tcToAddressStreet1 | character | Address2.AddressStreet1 | Address: Line one of address details. This field can be blank. |
tcToAddressCity | character | Address2.AddressCity | City. The city for this address. This field can be used to decide the tax zone of the address. |
tcToAddressZip | character | Address2.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. |
tcToAddressStreet2 | character | Address2.AddressStreet2 | Address.Line two of address details. This field can be blank. |
tcFromAddressZip | character | Address1.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. |
tcFromAddressStreet2 | character | Address1.AddressStreet2 | Address.Line two of address details. This field can be blank. |
tcFromAddressStreet1 | character | Address1.AddressStreet1 | Address: Line one of address details. This field can be blank. |
tcFromAddressCity | character | Address1.AddressCity | City. The city for this address. This field can be used to decide the tax zone of the address. |
tiShipToAddress_ID | integer | DInvoice.ShipToAddress_ID | City |
tiShipFromAddress_ID | integer | DInvoice.ShipFromAddress_ID | Address |
tiDInvoicePostingYearPeriod | integer | DInvoice.DInvoicePostingYearPeriod | Year/Period. This field indicates the accounting year and period for the invoice. If you modify these fields, the posting and tax dates are changed correspondingly. |
api annotation: | This field defaults to the accounting year and period associated with the posting date. | ||
tiDInvoicePostingYear | integer | DInvoice.DInvoicePostingYear | Year.This field indicates the accounting year for the invoice. If you modify these fields, the posting and tax dates are changed correspondingly. |
api annotation: | This field defaults to the accounting year associated with the posting date. | ||
tiDInvoicePostingPeriod | integer | DInvoice.DInvoicePostingPeriod | GL Period.This field indicates the period when the invoice to be posted. If this field is modified, the posting and tax dates are changed correspondingly. |
api annotation: | This field defaults to the period associated with the posting date. | ||
tcSoldToDebtorCode | character | Debtor2.DebtorCode | A 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. | ||
tcDebtorCode | character | Debtor1.DebtorCode | A 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. | ||
tcJournalCode | character | Journal.JournalCode | A daybook code (maximum eight characters). |
tiDInvoiceVoucher | integer | DInvoice.DInvoiceVoucher | Voucher.This field displays the numeric identifier assigned to the posting. When the daybook of the journal entry is charged(after transfer), the voucher is cleared. Voucher must be unique in one GL period. When the user input is zero, the system automatically assign a value not used yet for this field. |
tlDInvoiceIsOpen | logical | DInvoice.DInvoiceIsOpen | Open.This field indicates if the invoice has been completely paid. This field is updated automatically when complete payment is confirmed. This field is read-only. |
api annotation: | PartialUpdate = yes - defaults to true | ||
tdDInvoiceBalanceTC | decimal | DInvoice.DInvoiceBalanceTC | Balance. This field displays the sum of the debit and credit amounts of all posting lines in transaction currency. |
tcCurrencyCode | character | Currency.CurrencyCode | Currency Code |
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. |
ttDInvoiceDate | date | DInvoice.DInvoiceDate | Invoice Date. This field indicates the invoice creation date.This field is normallly prior to the posting date and within the same accounting period as the posting date. The date must be within the upper and lower date limits of an open GL period. The system uses the invoice date with the credit terms to calculate due date and discount date. |
api annotation: | This field defaults to the DInvoicePostingDate. | ||
tcDInvoiceType | character | DInvoice.DInvoiceType | Invoice Type. This field displays the invoice type. Invoice Correction and Credit Note Correction display as choices only when the appropriate daybook types have already been defined. |
api annotation: | PartialUpdate = yes - defaults to Invoice | ||
tdDInvoiceBalanceLC | decimal | DInvoice.DInvoiceBalanceLC | BC Balance. This field displays the sum of the debit and credit amounts of all posting lines in base currency. This field is calculated by the system using the TC Balance and the Exchange rate. |
tdDInvoiceBalanceCC | decimal | DInvoice.DInvoiceBalanceCC | SC Balance. This field displays the sum of the debit and credit amounts of all posting lines in statutory currency. This field is calculated by the system using the TC Balance and the SC rate. |
tlDInvoiceIsSelected | logical | DInvoice.DInvoiceIsSelected | Selected. This field indicates whether the invoice is included in a payment selection. This field is read-only. |
api annotation: | PartialUpdate = yes - defaults to false | ||
tdDInvoiceOriginalDebitTC | decimal | DInvoice.DInvoiceOriginalDebitTC | TC AP Amount. This field displays the debit total invoice amount in the transaction currency. If you modify this field, the system automatically recalculates the exchange rate to ensure that the TC Invoice Amount remains the same. |
tdDInvoiceOriginalCreditTC | decimal | DInvoice.DInvoiceOriginalCreditTC | TC Invoice Amount CR. This field displays the credit total invoice amount in the transaction currency. If you modify this field, the system automatically recalculates the exchange rate to ensure that the BC Invoice Amount remains the same. |
tcDInvoiceTypeCalc | character | calculated | Debtor Invoice Type |
tcDInvoiceDescription | character | DInvoice.DInvoiceDescription | Description. A brief description of the invoice. This field is mandatory. |
tcDivisionCode | character | Division.DivisionCode | Sub-Account |
ttDInvoicePostingDate | date | DInvoice.DInvoicePostingDate | Posting Date. This field displays the date the sales-related invoice was generated by Invoice Post and Print. This field is updated when the invoice is validated and saved. |
api annotation: | This field defaults from the invoice creation date. | ||
ttDInvoiceTaxPointDate | date | DInvoice.DInvoiceTaxPointDate | Tax Point Date. The date to be used in tax calculations. For sales-related invoices, this field displays the tax calculation date on the associated order. |
api annotation: | This field defaults to DInvoicePostingDate. | ||
tcReasonCode | character | Reason.ReasonCode | Invoice Status Code |
tdDInvoiceExchangeRate | decimal | DInvoice.DInvoiceExchangeRate | Exchange Rate. The accounting exchange rate used by the invoice. The BC Invoice Amount is calculated based on the exchange rate. If user modify the TC Invoice Amount, the BC invoice amount is automatically adjusted. |
tdDInvoiceOriginalDebitLC | decimal | DInvoice.DInvoiceOriginalDebitLC | BC Invoice Amount(DR). This field displays the debit total invoice amount in the base currency. This field is calculated by the system using the TC Invoice Amount(DR) and the Exchange rate. |
tdDInvoiceOriginalCreditLC | decimal | DInvoice.DInvoiceOriginalCreditLC | BC Invoice Amount(CR). This field displays the credit total invoice amount in the base currency. This field is calculated by the system using the TC Invoice Amount(CR) and the Exchange rate. |
tcDInvoiceContact | character | DInvoice.DInvoiceContact | Contact. The contact name for the customer. |
ttDInvoiceDueDate | date | DInvoice.DInvoiceDueDate | Due Date. This field displays the date when payment is due, calculated by the system based on the credit terms and the invoice date. User can modify the due date without affecting the credit terms. If the credit terms have a base date specified, this is used in the due date calculations rather than the invoice creation date. |
ttDInvoiceDiscountDueDate | date | DInvoice.DInvoiceDiscountDueDate | Discount Due Date. This field displays the last date a discount applies, calculated by the system based on the credit terms and the invoice date. You can modify the due date without affecting the credit terms. If the credit terms have a base date specified, this is used in the due date calculations rather than the invoice creation date. |
tlDInvoiceIsPaymentAllowed | logical | DInvoice.DInvoiceIsPaymentAllowed | CN Payment Allowed. This field applies to only credit notes;otherwise, it is read-only. Selecting the field indicates that the customer credit note can be included in a payment selection. |
api annotation: | PartialUpdate = yes - defaults to false | ||
tcDInvoiceTSMNumber | character | DInvoice.DInvoiceTSMNumber | Payment Reference. This field contains a reference number to identify a customer payment for this invoice. Normally this could be a unique transaction structured message (TSM) number. The TSM is a standard reference numbering system for electronic transfers,used by many banks. |
tdDInvoiceVatBaseCreditTC | decimal | DInvoice.DInvoiceVatBaseCreditTC | TC Base Amount CR. This field displays the credit base amount in the transaction currency. This field is calculated by the system using the total invoice amount (TC) and the applicable tax rate code. |
tdDInvoiceVatBaseDebitTC | decimal | DInvoice.DInvoiceVatBaseDebitTC | TC Base Amount DR. This field displays the debit base amount in the transaction currency. This field is calculated by the system using the total invoice amount (TC) and the applicable tax rate code. |
tdDInvoiceVatCreditTC | decimal | DInvoice.DInvoiceVatCreditTC | TC Tax Amount CR. This field displays the credit tax amount (TC) calculated by the system using the total invoice amount (TC) and the applicable tax rate code. |
tdDInvoiceVatDebitTC | decimal | DInvoice.DInvoiceVatDebitTC | TC Tax Amount DR. This field displays the debit tax amount (TC) calculated by the system using the total invoice amount (TC) and the applicable tax rate code. |
tcDInvoiceDIText | character | DInvoice.DInvoiceDIText | CIDescription. A brief description for the SI posting. |
api annotation: | This field defaults from the DInvoiceDescription. | ||
tdDInvoiceOriginalCreditCC | decimal | DInvoice.DInvoiceOriginalCreditCC | SC Invoice Amount (CR). This field displays the credit total invoice amount in the statutory currency. This field is calculated by the system using the TC Invoice Amount(CR) and the SC Rate. |
tdDInvoiceOriginalDebitCC | decimal | DInvoice.DInvoiceOriginalDebitCC | SC Invoice Amount (DR). This field displays the debit total invoice amount in the statutory currency. This field is calculated by the system using the TC Invoice Amount(CR) and the SC Rate. |
tdDInvoiceVatBaseCreditCC | decimal | DInvoice.DInvoiceVatBaseCreditCC | SC Base Amount CR. This field displays the credit base amount in the statutory currency. This field is calculated by the system using the TC Base Amount CR and the SC rate. |
tdDInvoiceVatBaseCreditLC | decimal | DInvoice.DInvoiceVatBaseCreditLC | BC Base Amount CR. This field displays the credit base amount in the base currency. This field is calculated by the system using the TC Base Amount CR and the Exchange rate. |
tdDInvoiceVatBaseDebitCC | decimal | DInvoice.DInvoiceVatBaseDebitCC | SC Base Amount DR. This field displays the debit base amount in the statutory currency. This field is calculated by the system using the TC Base Amount DR and the SC rate. |
tdDInvoiceVatBaseDebitLC | decimal | DInvoice.DInvoiceVatBaseDebitLC | BC Base Amount DR. This field displays the debit base amount in the base currency. This field is calculated by the system using the TC Base Amount DR and the Exchange rate. |
tdDInvoiceVatCreditCC | decimal | DInvoice.DInvoiceVatCreditCC | SC Tax Amount CR. This field displays the credit tax amount in the statutory currency. This field is calculated by the system using the TC Tax Amount CR and the SC rate. |
tdDInvoiceVatCreditLC | decimal | DInvoice.DInvoiceVatCreditLC | BC Tax Amount CR. This field displays the debit tax amount in the base currency. This field is calculated by the system using the TC Tax Amount CR and the Exchange rate. |
tdDInvoiceVatDebitCC | decimal | DInvoice.DInvoiceVatDebitCC | BC Tax Amount DR. This field displays the debit tax amount in the statutory currency. This field is calculated by the system using the TC Tax Amount DR and the SC rate. |
tdDInvoiceVatDebitLC | decimal | DInvoice.DInvoiceVatDebitLC | BC Tax Amount DR. This field displays the debit tax amount in the base currency. This field is calculated by the system using the TC Tax Amount DR and the Exchange rate. |
tdDInvoiceBalanceCreditCC | decimal | DInvoice.DInvoiceBalanceCreditCC | BC Balance Amount CR. This field displays the sum of the credit amounts of all posting lines in transaction currency. This field is calculated by the system using the TC Base Amount CR and the SC rate. |
tdDInvoiceBalanceCreditLC | decimal | DInvoice.DInvoiceBalanceCreditLC | BC Balance Amount CR. This field displays the sum of the credit amounts of all posting lines in transaction currency. This field is calculated by the system using the TC Base Amount CR and the Exchange rate. |
tdDInvoiceBalanceCreditTC | decimal | DInvoice.DInvoiceBalanceCreditTC | TC Balance Amount CR. This field displays the sum of the credit amounts of all posting lines in transaction currency. |
tdDInvoiceBalanceDebitCC | decimal | DInvoice.DInvoiceBalanceDebitCC | SC Balance Amount DR. This field displays the sum of the debit amounts of all posting lines in statutory currency. This field is calculated by the system using the TC Base Amount DR and the SC rate. |
tdDInvoiceBalanceDebitLC | decimal | DInvoice.DInvoiceBalanceDebitLC | BC Balance Amount DR. This field displays the sum of the debit amounts of all posting lines in transaction currency. This field is calculated by the system using the TC Base Amount DR and the Exchange rate. |
tdDInvoiceBalanceDebitTC | decimal | DInvoice.DInvoiceBalanceDebitTC | TC Balance Amount DR. This field displays the sum of the debit amounts of all posting lines in transaction currency. |
tiDInvoice_ID | integer | DInvoice.DInvoice_ID | Record ID |
tiDivision_ID | integer | DInvoice.Division_ID | Sub-Account |
tiJournal_ID | integer | DInvoice.Journal_ID | Daybook Code |
tiNormalPaymentCondition_ID | integer | DInvoice.NormalPaymentCondition_ID | Credit Terms Code |
tiPeriod_ID | integer | DInvoice.Period_ID | Link to Period |
tiReason_ID | integer | DInvoice.Reason_ID | Invoice Status Code |
tiTransactionEndCountry_ID | integer | DInvoice.TransactionEndCountry_ID | Country Code |
tiTransactionStartCountry_ID | integer | DInvoice.TransactionStartCountry_ID | Country Code |
tiLinkedDInvoice_ID | integer | DInvoice.LinkedDInvoice_ID | Voucher |
tiCompany_ID | integer | DInvoice.Company_ID | Link to Company |
tiDInvoiceCurrency_ID | integer | DInvoice.DInvoiceCurrency_ID | Currency Code |
tiDebtor_ID | integer | DInvoice.Debtor_ID | Link to Debtor |
tiDeliveryCond_ID | integer | DInvoice.DeliveryCond_ID | Link to DeliveryCond |
tcLastModifiedUser | character | DInvoice.LastModifiedUser | Last Modified User |
tiLastModifiedTime | integer | DInvoice.LastModifiedTime | Last Modified Time |
ttLastModifiedDate | date | DInvoice.LastModifiedDate | Last Modified Date |
DInvoiceCustom | character | calculated | custom fields |
Address1Custom | character | calculated | custom fields |
Address2Custom | character | calculated | custom fields |
CurrencyCustom | character | calculated | custom fields |
Debtor1Custom | character | calculated | custom fields |
BusinessRelationCustom | character | calculated | custom fields |
CorporateGroupCustom | character | calculated | custom fields |
Debtor2Custom | character | calculated | custom fields |
DivisionCustom | character | calculated | custom fields |
JournalCustom | character | calculated | custom fields |
ReasonCustom | character | calculated | custom fields |
PaymentConditionCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(DInvoice),rowid(Address1),rowid(Address2),rowid(Currency),rowid(Debtor1),rowid(BusinessRelation),rowid(CorporateGroup),rowid(Debtor2),rowid(Division),rowid(Journal),rowid(PaymentCondition),rowid(Reason) |
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 = "BDInvoice". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "SelectDInvoice". 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/bdinvoice.selectdinvoice.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.