This commit is contained in:
alex
2023-06-21 15:15:37 +08:00
parent fcb3a321ae
commit 3817c5ada4

View File

@@ -228,13 +228,15 @@ namespace Tnb.WarehouseMgr
var b = items.Find(x => x.material_code == materialCode && x.code_batch == codeBatch);
if (b != null)
{
b.id = SnowflakeIdHelper.NextId();
b.bill_d_id = instockDetails.Find(x => x.material_code == materialCode && x.code_batch == codeBatch)?.id!;
b.barcode = jo.Value<string>(nameof(WmsInstockCode.barcode))!;
b.barcode_qty = jo.Value<int>(nameof(WmsInstockCode.barcode_qty));
instockCOdes.Add(b);
}
}
}
var orgId= _userManager.User.OrganizeId;
var orgId = _userManager.User.OrganizeId;
await _db.Insertable(carryCodes).ExecuteCommandAsync();
await _db.Insertable(instockCOdes).CallEntityMethod(it => it.Create(orgId)).ExecuteCommandAsync();
await _wareHouseService.GenInStockTaskHandleAfter(preTaskUpInput,