盘点单编号生成

This commit is contained in:
18942506660
2023-10-30 15:53:38 +08:00
parent fef6a72439
commit c47dcab431
2 changed files with 27 additions and 5 deletions

View File

@@ -52,11 +52,11 @@ namespace WMS.Web.Repositories
await _context.TakeStock.AddAsync(entity);
await _context.SaveChangesAsync();
//if (string.IsNullOrEmpty(entity.OutSourcFeedNo))
//{
// entity.GenerateNo();
// await _context.SaveChangesAsync();
//}
if (string.IsNullOrEmpty(entity.BillNo))
{
entity.GenerateNo();
await _context.SaveChangesAsync();
}
if (_transaction != null)
_transaction.Commit();