|
|
|
|
@ -77,21 +77,11 @@ enum class RowViewType { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
itemView.rowHeaderTitleAmount_value.isCurrency = true |
|
|
|
|
itemView.rowHeaderTitleAmount_value.amount = row.value?.toDouble() ?: 0.0 |
|
|
|
|
/* |
|
|
|
|
when (row) { |
|
|
|
|
HeaderRowRepresentable.HEADER_SESSION_DURATION -> { |
|
|
|
|
itemView.rowHeaderTitleValue_value.amount = row.getAmount(itemView.context, adapter.dataSource) |
|
|
|
|
itemView.rowHeaderTitleAmount_value.amount = try { |
|
|
|
|
row.value?.toDouble() ?: 0.0 |
|
|
|
|
} catch (e: Exception) { |
|
|
|
|
0.0 |
|
|
|
|
} |
|
|
|
|
HeaderRowRepresentable.HEADER_SESSION_NET_HOURLY_RATE -> { |
|
|
|
|
adapter.dataSource.let { |
|
|
|
|
if (it is Session) { |
|
|
|
|
it.sessionSet?.hourlyRate |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|