diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 32659c9339..c46f507c72 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -411,7 +411,7 @@ public async Task CanCreateStores() //let's test archiving an invoice Assert.DoesNotContain("Archived", s.Driver.FindElement(By.Id("btn-archive-toggle")).Text); s.Driver.FindElement(By.Id("btn-archive-toggle")).Click(); - Assert.Contains("Archived", s.Driver.FindElement(By.Id("btn-archive-toggle")).Text); + Assert.Contains("Unarchive", s.Driver.FindElement(By.Id("btn-archive-toggle")).Text); //check that it no longer appears in list s.GoToInvoices(); @@ -420,7 +420,7 @@ public async Task CanCreateStores() s.Driver.Navigate().GoToUrl(invoiceUrl); s.Driver.FindElement(By.Id("btn-archive-toggle")).Click(); s.FindAlertMessage(); - Assert.DoesNotContain("Archived", s.Driver.FindElement(By.Id("btn-archive-toggle")).Text); + Assert.DoesNotContain("Unarchive", s.Driver.FindElement(By.Id("btn-archive-toggle")).Text); s.GoToInvoices(); Assert.Contains(invoiceId, s.Driver.PageSource); diff --git a/BTCPayServer/Views/Invoice/Invoice.cshtml b/BTCPayServer/Views/Invoice/Invoice.cshtml index 35216c49bd..0119e3a0fd 100644 --- a/BTCPayServer/Views/Invoice/Invoice.cshtml +++ b/BTCPayServer/Views/Invoice/Invoice.cshtml @@ -46,8 +46,7 @@
- -
+

@ViewData["Title"]

@@ -58,24 +57,23 @@ Checkout } - @if (Model.CanRefund) { - Issue refund + Issue Refund } else { - + } -
+
@@ -83,20 +81,20 @@
-
-
+
+

Invoice Information

- +
- + - + - + - + - + - + - + - + - + - + @if (!string.IsNullOrEmpty(Model.RefundEmail)) { - + } @if (!string.IsNullOrEmpty(Model.NotificationUrl)) { - + } @if (!string.IsNullOrEmpty(Model.RedirectUrl)) { - + }
StoreStore @Model.StoreName
Invoice IdInvoice Id @Model.Id
Order IdOrder Id @if (string.IsNullOrEmpty(Model.TypedMetadata.OrderUrl)) { @@ -118,11 +116,11 @@
Payment Request IdPayment Request Id @Model.TypedMetadata.PaymentRequestId
StateState @if (Model.CanMarkStatus) { @@ -145,132 +143,133 @@ } - } - else { + } + else + { @Model.State }
Created dateCreated Date @Model.CreatedDate.ToBrowserDate()
Expiration dateExpiration Date @Model.ExpirationDate.ToBrowserDate()
Monitoring dateMonitoring Date @Model.MonitoringDate.ToBrowserDate()
Transaction speedTransaction Speed @Model.TransactionSpeed
Total fiat dueTotal Fiat Due @Model.Fiat
Refund emailRefund Email @Model.RefundEmail
Notification UrlNotification Url @Model.NotificationUrl
Redirect UrlRedirect Url @Model.RedirectUrl
+ @if (Model.PosData.Count == 0) + { +

Product Information

+ + @if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemCode)) + { + + + + + } + @if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemDesc)) + { + + + + + } + + + + + + + + +
Item code@Model.TypedMetadata.ItemCode
Item Description@Model.TypedMetadata.ItemDesc
Price@Model.Fiat
Tax Included@Model.TaxIncluded
+ }
-
+

Buyer Information

- +
- + - + - + - + - + - + - + - + - +
NameName @Model.TypedMetadata.BuyerName
EmailEmail @Model.TypedMetadata.BuyerEmail
PhonePhone @Model.TypedMetadata.BuyerPhone
Address 1Address 1 @Model.TypedMetadata.BuyerAddress1
Address 2Address 2 @Model.TypedMetadata.BuyerAddress2
CityCity @Model.TypedMetadata.BuyerCity
StateState @Model.TypedMetadata.BuyerState
CountryCountry @Model.TypedMetadata.BuyerCountry
ZipZip @Model.TypedMetadata.BuyerZip
- @if (Model.PosData.Count == 0) - { -

Product Information

- - @if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemCode)) - { - - - - - } - @if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemDesc)) - { - - - - - } - - - - - - - - -
Item code@Model.TypedMetadata.ItemCode
Item Description@Model.TypedMetadata.ItemDesc
Price@Model.Fiat
Tax included@Model.TaxIncluded
- }
@if (Model.PosData.Count != 0) {
-
+

Product information

- +
@if (!string.IsNullOrEmpty(Model.TypedMetadata.ItemCode)) { @@ -362,7 +361,6 @@ } } -

Events

@@ -386,4 +384,4 @@
- + \ No newline at end of file