Commit a033fc9f by lizefeng

预计入库,可用库存,预计缺货数量 均显示最近7天的数值

parent e44994cd
......@@ -147,6 +147,21 @@ namespace AutoTurnOver.Models
/// </summary>
public string sales_details { get; set; }
/// <summary>
/// 七天实际入库+预测入库
/// </summary>
public string inbound_details { get; set; }
/// <summary>
/// 七天实际库存+预测库存
/// </summary>
public string inventory_details { get; set; }
/// <summary>
/// 七天实际断货+预测断货
/// </summary>
public string short_supply_details { get; set; }
}
public class Condition_AutoTurnOver
......
......@@ -44,9 +44,9 @@ namespace AutoTurnOver.Services
list.Add(sales != null ? sales.sales_details : "[]");
//list.Add(buyputin != null ? buyputin.details : "[]");
//list.Add(allotputin != null ? allotputin.details : "[]");
list.Add(putin != null ? putin.details : "[]");
list.Add(inventory != null ? inventory.details : "[]");
list.Add(shortsupply != null ? shortsupply.details : "[]");
list.Add(sales != null ? sales.inbound_details : "[]");
list.Add(sales != null ? sales.inventory_details : "[]");
list.Add(sales != null ? sales.short_supply_details : "[]");
// 计算涉及的总天数
int count = list.Max(s => s.Split(',').Length);
......
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