我专门在我的 QBO 中寻找具有父-> 子关系的帐户。但是,如果 Bill With Parent 为 true,则“转售编号”没有任何价值,我认为这将是父母的 QBO Id?
任何有关如何提取此信息的帮助都会有所帮助。
在 C# 中,我正在执行以下操作并循环可用的帐户:
var qboCustomer = new Intuit.Ipp.Data.Qbo.Customer();
var qboCustomers = commonService.FindAll(qboCustomer, page, custKnt).ToList();
custKnt = qboCustomers.Count;
foreach (var c in qboCustomers)
{
Intuit.Ipp.Data.Qbo.BooleanTypeCustomField parentBilling = (Intuit.Ipp.Data.Qbo.BooleanTypeCustomField)c.CustomField.Where(a => a.DefinitionId == "Bill With Parent").FirstOrDefault();
if (parentBilling != null)
{
if (parentBilling.Value == true)
{
Intuit.Ipp.Data.Qbo.StringTypeCustomField resaleNum = (Intuit.Ipp.Data.Qbo.StringTypeCustomField)c.CustomField.Where(a => a.DefinitionId == "Resale Number").FirstOrDefault();
if (resaleNum != null)
{
//do some stuff, however, resaleNum is ALWAYS null...
}
}
}