Skip to content

Commit

Permalink
refactor #2546: migrate loan application screen to compose
Browse files Browse the repository at this point in the history
  • Loading branch information
AvneetSingh2001 committed Apr 21, 2024
1 parent 452d79d commit c4aff75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import org.mifos.mobile.ui.fragments.ClientChargeFragment
import org.mifos.mobile.ui.fragments.GuarantorListFragment
import org.mifos.mobile.ui.fragments.LoanAccountTransactionFragment
import org.mifos.mobile.ui.loan_account_withdraw.LoanAccountWithdrawFragment
import org.mifos.mobile.ui.fragments.LoanApplicationFragment
import org.mifos.mobile.ui.fragments.LoanAccountWithdrawFragment
import org.mifos.mobile.ui.loan_account_application.LoanApplicationFragment
import org.mifos.mobile.ui.fragments.LoanRepaymentScheduleFragment
import org.mifos.mobile.ui.fragments.QrCodeDisplayFragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class LoanApplicationFragment : BaseFragment() {
private fun reviewNewLoanApplication() {
val loansPayload = LoansPayload()
loansPayload.clientId = viewModel.loanTemplate?.clientId
loansPayload.loanPurpose = viewModel.loanApplicationScreenData.value.selectedLoanPurpose
loansPayload.loanPurpose = viewModel.loanApplicationScreenData.value.selectedLoanPurpose ?: getString(R.string.loan_purpose_not_provided)
loansPayload.productName = viewModel.loanApplicationScreenData.value.selectedLoanProduct
loansPayload.currency = viewModel.loanApplicationScreenData.value.currencyLabel
if (viewModel.purposeId > 0) loansPayload.loanPurposeId = viewModel.purposeId
Expand Down Expand Up @@ -115,7 +115,7 @@ class LoanApplicationFragment : BaseFragment() {
loansPayload.principal =
viewModel.loanApplicationScreenData.value.principalAmount?.toDouble() ?: 0.0
loansPayload.productId = viewModel.productId
loansPayload.loanPurpose = viewModel.loanApplicationScreenData.value.selectedLoanPurpose
loansPayload.loanPurpose = viewModel.loanApplicationScreenData.value.selectedLoanPurpose ?: getString(R.string.loan_purpose_not_provided)
loansPayload.productName = viewModel.loanApplicationScreenData.value.selectedLoanProduct
loansPayload.currency = viewModel.loanApplicationScreenData.value.currencyLabel
if (viewModel.purposeId > 0) loansPayload.loanPurposeId = viewModel.purposeId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fun MifosDropDownTextField(
DropdownMenu(
expanded = expanded,
modifier = Modifier
.fillMaxWidth()
.fillMaxWidth(0.92f)
.heightIn(max = 200.dp),
onDismissRequest = { expanded = false },
) {
Expand Down

0 comments on commit c4aff75

Please sign in to comment.