Commit 8467aa93 by guanzhenshan

解决预收款明细如果记录为0报错的问题

parent 7bc50a6c
......@@ -2002,7 +2002,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
cost_tail = countM.cost_tail.ToString("N2"),
cost_first = countM.cost_first.ToString("N2"),
profit_total = countM.profit_total.ToString("N2"),
profit_rate = ((countM.profit_total / countM.cost_total) *100).ToString("N2")
profit_rate = countM.cost_total>0?((countM.profit_total / countM.cost_total) *100).ToString("N2"):"0"
}
});
}
......
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