Skip to content

Commit

Permalink
Project budget amount is less than total budget (#9174)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahdeero committed Apr 29, 2022
1 parent c7304d9 commit 0482d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decidim-budgets/lib/decidim/budgets/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
Decidim::Faker::Localized.paragraph(sentence_count: 3)
end,
budget_amount: Faker::Number.number(digits: 8)
budget_amount: Faker::Number.between(from: Integer(budget.total_budget * 0.7), to: budget.total_budget)
)

attachment_collection = Decidim::AttachmentCollection.create!(
Expand Down

0 comments on commit 0482d2e

Please sign in to comment.