Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
59a18929
Commit
59a18929
authored
Sep 04, 2017
by
季圣华
Browse files
零售找零金额不能小于0
parent
c7255416
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/js/pages/materials/in_out.js
View file @
59a18929
...
@@ -1639,8 +1639,14 @@
...
@@ -1639,8 +1639,14 @@
//零售单据展示数据
//零售单据展示数据
if(listSubType == "零售" || listSubType == "零售退货"){
if(listSubType == "零售" || listSubType == "零售退货"){
var changeAccount = $("#depotHeadDlgShow .change-amount-show").text() -0;
var changeAccount = $("#depotHeadDlgShow .change-amount-show").text() -0;
$("#depotHeadDlgShow .get-amount-show").text((manyAccountMoney).toFixed(2));
if(manyAccountMoney!==0){
$("#depotHeadDlgShow .back-amount-show").text((manyAccountMoney -changeAccount).toFixed(2));
$("#depotHeadDlgShow .get-amount-show").text((manyAccountMoney).toFixed(2));
$("#depotHeadDlgShow .back-amount-show").text((manyAccountMoney -changeAccount).toFixed(2));
}
else {
$("#depotHeadDlgShow .get-amount-show").text((changeAccount).toFixed(2));
$("#depotHeadDlgShow .back-amount-show").text(0);
}
}
}
if(listSubType === "销售" || listSubType === "销售退货"){
if(listSubType === "销售" || listSubType === "销售退货"){
if(depotHeadInfo[18]){
if(depotHeadInfo[18]){
...
@@ -1793,6 +1799,10 @@
...
@@ -1793,6 +1799,10 @@
$.messager.alert('提示','请选择收款账户!','warning');
$.messager.alert('提示','请选择收款账户!','warning');
return;
return;
}
}
if($("#backAmount").val()-0 <0){
$.messager.alert('提示','找零金额不能小于0!','warning');
return;
}
}
}
else if(listTitle === "销售出库列表"){
else if(listTitle === "销售出库列表"){
if(!$('#OrganId').combobox('getValue')){
if(!$('#OrganId').combobox('getValue')){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment