Skip to content

Commit

Permalink
Fix same taxes totalItems count
Browse files Browse the repository at this point in the history
  • Loading branch information
dalrankov committed Mar 9, 2024
1 parent 169ada4 commit 29ba49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InvoiceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public async Task<CreateInvoiceResult> CreateInvoiceAsync(
VatPercentage = vatPercentageGroup.Key.RoundTo(2),
VatAmount = vatPercentageGroup.Sum(x => x.TotalVatAmount).RoundTo(2),
PriceBeforeVat = vatPercentageGroup.Sum(x => x.TotalPriceBeforeVat).RoundTo(2),
TotalItems = vatPercentageGroup.Sum(x => x.Quantity)
TotalItems = vatPercentageGroup.Count()
})
.ToList()
}
Expand Down

0 comments on commit 29ba49b

Please sign in to comment.