mirror of
https://github.com/bitwarden/server.git
synced 2025-04-12 08:38:13 -05:00
filter invoices
This commit is contained in:
parent
01d324a8b4
commit
9c5fde35f5
@ -1053,10 +1053,10 @@ namespace Bit.Core.Services
|
||||
var invoices = await invoiceService.ListAsync(new InvoiceListOptions
|
||||
{
|
||||
CustomerId = customer.Id,
|
||||
Limit = 20
|
||||
Limit = 50
|
||||
});
|
||||
billingInfo.Invoices = invoices?.Data?.OrderByDescending(i => i.Date)
|
||||
.Select(i => new BillingInfo.BillingInvoice(i));
|
||||
billingInfo.Invoices = invoices.Data.Where(i => i.Status != "void" && i.Status != "draft")
|
||||
.OrderByDescending(i => i.Date).Select(i => new BillingInfo.BillingInvoice(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user