xero-php
xero-php copied to clipboard
Saving Item errors
When saving an item I was getting 2 errors: The first seems to be fixed in a pull request - InventoryAssetAccountCode should not be required.
The other is because addPurchaseDetail and addSalesDetail should be setPurchaseDetails and setSalesDetails. This would make the PurchaseDetails and SalesDetails an object rather than a collection.
I can't be the only one encountering this problem?
Hmm, I haven't specifically tested this. Do you have the time to propose a PR?
Have just added PR #382
I have been using this code for about 6 months, only got reminded of that when I tried to do a composer update (for PHP 7.2 support) and was reminded that I had modified files.