VendorCreditExpenseItems
Create, update, delete, and query QuickBooks Vendor Credit Expense Line Items.
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 in the format VendorCreditId|ExpenseLineId. | |
VendorCreditId | String | False | 255 |
The Id of the VendorCredit transaction. | |
VendorName | String | False | 1000 |
Vendor for this transaction. Either VendorName or VendorId is required to have a value when inserting. | |
VendorId | String | False |
Vendors.ID | 255 |
Vendor for this transaction. Either VendorName or VendorId is required to have a value when inserting. |
Date | Date | False |
Date of the transaction. If it is set in the WHERE clause of a SELECT query, the pseudo columns StartDate and EndDate are overwritten with the value. | ||
TxnNumber | Integer | True |
The transaction number. An identifying number for the transaction, different from the QuickBooks-generated Id. | ||
ReferenceNumber | String | False | 21 |
Reference number for the transaction. | |
AccountsPayable | String | False | 1000 |
Reference to the accounts-payable account. | |
AccountsPayableId | String | False |
Accounts.ID | 255 |
Reference to the accounts-payable account. |
Amount | Decimal | True |
Amount of the transaction. | ||
Memo | String | False | 5000 |
Memo for the transaction. | |
IsTaxIncluded | Boolean | False |
Determines if tax is included in the transaction amount. | ||
TaxCode | String | False | 3 |
The type of sales tax that will be charged for this vendor credit. | |
TaxCodeId | String | False | 255 |
The type of sales tax that will be charged for this vendor credit. | |
CustomFields | String | False |
Custom fields returned from QuickBooks and formatted into XML. | ||
ExchangeRate | String | False |
Indicates the exchange rate for the transaction. | ||
ExpenseLineId | String | True | 255 |
The line item identifier. | |
ExpenseLineNumber | String | True | 255 |
The expense line number. | |
ExpenseAccount | String | False | 1000 |
The account name for this expense line. ExpenseAccount or ExpenseAccountId must have a value when inserting. | |
ExpenseAccountId | String | False |
Accounts.ID | 255 |
The account Id for this expense line. ExpenseAccount or ExpenseAccountId must have a value when inserting. |
ExpenseAmount | Decimal | False |
The total amount of this expense line. | ||
ExpenseBillableStatus | String | False | 13 |
The billing status of this expense line. 使用できる値は次のとおりです。EMPTY, BILLABLE, NOTBILLABLE, HASBEENBILLED デフォルト値はEMPTYです。 | |
ExpenseCustomer | String | False | 1000 |
The customer associated with this expense line. | |
ExpenseCustomerId | String | False |
Customers.ID | 255 |
The customer associated with this expense line. |
ExpenseClass | String | False | 1000 |
The class name of this expense. | |
ExpenseClassId | String | False |
Class.ID | 255 |
The class Id of this expense. |
ExpenseTaxCode | String | False | 3 |
Sales tax information for this item (taxable or non-taxable). | |
ExpenseTaxCodeId | String | False | 255 |
Sales tax information for this item (taxable or non-taxable). | |
ExpenseMemo | String | False | 5000 |
A memo for this expense line. | |
TimeModified | Datetime | True |
When the inventory assembly was last modified. | ||
TimeCreated | Datetime | True |
When the inventory assembly was created. |