This commit is contained in:
alex
2023-06-29 09:22:19 +08:00
parent fd7b2deaad
commit 835e16a47f

View File

@@ -412,10 +412,9 @@ namespace Tnb.WarehouseMgr
}
if (dicUpdate.Count > 0)
{
//var dicCarryCodes = carryCodes.FindAll(x => dicUpdate.Keys.Contains(x.barcode)).GroupBy(g => g.barcode).ToDictionary(x => x.Key, x => x.FirstOrDefault());
foreach (var pair in dicUpdate)
{
WmsCarryCode carryCode = carryCodes.Find(x => x.barcode == pair.Key);
WmsCarryCode? carryCode = carryCodes.Find(x => x.barcode == pair.Key);
if (carryCode != null)
{
carryCode.codeqty = pair.Value;