NTP-54510 | Divyesh | remove self transfer from monthly summary and tds failed txn error mapping loader fix (#15924)
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -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() =
|
||||
|
||||
Reference in New Issue
Block a user