Commit 6a2e9771 authored by agping's avatar agping

多收金额 小于0

parent 3d4b6092
......@@ -187,6 +187,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
};
$("#getPrice").text((Math.floor(((receiv.payment_details_price-0)*persent_liu )*100)/100).toFixed(2)+ "元");
$("#morePrice").text((Math.floor((receiv.payment_details_money - ((receiv.payment_details_price-0)*persent_liu) + receiv.receivedMoneyLiu )*100)/100).toFixed(2) + "元");
if($("#morePrice").html()*1 < 0){
$("#morePrice").html(0)
}
});
//图片删除,已有的则调用接口删除
......@@ -1410,6 +1413,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//保留两位小数
doc.find("#getPrice").text((Math.floor(((data.price-0)*persent )*100)/100).toFixed(2)+ "元");
doc.find("#morePrice").text((Math.floor((data.money - ((data.price-0)*persent) + receiv.receivedMoneyLiu )*100)/100).toFixed(2) + "元");
if($("#morePrice").html()*1 < 0){
$("#morePrice").html(0)
}
$("#person").text(data.current_agent_name);
$("#belongT").text(data.store_name);
doc.find("#payType").val(data.pay_type);
......
Markdown is supported
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