I am retrieving a credit memo and a check. (Quickbooks desktop 2016 pro, coreobjx70). I want to apply the check to the credit memo. I do not get an error. The return value from the commit is 0. But when I look in Quickbooks, the check is not applied to the credit memo.
oCM = DBInterface.QBConn.Company.CreditMemos.GetByTxnID(creditmemoid)
oChk = DBInterface.QBConn.Company.Checks.GetByTxnID(checkid)
For Each ex As txnExpenseLine In oChk.ExpenseLines
If ex.Amount = oCM.CreditRemaining Then
retval = DBInterface.QBConn.Company.CreditMemos.Commit(oCM)
Can you help me with what I am doing wrong?
please attached your log files.
The log says “A query request did not find a matching object in QuickBooks”, however I did retrieve both the credit memo and check before trying to apply so I’m not sure what that means. And no error was brought up when the code ran. The log is attached.
Trying to attach the log again.
Were you able to determine anything from the logs?
Tom will take a look and he will go back to you as soon as he can.
You must be logged in to reply to this topic.