Skip to content

Simple expense item type

Compare
Choose a tag to compare
@deanblackborough deanblackborough released this 07 Oct 11:06
· 1322 commits to master since this release
58380f0

Added

  • We have updated the create resource type route. It is now possible to set the item type that you want to use. There are two expense types, "allocated expense" and "simple expense". An allocated expense allows you to allocated a percentage of the total cost; a simple expense only has a total, no allocation rate.
  • The supported item types exposed in the resource types OPTIONS request, additional item types will be added over time.
  • We have added an item type hasher to hash the ids for item types.
  • We have added support for simple expenses, create a simple expense resource type and off you go, "simple expenses" instead of "allocated expenses".

Changed

  • We have added an interface to use when interacting with items; it works out the item type by looking at the resource and then returns the relevant models and configuration data.
  • We have updated numerous sections of the API to dynamically expose the relevant fields, sort parameters and search parameters etc. based on the current item type.
  • We have moved several item based configuration files into the relevant item type folder.