NTP-45282 | Sidharth Bamba | fix for upi lite closure case (#15298)

This commit is contained in:
Sidharth Bamba
2025-03-10 14:05:52 +05:30
committed by GitHub
parent 03b3cbf70d
commit 801ec2de60

View File

@@ -253,9 +253,16 @@ fun shareReceipt(
fun LayoutShareTransactionDetailsBinding.setPayeeBankNameAndLogo() {
payeeBankView.apply {
val isDebitedOrUpiLite =
shareReceiptEntity.isDebited || shareReceiptEntity.isSendMoneyViaUPILite
val isNotMandateOrSelfPayOrClosure =
!shareReceiptEntity.isMandateTransaction &&
!shareReceiptEntity.isSelfPayTransaction &&
!shareReceiptEntity.isUpiLiteClosureTransaction
if (
(shareReceiptEntity.isDebited || shareReceiptEntity.isSendMoneyViaUPILite) &&
!shareReceiptEntity.isMandateTransaction &&
isDebitedOrUpiLite &&
isNotMandateOrSelfPayOrClosure &&
shareReceiptEntity.payeeBankNameFormatted.isNotNullAndNotEmpty()
) {
payeeBankIcon.visibility = VISIBLE