去掉单据明细里面显示的null

This commit is contained in:
季圣华
2018-12-22 22:46:43 +08:00
parent 331cc2718c
commit 4150426518

View File

@@ -224,8 +224,8 @@
$("#bill .DiscountLastMoneyShow").text(data.discountlastmoney); $("#bill .DiscountLastMoneyShow").text(data.discountlastmoney);
$("#bill .ChangeAmountShow").text(data.changeamount); $("#bill .ChangeAmountShow").text(data.changeamount);
$("#bill .DebtShow").text((data.discountlastmoney-data.changeamount).toFixed(2)); $("#bill .DebtShow").text((data.discountlastmoney-data.changeamount).toFixed(2));
$("#bill .OtherMoneyShow").text(data.othermoney); $("#bill .OtherMoneyShow").text(data.othermoney==null ? "": data.othermoney);
$("#bill .AccountDayShow").text(data.accountday); //结算天数 $("#bill .AccountDayShow").text(data.accountday==null ? "": data.accountday); //结算天数
var otherMoney = data.othermoney + ""; var otherMoney = data.othermoney + "";
var otherMoneyList = data.othermoneylist + ""; var otherMoneyList = data.othermoneylist + "";
var otherMoneyItem = data.othermoneyitem + ""; var otherMoneyItem = data.othermoneyitem + "";