1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 11:13:27 +00:00

[PM-23309] Admin Console Credit is not Displaying Decimals (#6280)

* fix: update calculation to be decimal

* fix: update record type property to decimal

* tests: add tests to service and update test names
This commit is contained in:
Stephon Brown
2025-09-05 11:15:01 -04:00
committed by GitHub
parent 6d4129c6b7
commit 87bc9299e6
4 changed files with 183 additions and 48 deletions

View File

@@ -345,7 +345,7 @@ public class SubscriberService(
return PaymentMethod.Empty;
}
var accountCredit = customer.Balance * -1 / 100;
var accountCredit = customer.Balance * -1 / 100M;
var paymentMethod = await GetPaymentSourceAsync(subscriber.Id, customer);