优化供应商、客户的累计应收等信息

This commit is contained in:
季圣华
2017-10-08 21:01:06 +08:00
parent cd38395a93
commit e7782312de
5 changed files with 18 additions and 14 deletions

View File

@@ -608,6 +608,8 @@
email : supplierInfo[4].replace("undefined",""),
BeginNeedGet : supplierInfo[5],
BeginNeedPay : supplierInfo[6],
AllNeedGet: "",
AllNeedPay: "",
description : supplierInfo[8].replace("undefined",""),
type : supplierInfo[9],
fax : supplierInfo[10].replace("undefined",""),
@@ -654,12 +656,14 @@
var money = moneyA+moneyB;
var moneyBeginNeedGet = $("#BeginNeedGet").val()-0; //期初应收
var moneyBeginNeedPay = $("#BeginNeedPay").val()-0; //期初应付
money = money + moneyBeginNeedPay - moneyBeginNeedGet;
money = (money + moneyBeginNeedPay - moneyBeginNeedGet).toFixed(2);
if(money>0) {
$("#AllNeedGet").val(""); //累计应收-置空
$("#AllNeedPay").val(money); //累计应付
}
else {
$("#AllNeedGet").val(-money); //累计应收
$("#AllNeedPay").val(""); //累计应付-置空
}
}
},

View File

@@ -1941,7 +1941,7 @@
}
var OrganId = null, ProjectId = null,AllocationProjectId = null;
var ChangeAmount = $.trim($("#ChangeAmount").val());
var ChangeAmount = $.trim($("#ChangeAmount").val())-0;
var TotalPrice = $("#depotHeadFM .datagrid-footer [field='AllPrice'] div").text();
if($('#OrganId').length){
OrganId = $('#OrganId').combobox('getValue');