支付发票nsoftware quickbooks

时间:2013-06-26 17:42:17

标签: quickbooks intuit

我正在使用nSoftware与QuickBooks进行交互。我正在寻找nSoftware方法来执行对发票的付款。请告诉我如何实现这一目标。

开发环境: - ASP.Net 4.0,C#

1 个答案:

答案 0 :(得分:1)

ReceivePayment 组件可用于在QuickBooks中输入客户付款。然后,在添加付款时,指定 AppliedTo 属性会将付款定向到特定发票。请注意,在手动指示付款时,您需要将 AutoApply 属性设置为 aaCustom 。所以,像下面这样的东西应该适合你:

Receivepayment payment1 = new Receivepayment();
payment1.QBConnectionString = _qbConnectionString;
payment1.CustomerId = invoice1.CustomerId;
payment1.TransactionDate = "2013-06-26";
payment1.Amount = amount;
payment1.AutoApply = ReceivepaymentAutoApplies.aaCustom;
payment1.AppliedTo.Add(new AppliedTo() { RefId = invoice1.RefId, PaymentAmount = amount});
payment1.Add();

可以将多个 AppliedTo 对象添加到 AppliedTo 集合中,以将付款分散到多个发票中。