mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
filter invoices
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user