fix: Save completely allocated budget (#1811)
Signed-off-by: Marvin M <39344769+M123-dev@users.noreply.github.com>
This commit was merged in pull request #1811.
This commit is contained in:
@@ -150,7 +150,7 @@ class Budget < ApplicationRecord
|
||||
end
|
||||
|
||||
def allocations_valid?
|
||||
initialized? && available_to_allocate.positive? && allocated_spending > 0
|
||||
initialized? && available_to_allocate >= 0 && allocated_spending > 0
|
||||
end
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user