Commit eefe7880 by 泽锋 李

fix

parent d13be784
...@@ -352,9 +352,17 @@ namespace AutoTurnOver.Models ...@@ -352,9 +352,17 @@ namespace AutoTurnOver.Models
/// 库存可用天数 /// 库存可用天数
/// </summary> /// </summary>
public int stock_available_days { get { public int stock_available_days { get {
return (int)Math.Ceiling(( if (forecast_daily_weighted_sales <= 0)
(quantity_purchase??0)+(quantity_transfer??0)+(usable_stock??0)+Math.Max(0, ocean_purchase) {
) / forecast_daily_weighted_sales); return 0;
}
else
{
return (int)Math.Ceiling((
(quantity_purchase ?? 0) + (quantity_transfer ?? 0) + (usable_stock ?? 0) + Math.Max(0, ocean_purchase)
) / forecast_daily_weighted_sales);
}
} } } }
public DateTime stock_available_date { get public DateTime stock_available_date { get
......
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