Open link in a new tab

Content

Expand project menu

How to delete a budget record

is there any way we can manually delete the Budgets record from one of the project? after i created a budget record i am not able to click and view/delete it (probably because i made some changes/delete the users who's allocated to the labour part of the budget).

when looking at the production.log are shown below:

F, [2019-02-28T17:04:47.857754 #1378] FATAL -- :    
F, [2019-02-28T17:04:47.857896 #1378] FATAL -- : ActionView::Template::Error (undefined method `name' for nil:NilClass): 
F, [2019-02-28T17:04:47.858182 #1378] FATAL -- :     262:                 <% @cost_object.labor_budget_items.each do |labor_budget_item| %> 
   263:                 <tr> 
   264:                   <td class="hours"><%= labor_budget_item.hours %>h</td> 
   265:                   <td><%=h labor_budget_item.principal.name %></td> 
   266:                   <td class="comments"><%=h labor_budget_item.comments %></td> 
   267:                   <% if labor_budget_item.costs_visible_by?(User.current) %> 
   268:                     <td class="currency"> 
F, [2019-02-28T17:04:47.858236 #1378] FATAL -- :    
F, [2019-02-28T17:04:47.858288 #1378] FATAL -- : app/middleware/reset_current_user.rb:47:in `call'

Message actions

found the solution.

by accessing direct to the database and delete the record from these two tables

cost_objects
cost_objects_journals