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:
d11n 2024-06-05 15:11:26 +02:00 committed by nicolas.dorier
parent b341536e42
commit 5884850e22
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -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">