采购/委外调整
This commit is contained in:
@@ -90,7 +90,7 @@ namespace Tnb.WarehouseMgr
|
||||
|
||||
if (qcRes != (wmsOutsourceD.qc_res ?? ""))
|
||||
{
|
||||
BasMaterial basMaterial = await _db.Queryable<BasMaterial>().Where(r => r.id == wmsOutsourceD.matcode_id).FirstAsync();
|
||||
BasMaterial basMaterial = await _db.Queryable<BasMaterial>().Where(r => r.code == wmsOutsourceD.matcode).FirstAsync();
|
||||
WmsPurchaseQcrecord wmsPurchaseQcrecord = new WmsPurchaseQcrecord();
|
||||
wmsPurchaseQcrecord.create_id = create_id;
|
||||
wmsPurchaseQcrecord.create_time = DateTime.Now;
|
||||
@@ -122,7 +122,7 @@ namespace Tnb.WarehouseMgr
|
||||
// 托盘对应入库单
|
||||
List<WmsInstockH> instock_mains = await _db.Queryable<WmsInstockH>().Where(x => x.source_id == wmsOutsourceD.fk_wms_outsource_order_id).ToListAsync();
|
||||
|
||||
List<WmsInstockD> allInstockDetails = await _db.Queryable<WmsInstockD>().Where(it => instock_mains.Select(r => r.id).Contains(it.bill_id) && it.material_id == wmsOutsourceD.matcode_id && it.code_batch == wmsOutsourceD.code_batch).OrderBy(x=>x.id).ToListAsync();
|
||||
List<WmsInstockD> allInstockDetails = await _db.Queryable<WmsInstockD>().Where(it => instock_mains.Select(r => r.id).Contains(it.bill_id) && it.material_code == wmsOutsourceD.matcode && it.code_batch == wmsOutsourceD.code_batch).OrderBy(x=>x.id).ToListAsync();
|
||||
|
||||
List<Dictionary<string, object>> requestData = new List<Dictionary<string, object>>();
|
||||
List<string> carryIds = instock_mains.Select(x => x.carry_id).ToList();
|
||||
|
||||
Reference in New Issue
Block a user