# Bug OP-19609 - Cost fields are still showing on WPs even if all cost types are disabled in the project

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19609

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Costs and budgets |
| Target versions | 17.6.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a project admin
    
2.  In the project go to Project settings &gt; Times and Costs &gt; Cost types
    
3.  Disable all cost types
    
4.  Go to work package module
    
5.  Open any WP
    

### What is the buggy behaviour?

*   WP still shows Costs section
    

### What is the expected behaviour?

1.  from the AC&nbsp;
    

> When all cost types are disabled in a project, the option to show unit costs is removed

###   

### Screenshots and other files

Project settings config  
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922289/content">  
WP   
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922290/content">

### Environment information

**OpenProject version**

Core build

[5bc9d23e25192023a9473cbdf267b2fb566c7047](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2F5bc9d23e25192023a9473cbdf267b2fb566c7047)

Product version

[3db21513fd7457f50849dce47a583687fac6667d](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2F3db21513fd7457f50849dce47a583687fac6667d)

Core version

OpenProject 17.6.0

**Browser**

*   [ ] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [x] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)
