Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

fix: Save completely allocated budget (#1811)

Marvin Mdf5f4c83fe28
diff --git a/app/models/budget.rb b/app/models/budget.rb
index 9f6d6c07..560a5f17 100644
--- a/app/models/budget.rb
+++ b/app/models/budget.rb
@@ -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
# =============================================================================