在 QuickBooks 中创建支票时如何添加 AccountID 或 ItemID [英] How to add AccountID or ItemID when creating Checks in QuickBooks

查看:48
本文介绍了在 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" };

这篇关于在 QuickBooks 中创建支票时如何添加 AccountID 或 ItemID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆