1
我是QuickBook(桌面)集成的全新手。我想使用Quickbook SDK在QuickBook中創建發票。我正在關注C# .NET Application with QuickBooks Desktop Edition以創建我的客戶和發票。如何使用C#和Quickbook SDK在QuickBook中添加發票?
我可以創建客戶但無法發票。
這裏是我的代碼:
ICustomerAdd customerAddRq = requestMsgSet.AppendCustomerAddRq();
customerAddRq.Name.SetValue(Customer.Name);
IMsgSetResponse responseMsgSet = sessionManager.DoRequests(requestMsgSet);
IResponse response = responseMsgSet.ResponseList.GetAt(0);
ICustomerRet customerRet = (ICustomerRet)response.Detail;
IInvoiceAdd invoiceAddRq = requestMsgSet.AppendInvoiceAddRq();
invoiceAddRq.CustomerRef.ListID.SetValue(customerRet.ListID.GetValue());
IMsgSetResponse invoiceResponseMsgSet = sessionManager.DoRequests(requestMsgSet);
IResponse invoiceResponse = invoiceResponseMsgSet.ResponseList.GetAt(0);
IInvoiceRet invoiceRet = (IInvoiceRet)invoiceResponse.Detail;
我得到invoiceRet
總是null
。
另一個問題是哪個屬性是用戶Invoice Number
在IInvoiceAdd
?