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; 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'}); commonDialog.alert({title: 'Error', content: 'Not in the valid range', type: 'error'});
return; 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'}); commonDialog.alert({title: 'Error', content: 'Your input is not a number!', type: 'error'});
return; 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'}); commonDialog.alert({title: 'Error', content: 'Not in the valid range', type: 'error'});
return; return;
} }

Loading…
Cancel
Save