duanpai1033 2015-07-29 13:05
浏览 32
已采纳

为parentref传递IPPReferenceType,但仍然没有在线客户数据在Quickbook API中相加

I almost went through all the sources to find the fix for this.

I need to add a sub customer to a customer in quickbooks thru php.

I have already marked true to job in the object and also passing the IPPReferenceType object for ParentRef yet the data is not reflecting.

This is the object which I am passing :

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] => 
)

As you can see I have a customer with the value 95 and I am passing the same to ParentRef for this object which is a sub customer.

I am using php to integrate the data into quickbooks and I am using V3QBO package.

Please let me know you suggestions and advice. Thanks in advance !!

  • 写回答

2条回答 默认 最新

  • dsv73806 2015-09-08 12:18
    关注

    You can fix the above issue by setting the true value as string instead of a boolean, like this:

    [Job] => 'true';

    same thing will happen with BillWithParent and the workarround as well.

    Reference link

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 (标签-STM32|关键词-智能小车)
  • ¥20 关于#stm32#的问题,请各位专家解答!
  • ¥15 (标签-python)
  • ¥15 第一个已完成,求第二个做法
  • ¥20 搭建awx,试了很多版本都有错
  • ¥15 java corba的客户端该如何指定使用本地某个固定IP去连接服务端?
  • ¥15 activiti工作流问题,求解答
  • ¥15 有人写过RPA后台管理系统么?
  • ¥15 Bioage计算生物学年龄
  • ¥20 如何将FPGA Alveo U50恢复原来出厂设置哇?