NTP-54510 | Divyesh | view-history-paid-bill-fix (#15865)

This commit is contained in:
Divyesh Shinde
2025-04-22 10:21:42 +05:30
committed by GitHub
parent 9490eb4516
commit 968a2cf6f3

View File

@@ -528,12 +528,16 @@ constructor(
updateBillDetails()
}
private suspend fun fetchMatchingBillAndUpdateEntity() {
private fun fetchMatchingBillAndUpdateEntity() {
viewModelScope.launch(dispatcherProvider.io) {
val savedBill = findMatchingSavedBill()
updateMyBillEntity(myBillEntity = savedBill)
}
}
private fun updateBillDetails() {
fetchMatchingBillAndUpdateEntity()
billDetailsEntity.value?.let { updateBillAndAmountValues(billDetailsEntity = it) }
billDetailsEntity.value?.let {