How do we set a division (tracking category option) using Laravel 5 wrapper for Xero's PHP API?
According to the Xero API the object that gets send should look something like this:
<Tracking>
<TrackingCategory>
<Name>Activity/Workstream</Name>
<Option>Onsite consultancy</Option>
</TrackingCategory>
</Tracking>
I tried the followings code but it didn't work.
$line[$i]->setTrackingCategory('Divisions');
$line[$i]->setTrackingOption('Cruises');
I got an error:
Call to undefined method XeroPHP/Models/Accounting/Invoice/LineItem::setTrackingCategory()
My divisions are already set in Xero as shown below.