[PIN-4296] Optimise query on list of Smartcard purchased items endpoint
The only unoptimised query left is the one for Locations - since after many tries and options I did not manage to find working solution on how to select data from tree structure inside single DQL query.