NTP-54510 | Divyesh | remove self transfer from monthly summary and tds failed txn error mapping loader fix (#15924)

This commit is contained in:
Divyesh Shinde
2025-04-28 12:15:04 +05:30
committed by GitHub
parent 70028887c0
commit efbebf2170
2 changed files with 5 additions and 18 deletions

View File

@@ -471,8 +471,10 @@ constructor(
.filter {
it.orderStatusOfView == OrderStatusOfView.Debit &&
it.paymentStatus != OrderPaymentStatus.REFUNDED &&
!it.isUpiLiteTopUpOrClosureTransaction
// currently only debit sum is considered & lite topup/autotopup is excluded to
!it.isUpiLiteTopUpOrClosureTransaction &&
!it.isOrderOfSelfTransferType
// currently only debit sum is considered excluding self transfer & lite
// topup/autotopup is excluded to
// avoid double counting
}
.groupBy { it.monthTag }

View File

@@ -83,22 +83,7 @@ constructor(
}
suspend fun getErrorEntityByCode(errorCode: String): OrderErrorEntity {
if (errorCode.isBlank()) return getDefaultError()
return orderRepository.getOrderErrorEntity(errorCode)
?: run {
val lastSyncedTimestamp =
syncRepository
.get(NAVI_PAY_SYNC_TABLE_ORDER_ERROR_MAPPING_KEY)
?.lastSyncedTimestamp
?.toLongOrNull() ?: 0L
fetchAndStoreErrorMappings(
screenName = "OrderErrorDetailsManager_getErrorEntityByCode",
lastSyncedTimestamp = lastSyncedTimestamp,
)
orderRepository.getOrderErrorEntity(errorCode) ?: getDefaultError()
}
return orderRepository.getOrderErrorEntity(errorCode) ?: getDefaultError()
}
private fun getDefaultError() =