fix customer_surcharge_Rate max 3%

master
luoyang 5 years ago
parent a827171295
commit 937ab0b05a

@ -1805,7 +1805,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
});
return;
}
if (cofig > 2.5 || cofig < parseFloat(Decimal.add($scope.paymentInfo.rate_value, 0.1).toFixed(2))) {
if (cofig > 3 || cofig < parseFloat(Decimal.add($scope.paymentInfo.rate_value, 0.1).toFixed(2))) {
commonDialog.alert({title: 'Error', content: 'Not in the valid range', type: 'error'});
return;
}

@ -1584,7 +1584,7 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload', 'uiBoo
commonDialog.alert({title: 'Error', content: 'Your input is not a number!', type: 'error'});
return;
}
if (cofig > 2 || cofig < parseFloat(Decimal.add($scope.paymentInfo.rate_value, 0.1).toFixed(2))) {
if (cofig > 3 || cofig < parseFloat(Decimal.add($scope.paymentInfo.rate_value, 0.1).toFixed(2))) {
commonDialog.alert({title: 'Error', content: 'Not in the valid range', type: 'error'});
return;
}

Loading…
Cancel
Save