1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-28 14:54:50 -05:00

qty is only 1 if re-creating after proration

This commit is contained in:
Kyle Spearrin 2019-09-03 16:49:25 -04:00
parent aca274a49b
commit 1be6e2008b

View File

@ -931,7 +931,7 @@ namespace Bit.Core.Services
SubscriptionId = item.SubscriptionId,
Discountable = item.Discountable,
Metadata = item.Metadata,
Quantity = 1,
Quantity = item.Proration ? 1 : item.Quantity,
UnitAmount = item.UnitAmount
};
await invoiceItemService.CreateAsync(i);