Commit 9af79609 by 江和松

采购收票选择结算单金额校验修改为与含税金额比对

parent e16de89e
......@@ -116,15 +116,15 @@ function btnSaveFunc(btnNode, gridNode) {
}
let thisSettlementAmount = item['thisSettlementAmount'];
let amount = item['amount'];
let taxIncludeAmount = item['taxIncludeAmount'];
let invoiceRemainingAmount = item['invoiceRemainingAmount'];
if (!isNumber(thisSettlementAmount) && !isPositiveNumber(thisSettlementAmount)) {
message("勾选的第" + (index + 1) + "行发票总额必须是大于0的数字");
flag = false;
return false;
}
if (parseFloat(thisSettlementAmount) > parseFloat(amount)) {
message("第" + (index + 1) + "行发票总额不能大于收货金额");
if (parseFloat(thisSettlementAmount) > parseFloat(taxIncludeAmount)) {
message("第" + (index + 1) + "行发票总额不能大于含税金额");
flag = 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