Skip to content

Conversation

Nagarjuna0033
Copy link
Contributor

Fixes - Jira-#402

image

@Nagarjuna0033
Copy link
Contributor Author

Nagarjuna0033 commented Aug 24, 2025

@therajanmaurya Sir need some clarification regarding when to show the actions

enum class LoanStatus(val status: String) {
    ACTIVE("Active"),

    CLOSED("Closed"),

    MATURED("Matured"),

    APPROVED("Approved"),

    SUBMIT_AND_PENDING_APPROVAL("Submitted and pending approval"),

    DISBURSED("Disbursed"),

    REJECTED("Rejected"),

    WITHDRAWN("Withdrawn by applicant");

    companion object {
        fun fromStatus(value: String?): LoanStatus? =
            entries.firstOrNull { it.status.equals(value, ignoreCase = true) }
    }
}

We will be these loan status

we dont get any data if the loan status is submit and pending approval or rejected so in this pr I just if the loan status is these I am not showing actions. Let me know sir if this is wrong or need any modifications

@therajanmaurya
Copy link
Member

1. SUBMIT_AND_PENDING_APPROVAL

  • ✅ Visible: Loan Summary
  • ❌ Hidden: Make Payment, Repayment Schedule, Transactions, Charges, QR Code
    (Reason: Loan not approved yet.)

2. APPROVED

  • ✅ Visible: Loan Summary, Charges (if pre-disbursement fees apply)
  • ❌ Hidden: Make Payment, Repayment Schedule, Transactions, QR Code
    (Reason: Approved but not disbursed.)

3. DISBURSED

  • ✅ Visible: Loan Summary, Repayment Schedule, Transactions, Charges, QR Code
  • ❌ Hidden: Make Payment (if institution disallows manual payments before “Active,” else show)
    (Reason: Disbursed but may need institution rule check for early repayment.)

4. ACTIVE

  • ✅ Visible: Make Payment, Loan Summary, Repayment Schedule, Transactions, Charges, QR Code
    (Reason: Live loan, repayments ongoing.)

5. MATURED

  • ✅ Visible: Loan Summary, Repayment Schedule, Transactions
  • ❌ Hidden: Make Payment, Charges, QR Code
    (Reason: Tenure ended, dues may remain but no new charges or QR payment allowed.)

6. CLOSED

  • ✅ Visible: Loan Summary, Transactions
  • ❌ Hidden: Make Payment, Repayment Schedule, Charges, QR Code
    (Reason: Fully repaid loan, only historical view.)

7. REJECTED

  • ✅ Visible: Loan Summary
  • ❌ Hidden: Make Payment, Repayment Schedule, Transactions, Charges, QR Code
    (Reason: Application denied.)

8. WITHDRAWN

  • ✅ Visible: Loan Summary
  • ❌ Hidden: Make Payment, Repayment Schedule, Transactions, Charges, QR Code
    (Reason: Borrower canceled application.)

@therajanmaurya therajanmaurya merged commit bd78ece into openMF:development Aug 24, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants