Commit 8860b951 by liuyang

优化销售开票选择任务添加金额校验

parent ae3bab55
...@@ -87,7 +87,7 @@ function saveFunc() { ...@@ -87,7 +87,7 @@ function saveFunc() {
flag = false; flag = false;
return false; return false;
} }
if (!isNumber(thisAmount) && !isPositiveNumber(thisAmount)) { if (!isNumber(thisAmount) && thisAmount <= 0) {
message("勾选的第" + (index + 1) + "行本次收票金额必须是大于0的数字"); message("勾选的第" + (index + 1) + "行本次收票金额必须是大于0的数字");
flag = false; flag = false;
return false; return false;
......
...@@ -63,7 +63,7 @@ function saveFunc() { ...@@ -63,7 +63,7 @@ function saveFunc() {
flag = false; flag = false;
return false; return false;
} }
if (!isNumber(thisAmount) && !isPositiveNumber(thisAmount)) { if (!isNumber(thisAmount) && thisAmount <= 0) {
message("勾选的第" + (index + 1) + "行本次收票金额必须是大于0的数字"); message("勾选的第" + (index + 1) + "行本次收票金额必须是大于0的数字");
flag = false; flag = false;
return false; return false;
......
...@@ -63,7 +63,7 @@ function saveFunc() { ...@@ -63,7 +63,7 @@ function saveFunc() {
flag = false; flag = false;
return false; return false;
} }
if (!isNumber(thisAmount) && !isPositiveNumber(thisAmount)) { if (!isNumber(thisAmount) && thisAmount <= 0) {
message("勾选的第" + (index + 1) + "行本次收票金额必须是大于0的数字"); message("勾选的第" + (index + 1) + "行本次收票金额必须是大于0的数字");
flag = false; flag = false;
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment