@model BTCPayServer.Models.InvoicingModels.InvoiceReceiptViewModel @using BTCPayServer.Client.Models @using BTCPayServer.Components.QRCode @using BTCPayServer.Services @inject DisplayFormatter DisplayFormatter @{ Layout = null; ViewData["Title"] = $"Receipt from {Model.StoreName}"; var isProcessing = Model.Status == InvoiceStatus.Processing; var isFreeInvoice = (Model.Status == InvoiceStatus.New && Model.Amount == 0); var isSettled = Model.Status == InvoiceStatus.Settled; }
| Total | @DisplayFormatter.Currency(Model.Amount, Model.Currency, DisplayFormatter.CurrencyFormat.Symbol) |
| @key | @value |
| Subtotal | @Model.AdditionalData["Subtotal"] |
| Discount | @Model.AdditionalData["Discount"] |
| Tip | @Model.AdditionalData["Tip"] |
| Payment @(i + 1) | |
| Received | @payment.ReceivedDate.ToBrowserDate() |
| @(Model.Payments.Count == 1 ? "Paid" : "") | @payment.AmountFormatted |
| @payment.PaidFormatted | |
| Rate | @payment.RateFormatted |
| Destination | @payment.Destination |
| Pay Proof | @payment.PaymentProof |