From 25bfc196a157667be0fa0eb56228f244d44ffe2d Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Tue, 17 Feb 2026 10:13:01 +0100 Subject: [PATCH] Counting "bezahlt" & "teils/teils" share type explicitly for expected biddings, instead of the absence of values (emptiness, "erarbeitet"). --- libs/BeetRoundCore/model/tablemodel.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/BeetRoundCore/model/tablemodel.cpp b/libs/BeetRoundCore/model/tablemodel.cpp index 8e638e3..774f4b2 100644 --- a/libs/BeetRoundCore/model/tablemodel.cpp +++ b/libs/BeetRoundCore/model/tablemodel.cpp @@ -312,15 +312,14 @@ int TableModel::nExpectedBiddings() const { if (biddingType.isEmpty()) { continue; } - const QString shareType = (*i)->data(ShareTypeRole).toString(); - if (shareType.isEmpty() || shareType == "erarbeitet") { - continue; - } const double shareAmount = (*i)->data(ShareAmountRole).toDouble(); if (shareAmount == 0.0) { continue; } - result++; + const QString shareType = (*i)->data(ShareTypeRole).toString(); + if (shareType == "bezahlt" || shareType == "teils/teils") { + result++; + } } return result; }