tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
iiCompanyId | i | |
tAddress.AddressCity | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressStreet1 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressStreet2 | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tAddress.AddressZip | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tBusinessRelation.BusinessRelationCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceAllocationStatus | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceBalanceCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceCreditCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceCreditLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceCreditTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceDebitCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceDebitLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceDebitTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceBalanceTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceCIText | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceContact | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceDate | t | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceDescription | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceDiscountDueDate | t | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceDueDate | t | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceExchangeRate | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceHoldAmountTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceIsExternal | l | =,<> |
tCInvoice.CInvoiceIsInitialStatus | l | =,<> |
tCInvoice.CInvoiceIsInvoiceApproved | l | =,<> |
tCInvoice.CInvoiceIsLockPayment | l | =,<> |
tCInvoice.CInvoiceIsLogisticMatching | l | =,<> |
tCInvoice.CInvoiceIsOpen | l | =,<> |
tCInvoice.CInvoiceIsSelected | l | =,<> |
tCInvoice.CInvoiceIsTaxable | l | =,<> |
tCInvoice.CInvoiceIsTaxConfirmed | l | =,<> |
tCInvoice.CInvoiceMFText | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceNonRecTaxAmtTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalCreditCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalCreditLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalCreditTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalDebitCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalDebitLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalDebitTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePoDomain | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoicePO.CInvoicePOPoNbr | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoicePostingDate | t | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePostingPeriod | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePostingYear | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePostingYearPeriod | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceRateScale | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceReference | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceRegistrationNr | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceTaxPointDate | t | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceTSMNumber | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceType | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceVatBaseCreditCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatBaseCreditLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatBaseCreditTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatBaseDebitCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatBaseDebitLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatBaseDebitTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatCreditCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatCreditLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatCreditTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatDebitCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatDebitLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatDebitTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVoucher | i | =,>=,>,<>,<=,< |
tCostCentre.CostCentreCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCreditor.CreditorCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCurrency.CurrencyCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tDivision.DivisionCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tJournal.JournalCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.LastModifiedDate | t | =,>=,>,<>,<=,< |
tCInvoice.LastModifiedTime | i | =,>=,>,<>,<=,< |
tCInvoice.LastModifiedUser | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tProject.ProjectCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tPurchaseType.PurchaseTypeCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tReason.ReasonCode | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tRole.RoleName | c | =,>=,>,<>,<=,<,begins,can-do,matches |
iiCompanyId | integer | Company id |
field name | data type | db field | description |
---|---|---|---|
tiCInvoicePostingYear | integer | CInvoice.CInvoicePostingYear | 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. | ||
tiCInvoicePostingPeriod | integer | CInvoice.CInvoicePostingPeriod | 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. | ||
tcJournalCode | character | Journal.JournalCode | A daybook code (maximum eight characters). |
tiCInvoiceVoucher | integer | CInvoice.CInvoiceVoucher | Voucher. This field displays the numeric identifier assigned to the posting. When the daybook of the journal entry is changed (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. |
tcCInvoiceReference | character | CInvoice.CInvoiceReference | Reference. An alphanumeric reference to help identify the invoice in the system. This reference is typically the ID number of the invoice received from the supplier. |
tiCInvoiceRegistrationNr | integer | CInvoice.CInvoiceRegistrationNr | Registration number. This field displays the sequential number assigned to each invoice upon initial entry in the system. |
tlCInvoiceIsInitialStatus | logical | CInvoice.CInvoiceIsInitialStatus | Initial Status. This field indicates if the invoice is in initial status. |
api annotation: | This field defaults from the Initial Status field of the Invoice status code. | ||
tcCInvoicePOPoNbr | character | CInvoicePO.CInvoicePOPoNbr | PO Number. This fields identifies the PO receipts which the invoice matches. |
tcCreditorCode | character | Creditor.CreditorCode | Supplier Code |
ttCInvoiceDate | date | CInvoice.CInvoiceDate | Invoice Date. This field indicates the invoice creation date. The system uses this field with the credit terms to calculate due date and discount date. |
api annotation: | This field defaults from the system date. | ||
tlCInvoiceIsTaxConfirmed | logical | CInvoice.CInvoiceIsTaxConfirmed | Tax Confirmed. This field indicates if the taxes for the invoice have been confirmed and cannot be changed anymore. |
api annotation: | PartialUpdate = yes - defaults to false | ||
tlCInvoiceIsExternal | logical | CInvoice.CInvoiceIsExternal | External. This field indicates if the daybook used is external. This field is calculated by the system using the daybook code. |
tlCInvoiceIsOpen | logical | CInvoice.CInvoiceIsOpen | 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 | ||
tdCInvoiceBalanceTC | decimal | CInvoice.CInvoiceBalanceTC | 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 |
tdCInvoiceBalanceLC | decimal | CInvoice.CInvoiceBalanceLC | 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. |
tdCInvoiceHoldAmountTC | decimal | CInvoice.CInvoiceHoldAmountTC | TC Hold Amount. This field displays the amount of the invoice total that is not to be paid. If this field is not blank, the hold amount is taken into account during payment processing. Hold amounts must be: For invoices or correction invoices: Less than the invoice total and greater than zero. For credit notes or correction credit notes: Greater than the document total and less than zero. The hold amount for a negative payment must always be set to zero. |
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. |
tlCInvoiceIsLogisticMatching | logical | CInvoice.CInvoiceIsLogisticMatching | Receiver Matching.This field indicates If the Receiver Matching function is enabled. This field is calculated by the system using the invoice status code. |
tcRoleName | character | Role.RoleName | Role Name |
tdCInvoiceBalanceCC | decimal | CInvoice.CInvoiceBalanceCC | 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. |
tcReasonCode | character | Reason.ReasonCode | Invoice Status Code |
tcDivisionCode | character | Division.DivisionCode | Sub-Account |
tlCInvoiceIsSelected | logical | CInvoice.CInvoiceIsSelected | Selected. This field indicates whether the invoice is included in a payment selection. This field is read-only. |
ttCInvoicePostingDate | date | CInvoice.CInvoicePostingDate | Posting Date. This filed indicates the date on which the invoice is to be posted. |
api annotation: | This field defaults from the invoice creation date. | ||
tcCInvoiceTypeCalc | character | calculated | Creditor Invoice Type nl Invoice or Credit Note |
ttCInvoiceTaxPointDate | date | CInvoice.CInvoiceTaxPointDate | Tax Point Date.This field indicates the date to be used in tax calculations. |
api annotation: | This field defaults from the posting date. | ||
tcCInvoiceDescription | character | CInvoice.CInvoiceDescription | Description. A brief description of the invoice. The system generates a default description based on the Reference and Supplier Code. |
tiLinkedCInvoice_ID | integer | CInvoice.LinkedCInvoice_ID | Reference |
tdCInvoiceOriginalDebitTC | decimal | CInvoice.CInvoiceOriginalDebitTC | 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. |
tdCInvoiceOriginalCreditTC | decimal | CInvoice.CInvoiceOriginalCreditTC | 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. |
tdCInvoiceOriginalDebitLC | decimal | CInvoice.CInvoiceOriginalDebitLC | 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. |
tdCInvoiceOriginalCreditLC | decimal | CInvoice.CInvoiceOriginalCreditLC | 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. |
tdCInvoiceExchangeRate | decimal | CInvoice.CInvoiceExchangeRate | Exchange Rate. The 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. |
tcCInvoiceAllocationStatusCalc | character | calculated | |
tlCInvoiceIsInvoiceApproved | logical | CInvoice.CInvoiceIsInvoiceApproved | Invoice Approved. This field indicates if the invoice is already approved for payment. |
api annotation: | PartialUpdate = yes - defaults to false | ||
tlCInvoiceIsLockPayment | logical | CInvoice.CInvoiceIsLockPayment | Lock Payment. This field indicates if the invoice is locked for payment. The invoice cannot be included in any automatic payment selections if this field is true. |
api annotation: | PartialUpdate = yes - defaults to false | ||
tcCInvoiceContact | character | CInvoice.CInvoiceContact | Contact. This field indicates the name of the purchasing contact in the supplier company. |
api annotation: | This field defaults from the Contact field of the invoice's supplier. | ||
tcCInvoiceTSMNumber | character | CInvoice.CInvoiceTSMNumber | Payment Reference. This field displays a unique reference number to be included in the supplier payment file. This reference can consist of a Transfer with Structured Message (TSM) number. This field can be blank. |
ttCInvoiceDueDate | date | CInvoice.CInvoiceDueDate | Due Date.This field indicates the date when payment become due. This field can be modified without affecting the credit terms. This field is calculated by the system based on the credit terms and the invoice date. |
ttCInvoiceDiscountDueDate | date | CInvoice.CInvoiceDiscountDueDate | Discount Due Date.This field indicates the last date a discount applies, calculated by the system based on the credit terms and the invoice date. User can modify this field without affecting the credit terms. |
tdCInvoiceVatBaseDebitTC | decimal | CInvoice.CInvoiceVatBaseDebitTC | 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. |
tdCInvoiceVatBaseCreditTC | decimal | CInvoice.CInvoiceVatBaseCreditTC | 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. |
tdCInvoiceVatBaseDebitLC | decimal | CInvoice.CInvoiceVatBaseDebitLC | 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. |
tdCInvoiceVatBaseCreditLC | decimal | CInvoice.CInvoiceVatBaseCreditLC | 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. |
tdCInvoiceVatDebitTC | decimal | CInvoice.CInvoiceVatDebitTC | 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. |
tdCInvoiceVatCreditTC | decimal | CInvoice.CInvoiceVatCreditTC | 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. |
tdCInvoiceVatDebitLC | decimal | CInvoice.CInvoiceVatDebitLC | 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. |
tdCInvoiceVatCreditLC | decimal | CInvoice.CInvoiceVatCreditLC | 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. |
tcCInvoiceCIText | character | CInvoice.CInvoiceCIText | CIDescription. A brief description for the SI posting. |
api annotation: | This field defaults from the CInvoiceDescription. | ||
tcCInvoiceMFText | character | CInvoice.CInvoiceMFText | MFDescription. A brief description for the Matching posting. |
api annotation: | This field defaults from the CInvoiceDescription. | ||
tiReason_ID | integer | CInvoice.Reason_ID | Invoice Status Code |
tiTransactionEndCountry_ID | integer | CInvoice.TransactionEndCountry_ID | Country Code |
tiTransactionStartCountry_ID | integer | CInvoice.TransactionStartCountry_ID | Country Code |
tcCInvoiceType | character | CInvoice.CInvoiceType | Invoice Type. This field identifies the invoice type. The value can be Invoice Correction and Credit Note Correction type only when the appropriate daybook types have already been defined. |
tdCInvoiceVatBaseCreditCC | decimal | CInvoice.CInvoiceVatBaseCreditCC | 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. |
tdCInvoiceVatBaseDebitCC | decimal | CInvoice.CInvoiceVatBaseDebitCC | 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. |
tdCInvoiceVatCreditCC | decimal | CInvoice.CInvoiceVatCreditCC | 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. |
tdCInvoiceVatDebitCC | decimal | CInvoice.CInvoiceVatDebitCC | 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. |
tdCInvoiceBalanceDebitTC | decimal | CInvoice.CInvoiceBalanceDebitTC | TC Balance Amount DR. This field displays the sum of the debit amounts of all posting lines in transaction currency. |
tdCInvoiceBalanceCreditTC | decimal | CInvoice.CInvoiceBalanceCreditTC | TC Balance Amount CR. This field displays the sum of the credit amounts of all posting lines in transaction currency. |
tdCInvoiceBalanceDebitLC | decimal | CInvoice.CInvoiceBalanceDebitLC | 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. |
tdCInvoiceBalanceCreditLC | decimal | CInvoice.CInvoiceBalanceCreditLC | 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. |
tiCInvoice_ID | integer | CInvoice.CInvoice_ID | Record ID |
tiCompany_ID | integer | CInvoice.Company_ID | Link to Company |
tiCreditor_ID | integer | CInvoice.Creditor_ID | Link to Creditor |
tiCInvoiceCurrency_ID | integer | CInvoice.CInvoiceCurrency_ID | Currency Code |
tiDivision_ID | integer | CInvoice.Division_ID | Sub-Account |
tiJournal_ID | integer | CInvoice.Journal_ID | Daybook Code |
tiNormalPaymentCondition_ID | integer | CInvoice.NormalPaymentCondition_ID | Credit Terms Code |
tiPeriod_ID | integer | CInvoice.Period_ID | Link to Period |
tiBLWIGroup_ID | integer | CInvoice.BLWIGroup_ID | BLWI Group Code |
tcCInvoiceAllocationStatus | character | CInvoice.CInvoiceAllocationStatus | Allocation Status.This field indicates whether postings occur and if they affect transient or official layers. User can not delete an invoice which has a non-initial invoice status code. |
tdCInvoiceBalanceDebitCC | decimal | CInvoice.CInvoiceBalanceDebitCC | 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. |
tdCInvoiceOriginalCreditCC | decimal | CInvoice.CInvoiceOriginalCreditCC | 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. |
tdCInvoiceBalanceCreditCC | decimal | CInvoice.CInvoiceBalanceCreditCC | 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. |
tdCInvoiceOriginalDebitCC | decimal | CInvoice.CInvoiceOriginalDebitCC | 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. |
tiPaymentGroup_ID | integer | Creditor.PaymentGroup_ID | Payment Group |
tdCInvoiceNonRecTaxAmtTC | decimal | CInvoice.CInvoiceNonRecTaxAmtTC | Non-Rev Tax Amount. This field displays the percentage of tax that is not recoverable. Taxes are recoverable whenever your company is eligible to offset a percentage of tax on purchases against tax collected on sales. Recoverable taxes are common in Europe. |
tiLastModifiedTime | integer | CInvoice.LastModifiedTime | Last Modified Time |
tcLastModifiedUser | character | CInvoice.LastModifiedUser | Last Modified User |
ttLastModifiedDate | date | CInvoice.LastModifiedDate | Last Modified Date |
tcAddressCity | character | Address.AddressCity | City. The city for this address. This field can be used to decide the tax zone of the address. |
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. |
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. |
tlCInvoiceIsTaxable | logical | CInvoice.CInvoiceIsTaxable | Taxable. This field indicates if the invoice is taxable. This field defaults to true if the supplier is taxable. |
tiShipToAddress_ID | integer | CInvoice.ShipToAddress_ID | City |
tiCInvoicePostingYearPeriod | integer | CInvoice.CInvoicePostingYearPeriod | 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. | ||
tdCInvoiceRateScale | decimal | CInvoice.CInvoiceRateScale | Scale Factor. This field indicates the scale factor applying to the exchange rate in use for foreign currency payments. |
tcCostCentreCode | character | CostCentre.CostCentreCode | Cost Center: A code that identifies the cost center. |
tcProjectCode | character | Project.ProjectCode | Project |
tiRole_ID | integer | CInvoice.Role_ID | Role Name |
tcCInvoicePoDomain | character | CInvoice.CInvoicePoDomain | PO Domain. This field indicates which domain the purchase order belongs to. |
tcPurchaseTypeCode | character | PurchaseType.PurchaseTypeCode | Purchase Type |
CInvoiceCustom | character | calculated | custom fields |
AddressCustom | character | calculated | custom fields |
CInvoicePOCustom | character | calculated | custom fields |
CostCentreCustom | character | calculated | custom fields |
CreditorCustom | character | calculated | custom fields |
BusinessRelationCustom | character | calculated | custom fields |
CurrencyCustom | character | calculated | custom fields |
DivisionCustom | character | calculated | custom fields |
JournalCustom | character | calculated | custom fields |
ProjectCustom | character | calculated | custom fields |
PurchaseTypeCustom | character | calculated | custom fields |
ReasonCustom | character | calculated | custom fields |
RoleCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(CInvoice),rowid(Address),rowid(CInvoicePO),rowid(CostCentre),rowid(Creditor),rowid(BusinessRelation),rowid(Currency),rowid(Division),rowid(Journal),rowid(Project),rowid(PurchaseType),rowid(Reason),rowid(Role) |
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 = "BCInvoice". create ttContext. assign ttContext.propertyName = "methodName" ttContext.propertyValue = "SelectCInvoicePO". 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/bcinvoice.selectcinvoicepo.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.