Created
April 25, 2022 11:59
-
-
Save GianpaMX/e187c8bbf3be4cf507c147a24613f4bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class EditState( | |
val expense: Expense? = null, | |
val payers: List<Payer> = emptyList(), | |
val receivers: List<Receiver> = emptyList(), | |
val selectedPayer: Payer? = null, | |
val selectedReceiver: Receiver? = null, | |
) { | |
fun total() = payers.sumOf { it.amount } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment