Commit 4b35172e by 泽锋 李

调拨在途明细表,新增暂存字段

parent 89b35a6e
...@@ -4075,14 +4075,13 @@ and t3.hq_type='fba仓' and t2.expectarrivaltime >='1991-01-01'").ToList(); ...@@ -4075,14 +4075,13 @@ and t3.hq_type='fba仓' and t2.expectarrivaltime >='1991-01-01'").ToList();
t1.purchase_code as 'purchase_id', t1.purchase_code as 'purchase_id',
t1.sku as 'bailun_sku', t1.sku as 'bailun_sku',
t1.target_ware_no as 'warehouse_code' , t1.target_ware_no as 'warehouse_code' ,
t1.product_num as 'count', (case when t1.create_state=0 then t1.product_num else t1.temp_delivery_count end) as 'count',
'' as 'transfer_order_id', '' as 'transfer_order_id',
'1991-01-01' as 'expectarrivaltime' '1991-01-01' as 'expectarrivaltime'
from dc_base_trans_temp_schedule as t1 from dc_base_trans_temp_schedule as t1
left join dc_base_warehouse as t2 on t1.target_ware_no = t2.warehouse_code left join dc_base_warehouse as t2 on t1.target_ware_no = t2.warehouse_code
where t1.product_num>0 and t1.is_delete=0 and t1.is_temp_data=1 and t1.is_exception=0 and t2.hq_type='fba仓' where t1.is_delete=0 and t1.is_temp_data=1 and t1.is_exception=0 and t2.hq_type='fba仓' and t1.create_state in (0,1)
").ToList();
").ToList();
// 查询已经有调拨的采购单 // 查询已经有调拨的采购单
foreach (var item in temp_p_datas.GroupBy(s=>s.purchase_id)) foreach (var item in temp_p_datas.GroupBy(s=>s.purchase_id))
......
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