Commit e2707c45 by 泽锋 李

fix

parent d235a6db
...@@ -833,7 +833,7 @@ namespace AutoTurnOver.Models ...@@ -833,7 +833,7 @@ namespace AutoTurnOver.Models
try try
{ {
var details = JsonConvert.DeserializeObject <List<decimal>>(sales_details).Select(s => (int)Math.Ceiling(s)).ToList(); var details = JsonConvert.DeserializeObject <List<decimal>>(sales_details).Select(s => (int)Math.Ceiling(s)).ToList();
return details.Where((s, index) => index>=7 && index<= (stock_use_days+7-1) ).Sum().ToString(); return details.Where((s, index) => index>=7 && index<= (full_stock_use_days + 7-1) ).Sum().ToString();
} }
catch (Exception ex) catch (Exception ex)
{ {
......
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