出库时物料状态控制,采购订单收货单到货数量调整、报表调整
This commit is contained in:
@@ -110,6 +110,14 @@ namespace Tnb.WarehouseMgr
|
||||
wmsPurchaseQcrecord.result = qcRes;
|
||||
|
||||
await _db.Insertable(wmsPurchaseQcrecord).ExecuteCommandAsync();
|
||||
|
||||
List<WmsCarryCode> wmscarrycodes = await _db.Queryable<WmsCarryCode>()
|
||||
.InnerJoin<WmsTempCode>((a, b) => a.barcode == b.barcode)
|
||||
.InnerJoin<WmsPurchaseD>((a, b, c) => c.id == b.require_id)
|
||||
.Where((a, b, c) => c.id == wmsPurchaseD.id).ToListAsync();
|
||||
foreach (var item in wmscarrycodes)
|
||||
item.qc_res = qcRes;
|
||||
await _db.Updateable(wmscarrycodes).UpdateColumns(r => r.qc_res).ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user