修改出入库业务更新判断
This commit is contained in:
@@ -151,7 +151,7 @@ namespace Tnb.WarehouseMgr
|
||||
barCode.codeqty = detail.pr_qty!.Value;
|
||||
barCode.unit_id = detail.unit_id;
|
||||
barCode.is_lock = 0;
|
||||
barCode.is_end = "0";
|
||||
barCode.is_end = 0;
|
||||
barCode.require_id = detail.bill_id;
|
||||
barCode.require_code = _dicBillCodes.ContainsKey(detail.bill_id) ? _dicBillCodes[detail.bill_id]?.ToString() : "";
|
||||
barCode.create_id = _userManager.UserId;
|
||||
@@ -199,6 +199,10 @@ namespace Tnb.WarehouseMgr
|
||||
await _db.Updateable<WmsInstockH>().SetColumns(it => new WmsInstockH { status = WmsWareHouseConst.BILLSTATUS_COMPLETE_ID }).Where(it => it.id == input.requireId).ExecuteCommandAsync();
|
||||
//如果是自动单据,需要回更上层系统
|
||||
}
|
||||
else {
|
||||
//任务没有结束,更新状态为工作中
|
||||
await _db.Updateable<WmsInstockH>().SetColumns(it => new WmsInstockH { status = WmsWareHouseConst.BILLSTATUS_ON_ID }).Where(it => it.id == input.requireId).ExecuteCommandAsync();
|
||||
}
|
||||
}
|
||||
|
||||
await _db.Ado.CommitTranAsync();
|
||||
|
||||
Reference in New Issue
Block a user