mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
fix: Save completely allocated budget (#1811)
Signed-off-by: Marvin M <39344769+M123-dev@users.noreply.github.com>
This commit is contained in:
@@ -150,7 +150,7 @@ class Budget < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def allocations_valid?
|
def allocations_valid?
|
||||||
initialized? && available_to_allocate.positive? && allocated_spending > 0
|
initialized? && available_to_allocate >= 0 && allocated_spending > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user