Skip to content

Commit

Permalink
Release/1.0.3 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavofreze authored Nov 8, 2024
1 parent 8bbfb57 commit fb7e1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/Domain/Models/Account/Balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public function hasSufficientFunds(Amount $amount): bool
$debitAmount = BigDecimal::fromFloat(value: $amount->toFloat(), scale: $amount::SCALE);
$updatedAmount = $this->amount->subtract(subtrahend: $debitAmount->absolute());

return $updatedAmount->isPositive();
return !$updatedAmount->isNegative();
}
}

0 comments on commit fb7e1ab

Please sign in to comment.