我几乎经历了所有的消息来找到解决方案。
我需要通过php在quickbooks中为客户添加一个子客户。
我已经在对象中标记了true,并且还为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软件包。
请告诉我你的建议和意见。 在此先感谢!!
答案 0 :(得分:1)
您可以通过将true值设置为字符串而不是布尔值来解决上述问题,如下所示:
[工作] => '真';
同样的事情会发生在BillWithParent和workarround上。
参考链接
答案 1 :(得分:0)
我建议你在QBO公司文件中创建一个JOB / Sub客户,然后通过代码阅读。将它与您发送的内容进行比较,看看您是否遗漏了某些内容。 设置JOB(不是jobinfo)和ParentRef应该是它。