VendorCreditExpenseItems
Handles QuickBooks Vendor Credit Expense Items, supporting creation, updates, deletion, and queries for tracking expenses linked to vendor credits.
Table Specific Information
VendorCredits may be inserted, updated, or queried via the VendorCredits, VendorCreditExpenseItems, or VendorCreditLineItems tables. VendorCredits may be deleted by using the VendorCredits table.
This table has a Custom Fields column. See the Custom Fields page for more information.
Select
By default, SupportEnhancedSQL is set to true, and the following will be honored if present. Other filters will be executed client side. If SupportEnhancedSQL is set to false, only the following filters will be honored.
QuickBooks allows only a small subset of columns to be used in the WHERE clause of a SELECT query. These columns can only be used with the equals or = comparison. The available columns for the VendorCredits table are Id, Date, TimeModified, VendorName, VendorId, AccountsPayableId, and AccountsPayableName. TimeModified and Date may be used with the >, >=, <, <=, or = conditions and may be used twice to specify a range. ReferenceNumber may be used with the = or LIKE conditions to establish a starts-with, ends-with, or contains syntax. For example:
SELECT * FROM VendorCreditExpenseItems WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'
Insert
To add a VendorCredit, specify the Vendor and at least one Expense or Line Item. All Expense Line Item columns can be used for inserting multiple Expense Line Items for a new VendorCredit transaction. For example, the following will insert a new VendorCredit with two Expense Line Items:
INSERT INTO VendorCreditExpenseItems#TEMP (VendorName, ExpenseAccount, ExpenseAmount) VALUES ('A Cheung Limited', 'Utilities:Telephone', 52.25) INSERT INTO VendorCreditExpenseItems#TEMP (VendorName, ExpenseAccount, ExpenseAmount) VALUES ('A Cheung Limited', 'Professional Fees:Accounting', 235.87) INSERT INTO VendorCreditExpenseItems (VendorName, ExpenseAccount, ExpenseAmount) SELECT VendorName, ExpenseAccount, ExpenseAmount FROM VendorCreditExpenseItems#TEMP
Columns
Name | Type | ReadOnly | References | ColumnSize | Description |
ID [KEY] | String | True | 255 |
The unique identifier of the expense line in the format VendorCreditId|ExpenseLineId, combining the vendor credit transaction ID and the expense line item ID. | |
VendorCreditId | String | False | 255 |
The unique identifier for the VendorCredit transaction associated with this expense line. | |
VendorName | String | False | 1000 |
The name of the vendor for this transaction. Either VendorName or VendorId must be provided when inserting a new record. | |
VendorId | String | False |
Vendors.ID | 255 |
The unique identifier of the vendor for this transaction. Either VendorName or VendorId must be provided when inserting a new record. |
Date | Date | False |
The date of the transaction. If specified in a SELECT query, it overrides the pseudo columns StartDate and EndDate. Dates should be formatted as YYYY-MM-DD. | ||
TxnNumber | Integer | True |
The transaction number, which uniquely identifies the transaction but differs from the Quickbooks generated ID. | ||
ReferenceNumber | String | False | 21 |
The reference number for the transaction, provided by the user or external system. | |
AccountsPayable | String | False | 1000 |
The name of the accounts-payable account associated with this transaction. | |
AccountsPayableId | String | False |
Accounts.ID | 255 |
The unique identifier of the accounts-payable account associated with this transaction. |
Amount | Decimal | True |
The total amount of the vendor credit transaction, including or excluding taxes based on the IsTaxIncluded field. | ||
Memo | String | False | 5000 |
A memo or note associated with the vendor credit transaction. | |
IsTaxIncluded | Boolean | False |
Indicates whether tax is included in the transaction amount. Valid values are true or false. | ||
TaxCode | String | False | 3 |
The sales tax code applied to this vendor credit. Represents the type of tax charged for the transaction. | |
TaxCodeId | String | False | 255 |
The unique identifier of the sales tax code applied to this vendor credit. | |
CustomFields | String | False |
Custom fields associated with this transaction, returned from QuickBooks and formatted as XML. | ||
ExchangeRate | String | False |
The exchange rate used for this transaction if it involves a foreign currency. | ||
ExpenseLineId | String | True | 255 |
The unique identifier for this specific expense line within the VendorCredit transaction. | |
ExpenseLineNumber | String | True | 255 |
The line number for this expense entry in the VendorCredit transaction. | |
ExpenseAccount | String | False | 1000 |
The name of the expense account associated with this line. Either ExpenseAccount or ExpenseAccountId must be specified when inserting a new record. | |
ExpenseAccountId | String | False |
Accounts.ID | 255 |
The unique identifier of the expense account associated with this line. Either ExpenseAccount or ExpenseAccountId must be specified when inserting a new record. |
ExpenseAmount | Decimal | False |
The total amount for this specific expense line item. | ||
ExpenseBillableStatus | String | False | 13 |
Indicates whether this expense line is billable to a customer. Valid values include Billable, NotBillable, and HasBeenBilled. 使用できる値は次のとおりです。Empty, Billable, NotBillable, HasBeenBilled デフォルト値はEmptyです。 | |
ExpenseCustomer | String | False | 1000 |
The name of the customer associated with this expense line, if applicable. | |
ExpenseCustomerId | String | False |
Customers.ID | 255 |
The unique identifier of the customer associated with this expense line, if applicable. |
ExpenseClass | String | False | 1000 |
The name of the class associated with this expense line, used for categorization or tracking purposes. | |
ExpenseClassId | String | False |
Class.ID | 255 |
The unique identifier of the class associated with this expense line, used for categorization or tracking purposes. |
ExpenseTaxCode | String | False | 3 |
The sales tax code applied to this expense line, indicating whether it is taxable or non-taxable. | |
ExpenseTaxCodeId | String | False | 255 |
The unique identifier of the sales tax code applied to this expense line, indicating whether it is taxable or non-taxable. | |
ExpenseMemo | String | False | 5000 |
A memo or note associated with this specific expense line. | |
TimeModified | Datetime | True |
The date and time when this expense line was last modified, formatted as YYYY-MM-DD HH:MM:SS. | ||
TimeCreated | Datetime | True |
The date and time when this expense line was created, formatted as YYYY-MM-DD HH:MM:SS. |