mirror of
https://github.com/bitwarden/server
synced 2025-12-28 22:23:30 +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:
@@ -6,7 +6,7 @@ using Bit.Core.Billing.Tax.Models;
|
||||
namespace Bit.Core.Billing.Models;
|
||||
|
||||
public record PaymentMethod(
|
||||
long AccountCredit,
|
||||
decimal AccountCredit,
|
||||
PaymentSource PaymentSource,
|
||||
string SubscriptionStatus,
|
||||
TaxInformation TaxInformation)
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user