NTP-39209 | Narayan | Mandate amount formatting (#15094)
This commit is contained in:
committed by
GitHub
parent
2999cc0281
commit
7f46459090
@@ -168,7 +168,7 @@ fun UpiLiteLoadingStates(
|
||||
if (isAboveThreshold) {
|
||||
String.format(
|
||||
stringResource(R.string.np_setting_up_auto_top_upto),
|
||||
enteredAmount,
|
||||
enteredAmount.getDisplayableAmount(),
|
||||
)
|
||||
} else {
|
||||
String.format(stringResource(R.string.np_setting_up_auto_top_up), enteredAmount)
|
||||
@@ -178,12 +178,12 @@ fun UpiLiteLoadingStates(
|
||||
if (isAboveThreshold) {
|
||||
String.format(
|
||||
stringResource(R.string.np_setting_up_auto_top_upto_and_activating),
|
||||
enteredAmount,
|
||||
enteredAmount.getDisplayableAmount(),
|
||||
)
|
||||
} else {
|
||||
String.format(
|
||||
stringResource(R.string.np_setting_up_auto_top_up_and_activating),
|
||||
enteredAmount,
|
||||
enteredAmount.getDisplayableAmount(),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import com.navi.base.utils.orZero
|
||||
import com.navi.common.network.models.RepoResult
|
||||
import com.navi.common.network.models.isSuccess
|
||||
import com.navi.common.network.models.isSuccessWithData
|
||||
import com.navi.common.utils.CommonUtils.getDisplayableAmount
|
||||
import com.navi.common.utils.TemporaryStorageHelper
|
||||
import com.navi.pay.R
|
||||
import com.navi.pay.analytics.NaviPayAnalytics
|
||||
@@ -594,7 +595,7 @@ constructor(
|
||||
uiState =
|
||||
MandateDetailUIStateOfPendingCategory.Loading(
|
||||
titleId = R.string.setting_up_autopay_of_x,
|
||||
titleArgs = mandateEntity?.amount,
|
||||
titleArgs = mandateEntity?.amount?.getDisplayableAmount(),
|
||||
showLoader = true,
|
||||
)
|
||||
)
|
||||
@@ -768,7 +769,7 @@ constructor(
|
||||
uiState =
|
||||
MandateDetailUIStateOfPendingCategory.Loading(
|
||||
titleId = R.string.setting_up_autopay_of_x,
|
||||
titleArgs = mandateEntity.amount,
|
||||
titleArgs = mandateEntity.amount.getDisplayableAmount(),
|
||||
showLoader = true,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -584,7 +584,7 @@ constructor(
|
||||
String.format(
|
||||
locale = Locale.US,
|
||||
"%.2f",
|
||||
notificationData["amount"].toString().toDoubleOrNull() ?: 0.0,
|
||||
notificationData["amount"].toString().toPlainAmount().toDoubleOrNull() ?: 0.0,
|
||||
)
|
||||
} catch (_: Exception) {
|
||||
"0.00"
|
||||
|
||||
Reference in New Issue
Block a user