自制单据行号优化

This commit is contained in:
2024-10-08 10:57:30 +08:00
parent 7152324b26
commit f5c0e0e41f
6 changed files with 8 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ namespace Tnb.WarehouseMgr
.Where(it => it.id == input.wmsDistaskH.source_id).ExecuteCommandHasChangeAsync();
WmsInstockH instock = await _db.Queryable<WmsInstockH>().SingleAsync(x => x.id == input.requireId);
List<WmsInstockD> allInstockDetails = await _db.Queryable<WmsInstockD>().Where(it => it.bill_id == input.requireId).ToListAsync();
List<WmsInstockD> allInstockDetails = await _db.Queryable<WmsInstockD>().Where(it => it.bill_id == input.requireId).OrderBy(x=>x.id).ToListAsync();
string rawmatTransferinstockHId = wmsRawmatTransferinstockD?.bill_id ?? "";