We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e5fb3 commit 8838a43Copy full SHA for 8838a43
core/src/main/java/io/snabble/sdk/shoppingcart/ShoppingCart.kt
@@ -451,7 +451,7 @@ class ShoppingCart(
451
val totalPrice: Int
452
get() = data.onlineTotalPrice ?: calculateTotalPrice()
453
454
- private fun calculateTotalPrice(): Int = data.items.sumOf { it.totalDepositPrice }
+ private fun calculateTotalPrice(): Int = data.items.sumOf { it.totalPrice } + totalDepositPrice
455
456
/**
457
* Returns the total sum of deposit
0 commit comments