选择多账户时的找零金额不能大于0

This commit is contained in:
季圣华
2017-11-06 20:43:17 +08:00
parent 790fae847e
commit c2cd25205d

View File

@@ -1927,6 +1927,10 @@
$.messager.alert('提示','请选择付款账户!','warning');
return;
}
if($("#AccountId").val() == "many" && $("#backAmount").val()-0 >0) {
$.messager.alert('提示', '选择多账户时的找零金额不能大于0', 'warning');
return;
}
}
else if(listTitle === "销售退货列表"){
if(!$('#OrganId').combobox('getValue')){
@@ -1953,6 +1957,10 @@
$.messager.alert('提示','找零金额不能小于0','warning');
return;
}
if($("#AccountId").val() == "many" && $("#backAmount").val()-0 >0) {
$.messager.alert('提示', '选择多账户时的找零金额不能大于0', 'warning');
return;
}
}
else if(listTitle === "销售出库列表"){
if(!$('#OrganId').combobox('getValue')){