I want to change the ‘Deposit To’ account to Undeposited Funds on about 1000 sales receipts that were originally saved to a bank account. The date of sales receipts to be changed is passed in aDate.
I’m getting the correct number of sales receipts in the oQBSalesReceipts object for the date passed, and the function completes without error, however the sales receipts’ ‘Deposit To’ account does not change. Here’s my code:
Dim oQBSalesReceipts As CoreObjX70.SalesReceipts
Dim oQBSalesReceipt As CoreObjX70.SalesReceipt
Dim ldDate As Date = Format(aDate, "MM-dd-yyyy")
oQBSalesReceipts = New CoreObjX70.SalesReceipts
oQBConn.DebugLogPath = "C:\Quickbooks Company Files\UndepositedFunds.log"
For Each oQBSalesReceipt In oQBSalesReceipts
oQBSalesReceipt.DepositToAccount = "Undeposited Funds"
oQBConn.DebugLogPath = gsActionLogFilesLocation & ""
CoreObjX70’s log file contains only following:
<CoreObjXLog CompanyPath="C:\Quickbooks Company Files\My Company.QBW" qbXMLVersion="11.0" ProductName="QuickBooks Pro 2012" MajorVersion="22" MinorVersion = "0" CoreObjXVersion="7.0.32">
I submitted payment for support about 1 week ago.
I forgot to ask a related question: When sales receipts that were deposited directly into a bank account have been reconciled, they appear in the check register with a check mark. What in the sales receipt object indicates that it has been reconciled?
This is a bug in coreObjX version 7. When you modify the DepositToAccount, coreObjX is not marking the object as dirty. You can get around this by setting another field such as Memo to force the update to QB.
As to your second question, the QB API does not enable us to mark a SalesReceipt as reconciled.
You must be logged in to reply to this topic.