Counting "bezahlt" & "teils/teils" share type explicitly for expected biddings, instead of the absence of values (emptiness, "erarbeitet").
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user