有没有办法使用 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>");
}
}