mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
fix: Save completely allocated budget (#1811)
Signed-off-by: Marvin M <39344769+M123-dev@users.noreply.github.com>
This commit is contained in:
parent
e3ef1dd6b4
commit
df5f4c83fe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
# =============================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue