我正在使用QuickBooks-V3-PHP-SDK將快速手冊集成到我的項(xiàng)目中。當(dāng)我嘗試使用以下代碼將客戶添加到 Quickbooks 時(shí)。$dataService->Add($customerObj);我在sendRequestParseResponseBodyAndHandleHttpError中收到以下異常,這是 sdk 的內(nèi)部函數(shù)。屬性 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貢獻(xiàn)1868條經(jīng)驗(yàn) 獲得超4個(gè)贊
實(shí)際上,我添加了一個(gè)名為QuickBooks-V3-PHP-SDK的新庫,但在此之前,還有另一個(gè)屬于 Quickbooks 的庫,它們都有相同的 IPPCoustomer 類,所以每當(dāng)我調(diào)用任何數(shù)據(jù)服務(wù)函數(shù)時(shí),它都會導(dǎo)入舊的庫類。我刪除了舊圖書館?,F(xiàn)在工作正常。
- 1 回答
- 0 關(guān)注
- 107 瀏覽
添加回答
舉報(bào)
0/150
提交
取消