简体   繁体   English

供应商账单vs供应商信用/ Ipp C#

[英]Vendor Bill vs Vendor Credit / Ipp C#

Is there a way using the IPP (in c#) to differentiate between a Bill and a Vendor Credit? 有没有一种方法可以使用IPP(在C#中)来区分帐单和供应商信用? right now when I iterate through all the lines on a Bill Payment (A Check in this case) to show what bills are being paid Vendor Credits show up but they do not look any different from a bill (Amounts are positive, there is no Bill type etc). 现在,当我遍历帐单付款(在本例中为支票)上的所有行以显示正在付款的帐单时,出现了供应商信用,但看起来与帐单没有什么不同(金额为正,没有帐单类型等)。

Intuit.Ipp.Data.Qbo.BillPaymentQuery qbBillPaymentQuery = new BillPaymentQuery();
        qbBillPaymentQuery.DocNumber = "143766";
        List<Intuit.Ipp.Data.Qbo.BillPayment> qboBP = qbBillPaymentQuery.ExecuteQuery<Intuit.Ipp.Data.Qbo.BillPayment>(context).ToList<Intuit.Ipp.Data.Qbo.BillPayment>();

        foreach (BillPayment b in qboBP)
        {
            Response.Write("Bill Payment Amount: " + b.Header.TotalAmt + "<BR>");

            foreach (BillPaymentLine x in b.Line)
            {
                Intuit.Ipp.Data.Qbo.BillQuery qbBillQuery = new BillQuery();
                qbBillQuery.ResultsPerPage = 1;
                //qbBillQuery.PageNumber = 1;

                qbBillQuery.TxnId = x.TxnId;
                //qbBillQuery.SpecifyOperatorOption(FilterProperty.DocNumber, FilterOperatorType.EQUALS);


                 DataServices dataServices = new DataServices(context);
                 Bill b2 = new Bill();
                 b2.Id = x.TxnId;
                 Bill b3 = dataServices.FindById(b2);

                 Response.Write(b3.Header.DocNumber + " - " + x.Amount + "<BR>");




            }
        }

In QBO, VendorCredit is not fully supported for production use. 在QBO中,不完全支持VendorCredit用于生产。 It is available as part of a beta release. 它作为Beta版的一部分提供。 Ref Doc - https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0400_quickbooks_online/0500_supported_entities_and_operations 参考文档-https: //developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0400_quickbooks_online/0500_supported_entities_and_operations

You are right. 你是对的。 I was able to replicate your issue. 我能够复制您的问题。 The vendor credit objects are also retrieved as bill objects, which should not be happening. 卖方信用对象也作为票据对象被检索,这应该不会发生。

See sample xml, the first one is a bill, last 3 lines are credit memo. 参见示例xml,第一个是帐单,最后三行是贷项凭证。 There is really no differentiation between them. 它们之间确实没有区别。 Also, the vendor credit amounts are incorrect for me 另外,卖方信用额对我来说是不正确的 付款响应XML

公司档案帐单支付

However, this is currently in beta stage for Vendor credits and cannot report this issue until they are production. 但是,供应商信用目前处于测试阶段,在正式生产之前无法报告此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 quickbooks供应商信用错误消息 - quickbooks vendor credit error message 使用.NET c#IPP数据服务SDK创建新的QuickBooks Bill时所需的属性 - Required Properties when using .NET c# IPP Data Service SDK to create new QuickBooks Bill 为什么我的Intuit QBO SDK采购订单在“供应商交易”列表中没有“复制到帐单操作”选项? - Why does my Intuit QBO SDK purchase order not have Copy To Bill Action option in Vendor Transaction list? Intuit Quickbooks API IPPDotNetDevKit库:在一次调用中获取具有供应商名称的Bill实体 - Intuit Quickbooks API IPPDotNetDevKit library: Get a Bill entity with vendor name in a single call 使用.NET IPP数据服务SDK创建帐单 - Creating a Bill with .NET IPP Data Services SDK QuickBooks Online(QBO)通过C#中的v2 IPP .NET SDK写入发票上的自定义字段 - QuickBooks Online (QBO) write to Custom Fields on Invoice via v2 IPP .NET SDK in C# IPP .NET c#SDK允许查询过滤器,但这不会减少有效负载吗? - IPP .NET c# SDK allows query filters, but this does not reduce payload? 供应商和员工业务规则问题 - Issue with Vendor and Employee Business Rules 带Web连接器的QuickBooks查询/添加供应商 - QuickBooks Query/Add vendor with Web Connector 通过IPP API将付款记录发布到QBO时出错-BILL_PAYMENT_REQUEST_BAD - error while posting payment record to QBO via the IPP API - BILL_PAYMENT_REQUEST_BAD
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM