人员产量统计表 注塑质量不合格倒扣
This commit is contained in:
@@ -2462,9 +2462,26 @@ namespace Tnb.ProductionMgr
|
||||
|
||||
await db.Updateable<PrdReport>()
|
||||
.SetColumns(x => x.check_result == input.check_result)
|
||||
.SetColumns(x => x.pqty == input.pqty)
|
||||
.SetColumns(x => x.rqty == input.rqty)
|
||||
.Where(x => x.id == input.report_id)
|
||||
.ExecuteCommandAsync();
|
||||
|
||||
if (prdMo.mo_type == DictConst.PrdMoTypeZS && input.rqty>0)
|
||||
{
|
||||
await _db.Updateable<PrdMoTask>()
|
||||
.SetColumns(x => x.reported_work_qty == x.reported_work_qty - input.rqty)
|
||||
.SetColumns(x => x.scrap_qty == x.scrap_qty + input.rqty)
|
||||
.Where(x => x.id == prdMoTask.id)
|
||||
.ExecuteCommandAsync();
|
||||
|
||||
await _db.Updateable<PrdMo>()
|
||||
.SetColumns(x => x.reported_work_qty == x.reported_work_qty - input.rqty)
|
||||
.SetColumns(x => x.scrap_qty == x.scrap_qty + input.rqty)
|
||||
.Where(x => x.id == prdMoTask.mo_id)
|
||||
.ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
|
||||
BindCarryCodeInput bindCarryCodeInput = new BindCarryCodeInput();
|
||||
bindCarryCodeInput.carry_id = wmsCarryH.id;
|
||||
@@ -2486,12 +2503,6 @@ namespace Tnb.ProductionMgr
|
||||
throw Oops.Bah(result1.msg);
|
||||
}
|
||||
|
||||
await _db.Updateable<PrdReport>()
|
||||
.SetColumns(x => x.pqty == input.pqty)
|
||||
.SetColumns(x => x.rqty == input.rqty)
|
||||
.Where(x => x.id == report.id)
|
||||
.ExecuteCommandAsync();
|
||||
|
||||
WmsPrdInstockInput wmsPrdInstockInput = new WmsPrdInstockInput();
|
||||
wmsPrdInstockInput.prd_bill_code = prdMo.mo_code;
|
||||
wmsPrdInstockInput.material_id = prdMoTask.material_id;
|
||||
|
||||
Reference in New Issue
Block a user