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 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?