From e5a09cbeaa48ce9fca258a7c3848ad5df0898bf8 Mon Sep 17 00:00:00 2001 From: d11n Date: Wed, 5 Jun 2024 15:11:26 +0200 Subject: [PATCH] POS: Don't show free items in print view (#6009) We cannot generate a proper LNURL response for free items, hence we should not show them in the print view. Closes #5999. --- BTCPayServer/Views/Shared/PointOfSale/Public/Print.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer/Views/Shared/PointOfSale/Public/Print.cshtml b/BTCPayServer/Views/Shared/PointOfSale/Public/Print.cshtml index de3fe6853..875109b6f 100644 --- a/BTCPayServer/Views/Shared/PointOfSale/Public/Print.cshtml +++ b/BTCPayServer/Views/Shared/PointOfSale/Public/Print.cshtml @@ -76,6 +76,7 @@ else { var item = Model.Items[x]; var formatted = DisplayFormatter.Currency(item.Price ?? 0, Model.CurrencyCode, DisplayFormatter.CurrencyFormat.Symbol); + if (item.PriceType == ViewPointOfSaleViewModel.ItemPriceType.Fixed && item.Price == 0) continue;