我正在使用QuickBooks-V3-PHP-SDK将快速手册集成到我的项目中。当我尝试使用以下代码将客户添加到 Quickbooks 时。$dataService->Add($customerObj);我在sendRequestParseResponseBodyAndHandleHttpError中收到以下异常,这是 sdk 的内部函数。属性 IsProject 不存在。IPPCustomer 类其中 $customerObj 等于 QuickBooksOnline\API\DataIPPCustomer (object) [Object ID #1110][75 properties] Taxable: (null) NULL BillAddr: QuickBooksOnline\API\DataIPPPhysicalAddress (object) [Object ID #1115][16 properties] Id: (null) NULL Line1: (string) "a" Line2: (string) "" Line3: (null) NULL Line4: (null) NULL Line5: (null) NULL City: (string) "a" Country: (string) "United States" CountryCode: (string) "US" CountrySubDivisionCode: (string) "IL" PostalCode: (null) NULL PostalCodeSuffix: (null) NULL Lat: (null) NULL Long: (null) NULL Tag: (null) NULL Note: (null) NULL ShipAddr: QuickBooksOnline\API\DataIPPPhysicalAddress (object) [Object ID #1115][16 properties] Id: (null) NULL Line1: (string) "a" Line2: (string) "" Line3: (null) NULL Line4: (null) NULL Line5: (null) NULL City: (string) "a" Country: (string) "United States" CountryCode: (string) "US" CountrySubDivisionCode: (string) "IL" PostalCode: (null) NULL PostalCodeSuffix: (null) NULL Lat: (null) NULL Long: (null) NULL Tag: (null) NULL Note: (null) NULL OtherAddr: (null) NULL ContactName: (null) NULL AltContactName: (null) NULL Notes: (null) NULL Job: (null) NULL BillWithParent: (null) NULL RootCustomerRef: (null) NULL ParentRef: (null) NULL Level: (null) NULL CustomerTypeRef: (null) NULL SalesTermRef: (null) NULL SalesRepRef: (null) NULL TaxGroupCodeRef: (null) NULL TaxRateRef: (null) NULL PaymentMethodRef: (null) NULL
1 回答
MYYA
TA贡献1868条经验 获得超4个赞
实际上,我添加了一个名为QuickBooks-V3-PHP-SDK的新库,但在此之前,还有另一个属于 Quickbooks 的库,它们都有相同的 IPPCoustomer 类,所以每当我调用任何数据服务函数时,它都会导入旧的库类。我删除了旧图书馆。现在工作正常。
- 1 回答
- 0 关注
- 80 浏览
添加回答
举报
0/150
提交
取消