【问题标题】:Bill Payment Check - Object specified in the request cannot be found账单支付支票 - 找不到请求中指定的对象
【发布时间】:2015-03-05 21:41:08
【问题描述】:

我正在使用 C# 和 QBFC13 连接到 QB Enterprise 13 的桌面版。我正在创建账单,然后创建账单支付支票来支付这些账单。我不断收到错误消息“无法找到请求中指定的对象 48E-1425590500。”该数字是支票支付的账单的 TxnID。我 100% 确定我使用了正确的 TxnID,因为我是直接从 Bill 获得的。相关代码如下。任何帮助将不胜感激。

billPaymentCheck.PayeeEntityRef.FullName.SetValue(payee);
billPaymentCheck.BankAccountRef.FullName.SetValue(reader["BankAccount"].ToString());
billPaymentCheck.APAccountRef.FullName.SetValue(reader["APAccount"].ToString());
billPaymentCheck.Memo.SetValue(reader["Memo"].ToString());
billPaymentCheck.ORCheckPrint.IsToBePrinted.SetValue(false);

IAppliedToTxnAdd txn = billPaymentCheck.AppliedToTxnAddList.Append();
txn.TxnID.SetValue(bill.TxnID.GetValue());
txn.PaymentAmount.SetValue((double)reader["Amount"]);

【问题讨论】:

    标签: quickbooks qbfc


    【解决方案1】:

    首先检查账单的应付账款账户是否与账单支付相同。您可以更改您的代码以使用 Bill 的 AP 帐户而不是您的阅读器,看看这是否有效。

    billPaymentCheck.APAccountRef.FullName.SetValue(bill.APAccountRef.FullName.GetValue());
    

    要检查的另一件事是,收款人与账单和账单支付完全相同。

    billPaymentCheck.PayeeEntityRef.FullName.SetValue(bill.VendorRef.FullName.GetValue());
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-29
      • 2021-07-03
      • 2012-03-21
      • 2018-08-06
      • 1970-01-01
      相关资源
      最近更新 更多