0

次の投稿を参照: http://ippdocs.intuit.com/0025_QuickBooksAPI/0050_Data_Services/v2/0400_QuickBooks_Online/Customer/Custom_Fields_for_Customer_and_Job

QBO で、親 -> 子の関係にあるアカウントを具体的に探しています。ただし、Bill With Parent が true の場合、"Resale Number" には値が入りません。これは、親の 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...
                }
            }
        }
4

1 に答える 1

0

Bill With Parent が true の場合は、顧客のためにジョブ (サブ カスタマー) を作成するようなものです。「再販番号」は、カスタム フィールドまたは税情報の下の UI で設定する必要があります。その後、それのみが表示され、null にはなりません。親の QBO ID には設定されません。あなたのコードは正しいです。確認しました。resaleNum を設定するだけで取得できます。お仕事情報ページ

ジョブ/サブ カスタマーのルート カスタマー QBOID を取得する

于 2013-07-31T09:26:38.667 に答える