Skip to content

Commit

Permalink
Merge pull request #466 from AOEpeople/bugfix/wrong-prefilled-payment…
Browse files Browse the repository at this point in the history
…-field

Fix wrong balance format in prefilled payment field
  • Loading branch information
hacksch authored Jun 13, 2024
2 parents 2f33091 + 292ee61 commit 689e1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mealz/AccountingBundle/Service/Wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ public function getBalance(Profile $profile): float
$costs = $this->participantRepo->getTotalCost($username);
$transactions = $this->transactionRepo->getTotalAmount($username);

return $transactions - $costs;
return round($transactions - $costs, 2);
}
}

0 comments on commit 689e1fb

Please sign in to comment.