qr_decimal_fix

This commit is contained in:
MooN 2025-12-22 16:07:35 +06:30
parent aa1cf12d93
commit 28b17a28be
2 changed files with 13 additions and 1 deletions

2
.gitignore vendored
View File

@ -15,3 +15,5 @@
local.properties local.properties
/.idea /.idea
/app/release /app/release
/app/sit/release
/app/uat/release

View File

@ -221,7 +221,17 @@ public class InputAmountFragment extends DataBindingFragment implements DataBind
if(isInputValid(Objects.requireNonNull(inputAmountViewModel.inputAmountView.getValue()))){ if(isInputValid(Objects.requireNonNull(inputAmountViewModel.inputAmountView.getValue()))){
inputAmountViewModel.invalidAmountMsg.setValue(""); inputAmountViewModel.invalidAmountMsg.setValue("");
boolean decimalEnabled = SystemParamsOperation.getInstance().getDecimalEnable(); // boolean decimalEnabled = SystemParamsOperation.getInstance().getDecimalEnable();
boolean cardDecimalEnabled = SystemParamsOperation.getInstance().getDecimalEnable();
boolean qrDecimalEnabled = SystemParamsOperation.getInstance().isQrDecimalEnable();
boolean decimalEnabled;
if(sharedViewModel.transactionsType.getValue() == TransactionsType.MMQR){
decimalEnabled = qrDecimalEnabled;
}else {
decimalEnabled = cardDecimalEnabled;
}
String inputValue = inputAmountViewModel.inputAmountView.getValue(); String inputValue = inputAmountViewModel.inputAmountView.getValue();
if (decimalEnabled) { if (decimalEnabled) {