qr_decimal_fix
This commit is contained in:
parent
aa1cf12d93
commit
28b17a28be
2
.gitignore
vendored
2
.gitignore
vendored
@ -15,3 +15,5 @@
|
|||||||
local.properties
|
local.properties
|
||||||
/.idea
|
/.idea
|
||||||
/app/release
|
/app/release
|
||||||
|
/app/sit/release
|
||||||
|
/app/uat/release
|
||||||
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user