Content
View differences
Updated by Oliver Günther 1 day ago
**As** an Enterprise user,
**I want** to have the option to limit cost types for certain projects
**so that** these are only available in certain projects.
<br>
**Acceptance criteria**
* Add a projects association to every cost type, similar to a custom field
* When editing a cost type
* a new boolean field "For all projects" is added, which is checked in the migration
* This ensures current behavior stays the same
* There is a second tab "Projects"
* This tab behaves identical to the custom field administration, allowing administrators to add cost types
* When inside the project settings
* There is a new menu entry "Time and costs"
* The "Time entry activities" are moved into that menu, as a tab
* A new tab "Cost types" is added, showing a selection list for all cost types similar to time entry activities
* When all cost types are disabled in a project, the option to log and show unit costs is removed
* The edit form and project select is primerized
* We remove the rate editing on the index page, in favor of showing rates as a separate tab
<br>
**Mockup ideas**
**<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920867/content">**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920868/content"> <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920870/content">
<br>
**I want** to have the option to limit cost types for certain projects
**so that** these are only available in certain projects.
<br>
**Acceptance criteria**
* Add a projects association to every cost type, similar to a custom field
* When editing a cost type
* a new boolean field "For all projects" is added, which is checked in the migration
* This ensures current behavior stays the same
* There is a second tab "Projects"
* This tab behaves identical to the custom field administration, allowing administrators to add cost types
* When inside the project settings
* There is a new menu entry "Time and costs"
* The "Time entry activities" are moved into that menu, as a tab
* A new tab "Cost types" is added, showing a selection list for all cost types similar to time entry activities
* When all cost types are disabled in a project, the option to log and show unit costs is removed
* The edit form and project select is primerized
* We remove the rate editing on the index page, in favor of showing rates as a separate tab
**Mockup ideas**
**<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920867/content">**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920868/content"> <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/920870/content">
<br>