[#4551] Use the old deliverable subject as part of the FixedBudget item
This commit is contained in:
@@ -172,7 +172,9 @@ module RedmineContracts
|
||||
|
||||
deliverable.fixed_budgets << FixedBudget.new(:deliverable => deliverable,
|
||||
:budget => budget,
|
||||
:markup => markup)
|
||||
:markup => markup,
|
||||
:title => "Converted Fixed Deliverable - #{old_deliverable['subject']}")
|
||||
|
||||
end
|
||||
|
||||
def self.append_old_deliverable_to_notes(old_deliverable, new_deliverable)
|
||||
|
||||
@@ -162,6 +162,7 @@ class BudgetPluginMigrationTest < ActionController::IntegrationTest
|
||||
fixed_budget_item = d.fixed_budgets.first
|
||||
assert_equal 30_000, fixed_budget_item.budget
|
||||
assert_equal "150%", fixed_budget_item.markup
|
||||
assert_equal "Converted Fixed Deliverable - Version 1.0", fixed_budget_item.title
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user