[#4551] Use the old deliverable subject as part of the FixedBudget item
This commit is contained in:
1 parent
c9861835e7
commit
8582ad0ecd
2 files changed
+4
-1
No files matched your search
@@ -172,7 +172,9 @@ module RedmineContracts
|
|||||||
|
|
||||||
deliverable.fixed_budgets << FixedBudget.new(:deliverable => deliverable,
|
deliverable.fixed_budgets << FixedBudget.new(:deliverable => deliverable,
|
||||||
:budget => budget,
|
:budget => budget,
|
||||||
:markup => markup)
|
:markup => markup,
|
||||||
|
:title => "Converted Fixed Deliverable - #{old_deliverable['subject']}")
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.append_old_deliverable_to_notes(old_deliverable, new_deliverable)
|
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
|
fixed_budget_item = d.fixed_budgets.first
|
||||||
assert_equal 30_000, fixed_budget_item.budget
|
assert_equal 30_000, fixed_budget_item.budget
|
||||||
assert_equal "150%", fixed_budget_item.markup
|
assert_equal "150%", fixed_budget_item.markup
|
||||||
|
assert_equal "Converted Fixed Deliverable - Version 1.0", fixed_budget_item.title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user