mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Add refund badge to invoice lists (#3918)
* Add refund badge to invoice lists * fix badge
This commit is contained in:
@@ -826,6 +826,7 @@ namespace BTCPayServer.Controllers
|
||||
invoiceQuery.StoreId = model.StoreIds;
|
||||
invoiceQuery.Take = model.Count;
|
||||
invoiceQuery.Skip = model.Skip;
|
||||
invoiceQuery.IncludeRefunds = true;
|
||||
var list = await _InvoiceRepository.GetInvoices(invoiceQuery);
|
||||
|
||||
model.IncludeArchived = invoiceQuery.IncludeArchived;
|
||||
@@ -845,6 +846,7 @@ namespace BTCPayServer.Controllers
|
||||
CanMarkInvalid = state.CanMarkInvalid(),
|
||||
CanMarkSettled = state.CanMarkComplete(),
|
||||
Details = InvoicePopulatePayments(invoice),
|
||||
HasRefund = invoice.Refunds.Any(data => !data.PullPaymentData.Archived)
|
||||
});
|
||||
}
|
||||
return View(model);
|
||||
|
||||
Reference in New Issue
Block a user