mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 10:30:47 +01:00
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.
This commit is contained in:
parent
b341536e42
commit
5884850e22
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ else
|
||||||
{
|
{
|
||||||
var item = Model.Items[x];
|
var item = Model.Items[x];
|
||||||
var formatted = DisplayFormatter.Currency(item.Price ?? 0, Model.CurrencyCode, DisplayFormatter.CurrencyFormat.Symbol);
|
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="d-flex flex-wrap">
|
||||||
<div class="card px-0" data-id="@x">
|
<div class="card px-0" data-id="@x">
|
||||||
<div class="card-body p-3 d-flex flex-column gap-2">
|
<div class="card-body p-3 d-flex flex-column gap-2">
|
||||||
|
|
Loading…
Add table
Reference in a new issue