Added the ability to pass a default value into the field_with_budget_observer_and_totals so the system defaults will appear correctly. #1351

This commit is contained in:
Eric Davis
2008-06-20 11:54:44 -07:00
parent 3dea68522e
commit e5822befb0
2 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -64,9 +64,9 @@
</td>
</tr>
<%= field_with_budget_observer_and_totals(f, @deliverable, :overhead, :overhead_percent) %>
<%= field_with_budget_observer_and_totals(f, @deliverable, :materials, :materials_percent) %>
<%= field_with_budget_observer_and_totals(f, @deliverable, :profit, :profit_percent) %>
<%= field_with_budget_observer_and_totals(f, @deliverable, :overhead, :overhead_percent, @settings[:budget_non_billable_overhead]) %>
<%= field_with_budget_observer_and_totals(f, @deliverable, :materials, :materials_percent, @settings[:budget_materials]) %>
<%= field_with_budget_observer_and_totals(f, @deliverable, :profit, :profit_percent, @settings[:budget_profit]) %>
<tr class="total-budget">
<td><label>Total Budget:</label></td>