Question

I am using the QBSDK QBFC12Lib in C#.Net with Reckon Accounts 2013 (Quickbooks Australia/NZ version). It is a test version but has been activated.

I have the basics working. I can add a customer, job, estimate and invoice and run queries against them.

But I can't link an invoice to an estimate (to keep track of progress invoicing). If I try to add the estimate TxnID as a LinkToTxnID, when I submit the request I get the error message 3210 - Object "25-1376628895" specified in the request cannot be found.

I have verified that EstimateID is providing the correct TxnID for the estimate (25-1376628895). It was selected by querying the estimate anyway and if I add an invoice to the estimate manually using Quickbooks itself and then query that invoice using the SDK it gives me the same TxnID under linked transactions.

These are the relevant lines of code:

IInvoiceAdd invoiceAdd = requestMsgSet.AppendInvoiceAddRq();

invoiceAdd.LinkToTxnIDList.Add(EstimateID);

Is it possible to link an invoice to an estimate using the SDK? And if so, am I doing something wrong?

Was it helpful?

Solution

It doesn't appear that this is supported in the SDK. The programmer's guide only gives information on how to link an invoice to a sales order. Since the LinkToTxnIDList does not give an option for what type of transaction type it is, I would guess that it is only looking for SalesOrders when supplying the ID. I also tested linking by specifying the individual line item ID and still get the same error.

Perhaps as a workaround, you could create a SalesOrder from the Estimate (assuming that you can link them), and then create an invoice from the SalesOrder.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top