Commit 13932441 authored by 季圣华's avatar 季圣华
Browse files

修复本次欠款展示的bug

parent a3bde113
...@@ -1475,6 +1475,8 @@ ...@@ -1475,6 +1475,8 @@
var debt = 0; var debt = 0;
if(res.othermoney){ if(res.othermoney){
debt = (res.discountlastmoney+res.othermoney-res.changeamount).toFixed(2); debt = (res.discountlastmoney+res.othermoney-res.changeamount).toFixed(2);
} else {
debt = (res.discountlastmoney-res.changeamount).toFixed(2);
} }
$("#DebtShow").text(debt); $("#DebtShow").text(debt);
$("#AccountDayShow").text(res.accountday); //结算天数 $("#AccountDayShow").text(res.accountday); //结算天数
......
Supports Markdown
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