|
|
|
|
@ -476,7 +476,7 @@ open class Session : RealmObject(), Savable, Editable, StaticRowRepresentableDat |
|
|
|
|
|
|
|
|
|
val hasNetResult: Boolean |
|
|
|
|
get() { |
|
|
|
|
return this.result?.netResult != null |
|
|
|
|
return this.result?.onlineNet != null |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Manageable |
|
|
|
|
@ -788,7 +788,7 @@ open class Session : RealmObject(), Savable, Editable, StaticRowRepresentableDat |
|
|
|
|
SessionRow.BREAK_TIME -> if (this.breakDuration > 0.0) this.breakDuration.toMinutes() else NULL_TEXT |
|
|
|
|
SessionRow.BUY_IN -> this.result?.buyin?.toCurrency(currency) ?: NULL_TEXT |
|
|
|
|
SessionRow.CASHED_OUT, SessionRow.PRIZE -> this.result?.cashout?.toCurrency(currency) ?: NULL_TEXT |
|
|
|
|
SessionRow.NET_RESULT -> this.result?.netResult?.toCurrency(currency) ?: NULL_TEXT |
|
|
|
|
SessionRow.NET_RESULT -> this.result?.onlineNet?.toCurrency(currency) ?: NULL_TEXT |
|
|
|
|
SessionRow.COMMENT -> if (this.comment.isNotEmpty()) this.comment else NULL_TEXT |
|
|
|
|
SessionRow.END_DATE -> this.endDate?.shortDateTime() ?: NULL_TEXT |
|
|
|
|
SessionRow.GAME -> getFormattedGame() |
|
|
|
|
@ -903,7 +903,7 @@ open class Session : RealmObject(), Savable, Editable, StaticRowRepresentableDat |
|
|
|
|
) |
|
|
|
|
SessionRow.NET_RESULT -> row.editingDescriptors( |
|
|
|
|
mapOf( |
|
|
|
|
"defaultValue" to result?.netResult |
|
|
|
|
"defaultValue" to result?.onlineNet |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
SessionRow.COMMENT -> row.editingDescriptors( |
|
|
|
|
@ -998,7 +998,7 @@ open class Session : RealmObject(), Savable, Editable, StaticRowRepresentableDat |
|
|
|
|
} |
|
|
|
|
SessionRow.NET_RESULT -> { |
|
|
|
|
this.result?.let { result -> |
|
|
|
|
result.netResult = value as Double? |
|
|
|
|
result.onlineNet = value as Double? |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
SessionRow.COMMENT -> comment = value as String? ?: "" |
|
|
|
|
|