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 GitHub
parent b5ade89763
commit e5a09cbeaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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