BillLineItems
Create, update, delete, and query Reckon Bill Line Items.
Table Specific Information
Bills may be inserted, queried, or updated via the Bills, BillExpenseItems, or BillLineItems tables. Bills may be deleted by using the Bills table.
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.
Reckon Accounts Hosted allows only a small subset of columns to be used in the WHERE clause of a SELECT query. These columns can typically be used with only the equals or = comparison. The available columns for Bills are Id, Date, ReferenceNumber, VendorName, VendorId, AccountsPayable, AccountsPayableId, IsPaid, and TimeModified. 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 Bills WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'
Insert
You can also use Bills and BillExpenseItems to insert a Bill.
To add a Bill, specify a Vendor, Date, and at least one Expense or Line Item. All Line Item columns can be used for inserting multiple Line Items for a new Bill transaction. For example, the following will insert a new Bill with two Line Items:
INSERT INTO BillLineItems#TEMP (VendorName, Date, ItemName, ItemQuantity) VALUES ('Cal Telephone', '1/1/2011', 'Repairs', 1) INSERT INTO BillLineItems#TEMP (VendorName, Date, ItemName, ItemQuantity) VALUES ('Cal Telephone', '1/1/2011', 'Removal', 2) INSERT INTO BillLineItems (VendorName, Date, ItemName, ItemQuantity) SELECT VendorName, Date, ItemName, ItemQuantity FROM BillLineItems#TEMP
Columns
Name | Type | ReadOnly | References | Description |
ID [KEY] | String | True |
The unique identifier in the format BillId|ItemLineId. | |
BillId | String | False |
Bills.ID |
The bill identifier. |
VendorName | String | False |
Vendors.Name |
Vendor for this transaction. Either VenderName or VendorId must have a value when inserting. |
VendorId | String | False |
Vendors.ID |
Vendor Id for this transaction. Either VenderName or VendorId must have a value when inserting. |
ReferenceNumber | String | False |
Reference number for the transaction. | |
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 Reckon-generated Id. | |
DueDate | Date | False |
Date when payment is due. | |
Terms | String | False |
Reference to terms of payment. | |
TermsId | String | False |
Reference Id for the terms of payment. | |
AccountsPayable | String | False |
Accounts.FullName |
Reference to the accounts-payable account. |
AccountsPayableId | String | False |
Accounts.ID |
Reference Id for the accounts-payable account. |
Amount | Double | True |
Amount of the transaction. This is calculated by Reckon based on the line items or expense line items. | |
Memo | String | False |
Memo for the transaction. | |
IsPaid | Boolean | True |
Indicates whether this bill has been paid. | |
IsTaxIncluded | Boolean | False |
Determines if tax is included in the transaction amount. | |
ItemLineId | String | True |
The line item identifier. | |
ItemName | String | False |
Items.FullName |
The item name. |
ItemId | String | False |
Items.ID |
The item name. |
ItemGroup | String | False |
Items.FullName |
Item group name. Reference to a group of line items this item is part of. |
ItemGroupId | String | False |
Items.ID |
Item group name. Reference to a group of line items this item is part of. |
ItemDescription | String | False |
A description of the item. | |
ItemQuantity | Double | False |
The quantity of the item or item group specified in this line. | |
ItemCost | Double | False |
The unit cost for the item. | |
ItemAmount | Double | False |
Total amount for the item. | |
ItemBillableStatus | String | False |
Billing status of the item. The allowed values are EMPTY, BILLABLE, NOTBILLABLE, HASBEENBILLED. | |
ItemCustomer | String | False |
Customers.FullName |
The name of the customer who ordered the item. |
ItemCustomerId | String | False |
Customers.ID |
The Id of the customer who ordered the item. |
ItemClass | String | False |
Class.FullName |
The name for the class of the item. |
ItemClassId | String | False |
Class.ID |
The Id for the class of the item. |
ItemTaxCode | String | False |
SalesTaxCodes.Name |
Sales tax information for this item (taxable or non-taxable). |
ItemTaxCodeId | String | False |
Sales tax information for this item (taxable or non-taxable). | |
TimeModified | Datetime | True |
When the Bill was last modified. | |
TimeCreated | Datetime | True |
When the Bill was created. |
Pseudo-Columns
Pseudo Column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description |
StartTxnDate | String |
This pseudo column is deprecated and should no longer be used. Earliest transaction date to search for. |
EndTxnDate | String |
This pseudo column is deprecated and should no longer be used. Latest transaction date to search for. |
StartModifiedDate | String |
This pseudo column is deprecated and should no longer be used. Earliest modified date to search for. |
EndModifiedDate | String |
This pseudo column is deprecated and should no longer be used. Latest modified date to search for. |
PaidStatus | String |
The paid status of the vendor credit. The allowed values are ALL, PAID, UNPAID, NA. The default value is ALL. |
LinkToTxnId | String |
A transaction to link the bill to. This transaction must be a purchase order. You will get a run-time error if the transaction specified is already closed or fully received. This is only available on insert and requires a minimum QBXML Version 4.0. |
ItemOverrideAccount | String |
The Account Name used to override the default Account for the Item. This is only available during inserts and updates. |
ItemOverrideAccountId | String |
The Account Id used to override the default Account for the Item. This is only available during inserts and updates. |