mirror of
https://github.com/bitwarden/server
synced 2025-12-20 10:13:39 +00:00
proration adjustments for next bill amount
This commit is contained in:
@@ -196,7 +196,11 @@ namespace Bit.Core.Models.Business
|
||||
|
||||
public BillingInvoice(Subscription sub)
|
||||
{
|
||||
Amount = sub.NextBillAmount.GetValueOrDefault();
|
||||
Amount = sub.NextBillAmount.GetValueOrDefault() + sub.Balance.GetValueOrDefault();
|
||||
if(Amount < 0)
|
||||
{
|
||||
Amount = 0;
|
||||
}
|
||||
Date = sub.NextBillingDate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user