Counting "bezahlt" & "teils/teils" share type explicitly for expected biddings, instead of the absence of values (emptiness, "erarbeitet").

This commit is contained in:
2026-02-17 10:13:01 +01:00
parent bfb8e43c34
commit 25bfc196a1

View File

@ -312,15 +312,14 @@ int TableModel::nExpectedBiddings() const {
if (biddingType.isEmpty()) { if (biddingType.isEmpty()) {
continue; continue;
} }
const QString shareType = (*i)->data(ShareTypeRole).toString();
if (shareType.isEmpty() || shareType == "erarbeitet") {
continue;
}
const double shareAmount = (*i)->data(ShareAmountRole).toDouble(); const double shareAmount = (*i)->data(ShareAmountRole).toDouble();
if (shareAmount == 0.0) { if (shareAmount == 0.0) {
continue; continue;
} }
result++; const QString shareType = (*i)->data(ShareTypeRole).toString();
if (shareType == "bezahlt" || shareType == "teils/teils") {
result++;
}
} }
return result; return result;
} }