Commit 489cdb7e by 泽锋 李

fix

parent 2eee03fc
......@@ -601,7 +601,8 @@ set t1.`fixed_unit_price` = t3.unit_price,
t1.`fixed_turnover_inbound` =t2.turnover_inbound,
t1.`fixed_quantity_inventory`=t2.quantity_inventory ,
t1.`fixed_moq`= t2.quantity_minimum_order,
t1.`fixed_stock_up_sales`=t2.stock_up_days ,
t1.`fixed_stock_up_days`=t2.stock_up_days ,
t1.`fixed_stock_up_sales`=t2.stock_up_sales ,
t1.`fixed_dc_auto_sales_forecast_title` = t2.dc_auto_sales_forecast_title
where t1.main_id=@advId and t1.bailun_sku = t2.bailun_sku and t1.warehouse_code =t2.warehouse_code
and t1.bailun_sku =t3.bailun_sku
......@@ -615,12 +616,12 @@ set t1.`fixed_unit_price` = t3.unit_price,
{
try
{
item.fixed_stock_up_sales = Math.Max((int)(item.fixed_stock_up_sales??0M)-1,0);
item.fixed_stock_up_days = Math.Max((int)(item.fixed_stock_up_days ?? 0M)-1,0);
item.fixed_turnover_date_sales = (int)item.fixed_sales_explain_details.ToObj<List<decimal>>()[item.turnover_days + 7 - 1];
_connection.Execute("update dc_auto_purchase_advise_detailed set fixed_turnover_date_sales=@fixed_turnover_date_sales,fixed_stock_up_sales=@fixed_stock_up_sales where id=@id ", new {
_connection.Execute("update dc_auto_purchase_advise_detailed set fixed_turnover_date_sales=@fixed_turnover_date_sales,fixed_stock_up_days=@fixed_stock_up_days where id=@id ", new {
id= item.id,
fixed_turnover_date_sales = item.fixed_turnover_date_sales,
fixed_stock_up_sales = item.fixed_stock_up_sales
fixed_stock_up_days = item.fixed_stock_up_days
});
}
catch (Exception)
......
......@@ -272,9 +272,10 @@ namespace AutoTurnOver.Models
/// </summary>
public decimal? fixed_moq { get; set; }
/// <summary>
/// 多备天数
/// 多备销量
/// </summary>
public decimal? fixed_stock_up_sales { get; set; }
public decimal? fixed_stock_up_days { get; set; }
/// <summary>
/// 销量公式
......
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