mirror of
https://github.com/bitwarden/server.git
synced 2025-04-13 17:18:14 -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
|
var invoices = await invoiceService.ListAsync(new InvoiceListOptions
|
||||||
{
|
{
|
||||||
CustomerId = customer.Id,
|
CustomerId = customer.Id,
|
||||||
Limit = 20
|
Limit = 50
|
||||||
});
|
});
|
||||||
billingInfo.Invoices = invoices?.Data?.OrderByDescending(i => i.Date)
|
billingInfo.Invoices = invoices.Data.Where(i => i.Status != "void" && i.Status != "draft")
|
||||||
.Select(i => new BillingInfo.BillingInvoice(i));
|
.OrderByDescending(i => i.Date).Select(i => new BillingInfo.BillingInvoice(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user