我正在使用QBFC13库来同步QuickBooks和我的.NET应用程序。
但我似乎无法了解如何从我的应用程序向quickbooks添加付款。
我注意到我有这种方法:
IPaymentMethodAdd paymentMehtodAddRq = requestMsgSet.AppendPaymentMethodAddRq()
但我不知道如何填写参数让它起作用。
有人可以通过以下简单付款方式帮助我:ClientId和支付金额吗?
注意:我正在使用C#。
答案 0 :(得分:1)
这是一个两步过程。
创建帐单;
IMsgSetRequest requestMsgSet = sessionManager.getMsgSetRequest();
requestMsgSet.Attributes.OnError = ENRqOnError.roeContinue;
IBillAdd addBill = requestMsgSet.AppendBillAddRq();
addBill.VendorRef.FullName.SetValue(vendorName);
addBill.TxnDate.SetValue(DateTime.Now);
addBill.DueDate.SetValue(dueDate);
addBill.APAccountRef.FullName.SetValue(accountPayable);
addBill.Memo.SetValue(accountPayableMemo);
IExpenseLineAdd expenceLineAdd = addBill.ExpenseLineAddList.Append();
expenceLineAdd.AccountRef.FullName.SetValue(accountExpenses);
expenceLineAdd.Amount.SetValue(value);
expenceLineAdd.Memo.SetValue(accountExpensesLineMemo);
IMsgSetResponse responseSet = sessionManager.doRequest(true, ref requestMsgSet)
付款:您可以使用支票或信用卡付款
信用卡,
IMsgSetRequest requestMsgSet = sessionManager.getMsgSetRequest();
requestMsgSet.Attributes.OnError = ENRqOnError.roeContinue;
IBillPaymentCreditCardAdd paymentAdd = requestMsgSet.AppendBillPaymentCreditCardAddRq();
paymentAdd.CreditCardAccountRef.FullName.SetValue("CreditCardAccount");
paymentAdd.PayeeEntityRef.FullName.SetValue("TestVendor");
paymentAdd.TxnDate.SetValue(DateTime.Now);
paymentAdd.Memo.SetValue("test payment credit card");
IAppliedToTxnAdd appliedToTxnAdd = paymentAdd.AppliedToTxnAddList.Append();
appliedToTxnAdd.TxnID.SetValue("7D-1509602561");
appliedToTxnAdd.PaymentAmount.SetValue((double)250.00);
IMsgSetResponse responseSet = sessionManager.doRequest(true, ref requestMsgSet)
答案 1 :(得分:0)
请参阅SDK附带的“屏幕参考指南”,其中包含可用的参数和字段。 http://developer-static.intuit.com/qbsdk-current/common/newosr/index.html