ارتقا به نسخه 1.1.5 و محاسبه مجموع پرداختی‌های دوره جاری برای هر فرد
Android Release / build (push) Canceled after 0s

This commit is contained in:
Oqba committed 2026-10-29 07:00:22 +03:30
1 parent f1c19cba52
commit 9ed2b59d81
2 files changed
+3 -3

No files matched your search

@@ -212,7 +212,7 @@ class PersonViewModel @Inject constructor(
}
val latestPayment = personCyclePayments.maxByOrNull { if ((it.createdAt ?: 0L) > 0L) it.createdAt!! else it.timestamp }
val lastPaymentTime = latestPayment?.let { if ((it.createdAt ?: 0L) > 0L) it.createdAt!! else it.timestamp }
val lastPaymentAmount = latestPayment?.amount
val lastPaymentAmount = if (personCyclePayments.isNotEmpty()) personCyclePayments.sumOf { it.amount } else null
val unpaidResult = if (category == "mosque" || person.isAnonymous) {
Triple(0, 0.0, emptyList<String>() to emptyList())