|
@ -104,7 +104,6 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Tenure |
|
|
// Tenure |
|
|
binding.spTenure.setOnItemClickListener { _, _, position, _ -> |
|
|
binding.spTenure.setOnItemClickListener { _, _, position, _ -> |
|
|
removeError(binding.tlInterestTenure) |
|
|
removeError(binding.tlInterestTenure) |
|
@ -134,7 +133,6 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
Log.e("DeductTax", "-->" + binding.rbDeductTax.isChecked) |
|
|
Log.e("DeductTax", "-->" + binding.rbDeductTax.isChecked) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Next Button |
|
|
// Next Button |
|
|
binding.btnNext.setOnClickListener { |
|
|
binding.btnNext.setOnClickListener { |
|
|
if (validation()) { |
|
|
if (validation()) { |
|
@ -170,6 +168,7 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
|
|
|
|
|
|
minAmountApi() |
|
|
minAmountApi() |
|
|
interestPayoutApi() |
|
|
interestPayoutApi() |
|
|
|
|
|
|
|
|
return root |
|
|
return root |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -224,7 +223,6 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun minAmountApi() { |
|
|
private fun minAmountApi() { |
|
|
val getCodeRequest = GetCodeRequest() |
|
|
val getCodeRequest = GetCodeRequest() |
|
|
getCodeRequest.ProductName = getString(R.string.bajajFD) |
|
|
getCodeRequest.ProductName = getString(R.string.bajajFD) |
|
@ -303,7 +301,6 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun setUpRecyclerView() { |
|
|
private fun setUpRecyclerView() { |
|
|
|
|
|
|
|
|
recyclerViewDropDownAdapter = HorizontalRecyclerViewAdapter( |
|
|
recyclerViewDropDownAdapter = HorizontalRecyclerViewAdapter( |
|
@ -323,7 +320,6 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
binding.rvTenure.adapter = recyclerViewDropDownAdapter |
|
|
binding.rvTenure.adapter = recyclerViewDropDownAdapter |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun maturityAmountApi(tenure: Int, interest: Double) { |
|
|
private fun maturityAmountApi(tenure: Int, interest: Double) { |
|
|
if (Common.isNetworkAvailable(activity as BajajFdMainActivity)) { |
|
|
if (Common.isNetworkAvailable(activity as BajajFdMainActivity)) { |
|
|
if (binding.edtAmount.text.toString().length >= 4 && interest != 0.0 && tenure != 0) { |
|
|
if (binding.edtAmount.text.toString().length >= 4 && interest != 0.0 && tenure != 0) { |
|
@ -372,7 +368,6 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun validation(): Boolean { |
|
|
private fun validation(): Boolean { |
|
|
return if (binding.edtAmount.text.toString().isEmpty()) { |
|
|
return if (binding.edtAmount.text.toString().isEmpty()) { |
|
|
commonErrorMethod( |
|
|
commonErrorMethod( |
|
@ -489,5 +484,4 @@ class StepOneBajajFDFragment : Fragment() { |
|
|
super.onDestroyView() |
|
|
super.onDestroyView() |
|
|
_binding = null |
|
|
_binding = null |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |