1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

fix: Save completely allocated budget (#1811)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

Signed-off-by: Marvin M <39344769+M123-dev@users.noreply.github.com>
This commit is contained in:
Marvin M 2025-02-05 19:20:19 +01:00 committed by GitHub
parent e3ef1dd6b4
commit df5f4c83fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
# =============================================================================