Skip to content

Commit

Permalink
POS: Don't show free items in print view
Browse files Browse the repository at this point in the history
We cannot generate a proper LNURL response for free items, hence we should not show them in the print view.

Closes btcpayserver#5999.
  • Loading branch information
dennisreimann committed May 26, 2024
1 parent 1374213 commit 53d4671
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BTCPayServer/Views/Shared/PointOfSale/Public/Print.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
<div class="d-flex flex-wrap">
<div class="card px-0" data-id="@x">
<div class="card-body p-3 d-flex flex-column gap-2">
Expand Down

0 comments on commit 53d4671

Please sign in to comment.