在 QuickBooks 中创建支票时如何添加 AccountID 或 ItemID

问题描述:

当我通过 Intuit .Net SDK 编写检查时,我收到以下错误消息

When I write checks through the Intuit .Net SDK, I'm getting the following error saying

验证明细行 1、帐户 ID 或项目 ID 字段时出错:请指定项目 ID 或帐户 ID."

"Error validating Detail Line 1, Account ID or Item ID Field:Please specify an Item ID or an Account ID."

API 文档还说明行 (CheckLine) 应具有帐户 ID项目 ID.但是 CheckLine 对象中没有 Account IDItem Id 的任何属性.您能否告诉我如何为 CheckLine 对象分配帐户 ID项目 ID.

API Documentation also saying that Line (CheckLine) should have Account ID or Item ID. But there aren't any Property for Account ID or Item Id in CheckLine Object. Could you please tell me how to assign account Id or Item ID for the CheckLine object.

示例代码:

    Dim line = New Qbo.CheckLine(1) {}
                    line(0) = New Qbo.CheckLine() With { _
                        .Amount = 20,
                        .BillableStatus = Qbo.BillableStatusEnum.NotBillable,
                        .AmountSpecified = True
                    }  

为 BillpaymentHeader 添加 c# 的伪代码.

Adding pseudo code for c# for BillpaymentHeader.

同样,您可以将其用于 CheckLine:

Similarly you can use it for CheckLine:

   billheader.ItemsElementName = new ItemsChoiceType[1];
   billheader.ItemsElementName[0] = ItemsChoiceType.BankAccountId;
   billheader.Items = new object[1];
   billheader.Items[0] = new Intuit.Ipp.Data.Qbo.IdType() { idDomain = Intuit.Ipp.Data.Qbo.idDomainEnum.QBO, Value = "1" };