出入库回退加单据编号

This commit is contained in:
tongfei
2023-11-11 17:55:02 +08:00
parent 9890a8589d
commit 20bb9d96e3
3 changed files with 44 additions and 1 deletions

View File

@@ -106,6 +106,12 @@ namespace WMS.Web.Repositories
{
await _context.BackRecord.AddAsync(entity);
await _context.SaveChangesAsync();
if (string.IsNullOrEmpty(entity.BillNo))
{
entity.GenerateNo();
await _context.SaveChangesAsync();
}
if (_transaction != null)
_transaction.Commit();
return entity;