服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-09-23 2fbc217eb8bfcf62210e829e0847be3542c2e2d3
wms - 无工单入库,如果扫描外箱的不能更新数量
已修改1个文件
15 ■■■■ 文件已修改
Tiger.Business.WMS/Transaction/OtherInLocation.cs 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Tiger.Business.WMS/Transaction/OtherInLocation.cs
@@ -168,17 +168,28 @@
                            res.Data.History.Add(his);
                            res.Data.Packages.Add(ItemPkgs);
                        }
                        else if (res.Data.Items.Count == 1)
                        {
                            res.Data.Items.First().QTY = res.Data.Barcode.Qty.ToDecimal();
                            res.Data.Items.First().ERP_WH = WarehouseCode;
                            res.Data.Items.First().AUTH_ORG = input.AuthOption.CurOrg;
                            res.Data.Packages.First().QTY = res.Data.Barcode.Qty.ToDecimal();
                            res.Data.Packages.First().ERP_WH = WarehouseCode;
                            res.Data.Packages.First().AUTH_ORG = input.AuthOption.CurOrg;
                        }
                        //如果扫描外箱的不能更新数量 2024-09-23 Ben Lin
                        else
                        {
                            foreach (var item in res.Data.Items)
                            {
                                item.QTY = res.Data.Barcode.Qty.ToDecimal();
                                //item.QTY = res.Data.Barcode.Qty.ToDecimal();
                                item.ERP_WH = WarehouseCode;
                                item.AUTH_ORG = input.AuthOption.CurOrg;
                            }
                            foreach (var item in res.Data.Packages)
                            {
                                item.QTY = res.Data.Barcode.Qty.ToDecimal();
                                //item.QTY = res.Data.Barcode.Qty.ToDecimal();
                                item.ERP_WH = WarehouseCode;
                                item.AUTH_ORG = input.AuthOption.CurOrg;
                            }