[英]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
另外,卖方信用额对我来说是不正确的
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.