tcBusinessFieldName | tcDataType | tcOperator |
---|---|---|
iiCompanyId | i | |
iiCInvoice_ID | i | = |
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.CInvoiceCirecClosingDate | t | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceCIText | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceClosingDate | t | =,>=,>,<>,<=,< |
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.CInvoiceIsInvoiceApproved | l | =,<> |
tCInvoice.CInvoiceIsLockPayment | l | =,<> |
tCInvoice.CInvoiceIsLogisticMatching | l | =,<> |
tCInvoice.CInvoiceIsOpen | l | =,<> |
tCInvoice.CInvoiceIsSelected | l | =,<> |
tCInvoice.CInvoiceIsTaxable | l | =,<> |
tCInvoice.CInvoiceIsVatDelay | l | =,<> |
tCInvoice.CInvoiceIsWHT | l | =,<> |
tCInvoice.CInvoiceMFText | c | =,>=,>,<>,<=,<,begins,can-do,matches |
tCInvoice.CInvoiceOriginalCreditCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalCreditLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalCreditTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalDebitCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalDebitLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceOriginalDebitTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePostingDate | t | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePostingPeriod | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePostingYear | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoicePostingYearPeriod | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceRateScale | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceReference | c | =,>=,>,<>,<=,<,begins,can-do,matches |
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.CInvoiceVatExchangeRate | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVatRateScale | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceVoucher | i | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTBaseAmtCreditCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTBaseAmtCreditLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTBaseAmtCreditTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTBaseAmtDebitCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTBaseAmtDebitLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTBaseAmtDebitTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTTotAmtCreditCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTTotAmtCreditLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTTotAmtCreditTC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTTotAmtDebitCC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTTotAmtDebitLC | d | =,>=,>,<>,<=,< |
tCInvoice.CInvoiceWHTTotAmtDebitTC | d | =,>=,>,<>,<=,< |
tCInvoice.LastModifiedDate | t | =,>=,>,<>,<=,< |
tCInvoice.LastModifiedTime | i | =,>=,>,<>,<=,< |
tCInvoice.LastModifiedUser | c | =,>=,>,<>,<=,<,begins,can-do,matches |
iiCompanyId | integer | Company id |
iiCInvoice_ID | integer | Invoice ID |
field name | data type | db field | description |
---|---|---|---|
tiBLWIGroup_ID | integer | CInvoice.BLWIGroup_ID | BLWI Group Code |
tiCInvoice_ID | integer | CInvoice.CInvoice_ID | Record ID |
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. |
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. |
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. |
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. |
tdCInvoiceBalanceCreditTC | decimal | CInvoice.CInvoiceBalanceCreditTC | TC Balance Amount CR. This field displays the sum of the credit amounts of all posting lines in transaction currency. |
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. |
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. |
tdCInvoiceBalanceDebitTC | decimal | CInvoice.CInvoiceBalanceDebitTC | TC Balance Amount DR. This field displays the sum of the debit amounts of all posting lines in transaction currency. |
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. |
tdCInvoiceBalanceTC | decimal | CInvoice.CInvoiceBalanceTC | Balance. This field displays the sum of the debit and credit amounts of all posting lines in transaction currency. |
ttCInvoiceCirecClosingDate | date | CInvoice.CInvoiceCirecClosingDate | SIREC Closing Date.This field displays the date on which the Unallocated Invoices account has been backed out for this invoice. |
tcCInvoiceCIText | character | CInvoice.CInvoiceCIText | CIDescription. A brief description for the SI posting. |
api annotation: | This field defaults from the CInvoiceDescription. | ||
ttCInvoiceClosingDate | date | CInvoice.CInvoiceClosingDate | Closing Date. This field displays the date on which the open balance became zero. |
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. | ||
tiCInvoiceCurrency_ID | integer | CInvoice.CInvoiceCurrency_ID | Currency 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. | ||
tcCInvoiceDescription | character | CInvoice.CInvoiceDescription | Description. A brief description of the invoice. The system generates a default description based on the Reference and Supplier Code. |
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. |
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. |
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. |
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. |
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 | ||
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. |
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 | ||
tlCInvoiceIsSelected | logical | CInvoice.CInvoiceIsSelected | Selected. This field indicates whether the invoice is included in a payment selection. This field is read-only. |
tlCInvoiceIsTaxable | logical | CInvoice.CInvoiceIsTaxable | Taxable. This field indicates if the invoice is taxable. This field defaults to true if the supplier is taxable. |
tlCInvoiceIsVatDelay | logical | CInvoice.CInvoiceIsVatDelay | Tax Delay. This field indicates if the Taxes on purchase orders and supplier invoices or credit notes are delayed. |
tlCInvoiceIsWHT | logical | CInvoice.CInvoiceIsWHT | Withholding Tax |
tcCInvoiceMFText | character | CInvoice.CInvoiceMFText | MFDescription. A brief description for the Matching posting. |
api annotation: | This field defaults from the CInvoiceDescription. | ||
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. |
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. |
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. |
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. |
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. |
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. |
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. | ||
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. | ||
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. | ||
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. |
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. |
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. | ||
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
tdCInvoiceVatExchangeRate | decimal | CInvoice.CInvoiceVatExchangeRate | Tax Exchange Rate. The exchange rate used to calculate the tax of the invoice. The BC Tax amount is calculated using the Tax exchange rate. |
tdCInvoiceVatRateScale | decimal | CInvoice.CInvoiceVatRateScale | Tax Rate Scale. This field indicates the scale factor applying to the tax exchange rate in use for foreign currency payments. |
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. |
tdCInvoiceWHTBaseAmtCreditCC | decimal | CInvoice.CInvoiceWHTBaseAmtCreditCC | SC WHT Base Amount (CR) |
tdCInvoiceWHTBaseAmtCreditLC | decimal | CInvoice.CInvoiceWHTBaseAmtCreditLC | BC WHT Base Amount (CR) |
tdCInvoiceWHTBaseAmtCreditTC | decimal | CInvoice.CInvoiceWHTBaseAmtCreditTC | TC WHT Base Amount (CR) |
tdCInvoiceWHTBaseAmtDebitCC | decimal | CInvoice.CInvoiceWHTBaseAmtDebitCC | SC WHT Base Amount (DR) |
tdCInvoiceWHTBaseAmtDebitLC | decimal | CInvoice.CInvoiceWHTBaseAmtDebitLC | BC WHT Base Amount (DR) |
tdCInvoiceWHTBaseAmtDebitTC | decimal | CInvoice.CInvoiceWHTBaseAmtDebitTC | TC WHT Base Amount (DR) |
tdCInvoiceWHTTotAmtCreditCC | decimal | CInvoice.CInvoiceWHTTotAmtCreditCC | SC WHT Total Amount (CR) |
tdCInvoiceWHTTotAmtCreditLC | decimal | CInvoice.CInvoiceWHTTotAmtCreditLC | BC WHT Total Amount (CR) |
tdCInvoiceWHTTotAmtCreditTC | decimal | CInvoice.CInvoiceWHTTotAmtCreditTC | TC WHT Total Amount (CR) |
tdCInvoiceWHTTotAmtDebitCC | decimal | CInvoice.CInvoiceWHTTotAmtDebitCC | SC WHT Total Amount (DR) |
tdCInvoiceWHTTotAmtDebitLC | decimal | CInvoice.CInvoiceWHTTotAmtDebitLC | BC WHT Total Amount (DR) |
tdCInvoiceWHTTotAmtDebitTC | decimal | CInvoice.CInvoiceWHTTotAmtDebitTC | TC WHT Total Amount (DR) |
tiCompany_ID | integer | CInvoice.Company_ID | Link to Company |
tiCostCentre_ID | integer | CInvoice.CostCentre_ID | Cost Center |
tiCreditor_ID | integer | CInvoice.Creditor_ID | Link to Creditor |
tcCustomCombo0 | character | CInvoice.CustomCombo0 | Custom Combo Field |
tcCustomCombo1 | character | CInvoice.CustomCombo1 | Custom Combo Field |
tcCustomCombo2 | character | CInvoice.CustomCombo2 | Custom Combo Field |
tcCustomCombo3 | character | CInvoice.CustomCombo3 | Custom Combo Field |
tcCustomCombo4 | character | CInvoice.CustomCombo4 | Custom Combo Field |
tcCustomCombo5 | character | CInvoice.CustomCombo5 | Custom Combo Field |
tcCustomCombo6 | character | CInvoice.CustomCombo6 | Custom Combo Field |
tcCustomCombo7 | character | CInvoice.CustomCombo7 | Custom Combo Field |
tcCustomCombo8 | character | CInvoice.CustomCombo8 | Custom Combo Field |
tcCustomCombo9 | character | CInvoice.CustomCombo9 | Custom Combo Field |
ttCustomDate0 | date | CInvoice.CustomDate0 | Custom Date Field |
ttCustomDate1 | date | CInvoice.CustomDate1 | Custom Date Field |
ttCustomDate2 | date | CInvoice.CustomDate2 | Custom Date Field |
ttCustomDate3 | date | CInvoice.CustomDate3 | Custom Date Field |
ttCustomDate4 | date | CInvoice.CustomDate4 | Custom Date Field |
tdCustomDecimal0 | decimal | CInvoice.CustomDecimal0 | Custom Decimal Field |
tdCustomDecimal1 | decimal | CInvoice.CustomDecimal1 | Custom Decimal Field |
tdCustomDecimal2 | decimal | CInvoice.CustomDecimal2 | Custom Decimal Field |
tdCustomDecimal3 | decimal | CInvoice.CustomDecimal3 | Custom Decimal Field |
tdCustomDecimal4 | decimal | CInvoice.CustomDecimal4 | Custom Decimal Field |
tiCustomInteger0 | integer | CInvoice.CustomInteger0 | Custom Integer Field |
tiCustomInteger1 | integer | CInvoice.CustomInteger1 | Custom Integer Field |
tiCustomInteger2 | integer | CInvoice.CustomInteger2 | Custom Integer Field |
tiCustomInteger3 | integer | CInvoice.CustomInteger3 | Custom Integer Field |
tiCustomInteger4 | integer | CInvoice.CustomInteger4 | Custom Integer Field |
tcCustomLong0 | character | CInvoice.CustomLong0 | Custom Long Field |
tcCustomLong1 | character | CInvoice.CustomLong1 | Custom Long Field |
tcCustomNote | character | CInvoice.CustomNote | Custom Note Field |
tcCustomShort0 | character | CInvoice.CustomShort0 | Custom Short Field |
tcCustomShort1 | character | CInvoice.CustomShort1 | Custom Short Field |
tcCustomShort2 | character | CInvoice.CustomShort2 | Custom Short Field |
tcCustomShort3 | character | CInvoice.CustomShort3 | Custom Short Field |
tcCustomShort4 | character | CInvoice.CustomShort4 | Custom Short Field |
tcCustomShort5 | character | CInvoice.CustomShort5 | Custom Short Field |
tcCustomShort6 | character | CInvoice.CustomShort6 | Custom Short Field |
tcCustomShort7 | character | CInvoice.CustomShort7 | Custom Short Field |
tcCustomShort8 | character | CInvoice.CustomShort8 | Custom Short Field |
tcCustomShort9 | character | CInvoice.CustomShort9 | Custom Short Field |
tiDivision_ID | integer | CInvoice.Division_ID | Sub-Account |
tiJournal_ID | integer | CInvoice.Journal_ID | Daybook Code |
ttLastModifiedDate | date | CInvoice.LastModifiedDate | Last Modified Date |
tiLastModifiedTime | integer | CInvoice.LastModifiedTime | Last Modified Time |
tcLastModifiedUser | character | CInvoice.LastModifiedUser | Last Modified User |
tiLinkedCInvoice_ID | integer | CInvoice.LinkedCInvoice_ID | Reference |
tiNormalPaymentCondition_ID | integer | CInvoice.NormalPaymentCondition_ID | Credit Terms Code |
tiPeriod_ID | integer | CInvoice.Period_ID | Link to Period |
tiProject_ID | integer | CInvoice.Project_ID | Project |
tiReason_ID | integer | CInvoice.Reason_ID | Invoice Status Code |
tiRole_ID | integer | CInvoice.Role_ID | Role Name |
tiShipToAddress_ID | integer | CInvoice.ShipToAddress_ID | City |
tiTransactionEndCountry_ID | integer | CInvoice.TransactionEndCountry_ID | Country Code |
tiTransactionStartCountry_ID | integer | CInvoice.TransactionStartCountry_ID | Country Code |
tiVatCurrency_ID | integer | CInvoice.VatCurrency_ID | Currency Code |
CInvoiceCustom | character | calculated | custom fields |
ti_sequence | integer | calculated | primary index |
tc_rowid | character | calculated | = rowid(CInvoice) |
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 = "CInvoiceByAllInfo". 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.cinvoicebyallinfo.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.