Commit 53ce6053 by 泽锋 李

fix

parent a4cbb1d1
......@@ -325,6 +325,20 @@ namespace AutoTurnOver.Models
public class dc_auto_purchase_advise_detailed_dto : dc_auto_purchase_advise_detailed
{
public decimal quantity_actual_push { get
{
if (ispush == 1)
{
return quantity_actual;
}
else
{
return 0;
}
} }
public decimal? quantity_actual_amount { get {
return quantity_actual_push * fixed_unit_price;
} }
/// <summary>
/// 海外仓入库天数
/// </summary>
......
......@@ -102,7 +102,8 @@ namespace AutoTurnOver.Services
string[] cols = new string[] { "初始建议数", "系统建议数", "采购数量", "是否已推送","jit备货类型", "时间", "sku", "产品名称", "产品14日日均", "仓库编码","仓库名称","源仓库",
"内部商品编码", "商品建议采购", "商品14日日均", "商品moq", "日均加权销量","安全库存", "缺货","实时缺货", "调拨在途", "调拨单在途", "调拨在途(采购临时数据)", "调拨在途(暂存)", "采购在途", "库存数",
"采购金额", "供应链长度", "供应商名称", "采购类型","采购员","突增关注","待发货百伦单号","7日日均","14日日均","30日日均","海外仓入库天数",
"采购单价" ,"历史7天日均","历史14日均","历史30日均","加权日均","安全库存","今日实际缺货","供应链累积销量","供应链到货当天的销量","预测销量","累积入库数量","实际库存","moq","多备天数","预测销量公式"
"采购单价" ,"历史7天日均","历史14日均","历史30日均","加权日均","安全库存","今日实际缺货","供应链累积销量","供应链到货当天的销量"
,"预测销量","累积入库数量","实际库存","moq","多备天数","预测销量配置","实际推送下单数量","总下单金额"
};
foreach (var item in cols)
{
......@@ -112,6 +113,24 @@ namespace AutoTurnOver.Services
foreach (var itemData in list)
{
DataRow row = table.NewRow();
row["采购单价"] = itemData.fixed_unit_price;
row["历史7天日均"] = itemData.fixed_history_sevenday_sales;
row["历史14日均"] = itemData.fixed_history_fourteenday_sales;
row["历史30日均"] = itemData.fixed_history_thirtyday_sales;
row["加权日均"] = itemData.fixed_daily_weighted_sales;
row["安全库存"] = itemData.fixed_quantity_safe_inventory;
row["今日实际缺货"] = itemData.fixed_quantity_out_stock;
row["供应链累积销量"] = itemData.fixed_turnover_sales;
row["供应链到货当天的销量"] = itemData.fixed_turnover_date_sales;
row["预测销量"] = itemData.fixed_sales_explain_details;
row["累积入库数量"] = itemData.fixed_turnover_inbound;
row["实际库存"] = itemData.fixed_quantity_inventory;
row["moq"] = itemData.fixed_moq;
row["多备天数"] = itemData.fixed_stock_up_sales;
row["预测销量配置"] = itemData.fixed_dc_auto_sales_forecast_title;
row["实际推送下单数量"] = itemData.quantity_actual_push;
row["总下单金额"] = itemData.quantity_actual_amount;
row["调拨单在途"] = itemData.quantity_transfer_order;
row["调拨在途(采购临时数据)"] = itemData.quantity_transfer_temp_schedule;
row["调拨在途(暂存)"] = itemData.quantity_transfer_temporary_storage;
......
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