为 parentref 传递 IPPReferenceType,但子客户数据未在线添加到 Quickbook API 中

Passing IPPReferenceType for parentref but the still sub customer data is not adding up in Quickbook API online

我几乎遍历了所有资源来找到解决这个问题的方法。

我需要通过 php 在 quickbooks 中为客户添加子客户。

我已经在对象中标记为 true to job 并且还传递了 ParentRef 的 IPPReferenceType 对象,但数据没有反映出来。

这是我传递的对象:

IPPCustomer Object (
[Taxable] => 
[BillAddr] => 
[ShipAddr] => 
[OtherAddr] => 
[ContactName] => 
[AltContactName] => 
[Notes] => 
[Job] => 1
[BillWithParent] => 
[RootCustomerRef] => 
[ParentRef] => IPPReferenceType Object
    (
        [name] => 
        [type] => 
        [value] => 95
    )

[Level] => 
[CustomerTypeRef] => 
[SalesTermRef] => 
[SalesRepRef] => 
[TaxGroupCodeRef] => 
[TaxRateRef] => 
[PaymentMethodRef] => 
[CCDetail] => 
[PriceLevelRef] => 
[Balance] => 
[OpenBalanceDate] => 
[BalanceWithJobs] => 
[CreditLimit] => 
[AcctNum] => 
[CurrencyRef] => 
[OverDueBalance] => 
[TotalRevenue] => 
[TotalExpense] => 
[PreferredDeliveryMethod] => 
[ResaleNum] => 
[JobInfo] => 
[CustomerEx] => 
[IntuitId] => 
[Organization] => 
[Title] => 
[GivenName] => Pratibha
[MiddleName] => 
[FamilyName] => Mishra
[Suffix] => 
[FullyQualifiedName] => 
[CompanyName] => 
[DisplayName] => Pratibha Mishra
[PrintOnCheckName] => 
[UserId] => 
[Active] => 1
[PrimaryPhone] => IPPTelephoneNumber Object
    (
        [Id] => 
        [DeviceType] => 
        [CountryCode] => 
        [AreaCode] => 
        [ExchangeCode] => 
        [Extension] => 
        [FreeFormNumber] => (418) 124-6538
        [Default] => 
        [Tag] => 
    )

[AlternatePhone] => IPPTelephoneNumber Object
    (
        [Id] => 
        [DeviceType] => 
        [CountryCode] => 
        [AreaCode] => 
        [ExchangeCode] => 
        [Extension] => 
        [FreeFormNumber] => (418) 478-6538
        [Default] => 
        [Tag] => 
    )

[Mobile] => 
[Fax] => 
[PrimaryEmailAddr] => IPPEmailAddress Object
    (
        [Id] => 
        [Address] => ross@geller.lcl
        [Default] => 
        [Tag] => 
    )

[WebAddr] => 
[OtherContactInfo] => 
[DefaultTaxCodeRef] => 
[Id] => 
[SyncToken] => 
[MetaData] => 
[CustomField] => 
[AttachableRef] => 
[domain] => 
[status] => 
[sparse] => 
)

如您所见,我有一个值为 95 的客户,我将其传递给此对象的 ParentRef,这是一个子客户。

我正在使用 php 将数据集成到 quickbooks 中,我正在使用 V3QBO 包。

请让我知道您的建议和建议。 提前致谢!!

我建议您在 QBO 公司文件中创建一个 JOB/Sub 客户,然后通过代码读取。将其与您发送的内容进行比较,看看是否遗漏了什么。 设置 JOB(不是 jobinfo)和 ParentRef 应该是这样。

您可以通过将真值设置为字符串而不是布尔值来解决上述问题,如下所示:

[工作] => 'true';

BillWithParent 和 workarround 也会发生同样的事情。

引用link

https://intuitdeveloper.lc.intuit.com/questions/1039309-can-t-set-a-customer-as-job-or-sub-customer-using-php-and-sdk-v3