xero-php
xero-php copied to clipboard
A php library for the Xero API, with a cleaner OAuth interface and ORM-like abstraction.
Both getTenants and getResourceOwner require to us pass-through the token interface. We can pass through the same token object to both, however, getResourceOwner complains it's expecting `\League\OAuth2\Client\Token\AccessToken` rather than the...
When updating an Invoice and not dirtying CurrencyRate field, saving the model will result in using the latest currency rate from xe.com, instead of whatever the rate was originally. https://developer.xero.com/documentation/api/invoices#post...
Previously we were able to do the following ``` 'curl' => [ CURLOPT_USERAGENT => $xeroUserAgent, ], ``` We used this so we can detect which isntance calls were coming from....
Hi Just been porting our system over from the 1.0a oauth private application to an oauth2 standard application and I hit an issue which I have now resolved. I would...
The Payroll Employees PayTemplate SuperLines is missing the 'Amount' value which is used instead of 'Percentage' when the 'CalculationType' is set to 'FIXEDAMOUNT'. This amount is most often used when...
I'm getting a **Resource Not Found** exception when creating a new Payslip in a draft PayRun. **Anybody got some ideas?** I've copied out the relevant code from my main payslips...
Anyone know how to remove a contact from a group? I have done this for adding contacts into a group: ``` $contactgroup = $xero->loadByGUID('Accounting\\ContactGroup', $contactGroupId); // loop through contacts //...
How to sort the results by 2 columns? This doesn't work: `$objs = $xero->load('Accounting\\Payment') ->where('Account.AccountID=GUID("' . $bankID . '")') ->orderBy('Date', 'desc') ->orderBy('Reference', 'desc') ->execute();` Thanks!
Firstly good job on the library it's far superior to the official XeroPHP implementation. Anyway onto the issue: When adding the payment terms to a contact, this library assumes multiple...