有沒有使用IPP(在C#)來區分賬單和供應商信用的方法?現在,當我遍歷賬單支付(在這種情況下的支票)中的所有行時,顯示支付的賬單供應商信用顯示,但它們與賬單沒有任何區別(數量是正數,沒有賬單類型等)。供應商比爾與供應商信用/ Ipp C#
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>");
}
}