|
[QODBC Desktop] Bill DueDate Not Respected When Using TermsRefListID via QODBC/MS SQL
Posted by William - QODBC Support on 23 September 2026 02:30 PM
|
|||||||||
[QODBC Desktop] Bill DueDate Not Respected When Using TermsRefListID via QODBC/MS SQLProblem Description:When inserting a Bill record via QODBC (using OPENQUERY from MS SQL Server or ODBC), the DueDate field is ignored and QuickBooks automatically sets the due date equal to the invoice/TxnDate. Affected products: QODBC Desktop, QRemote Server, MS SQL Server, QuickBooks Desktop Symptoms:
Cause:
Environment:
Resolution:
Example — Without TermsRefListID (fixed):-- Bill header INSERT without TermsRefListID INSERT OPENQUERY ([DSN_NAME], 'SELECT "APAccountRefListID", "Memo", "DueDate", "TxnDate", "RefNumber", "VendorRefListID" FROM "Bill" where "TxnID" = ''0'' ') VALUES ('60001-XXXX', 'Memo text', {d'2025-02-18'}, {d'2025-02-17'}, 'REF001', '80000489-XXXX') -- Expense line items can still reference the vendor separately INSERT OPENQUERY ([DSN_NAME], 'SELECT "ExpenseLineMemo", "ExpenseLineAccountRefListID", "ExpenseLineAmount", "FQSaveToCache" FROM "BillExpenseLine" where "VendorRefListID" = ''80000489-XXXX'' ') VALUES ('Memo', 'AccountID', 150.00, 1) -- Note: Bill header line no longer includes TermsRefListID or DueDate will be honored from the explicit value above. Example Scenarios:Scenario 1 — Vendor with Net-30 terms, but customer wants custom due date: A company normally pays a vendor on Net-30 terms. However, for a particular batch of bills, they want to set custom due dates. The original query included TermsRefListID (Net-30) plus explicit DueDate. Removing TermsRefListID allows the explicit DueDate to be applied correctly. Scenario 2 — Vendor with "Due on receipt" terms: If a vendor's default term in QuickBooks is "Due on receipt," including TermsRefListID will always force the due date to match TxnDate. Removing it lets QODBC use the explicit DueDate value instead. Additional Notes:
Related Articles:QODBC: Inserting Bills via MS SQL Server and QRemote QODBC: Understanding Payment Terms in QuickBooks Desktop Keywords:Bill DueDate TermsRefListID Due on receipt MS SQL OPENQUERY QRemote Bill INSERT Payment Terms Invoice Date Override QuickBooks Bill ODBC SQL Server
| |||||||||
|
|
|||||||||


