南骏 池
2025-05-12 c418ccde908642c73f86ff43cc999be835a1e77d
service/Warehouse/MesInvItemInCDetailsManager.cs
@@ -64,10 +64,10 @@
        if (inventoryDetails == null)
            throw new Exception("此条码找不到对应收货单明细!");
        if (string.IsNullOrEmpty(inventoryDetails.CheckRes) || inventoryDetails.CheckRes != "合格")
        {
            throw new Exception("该条码对应的收料单检验不合格或未检验!");
        }
        //if (string.IsNullOrEmpty(inventoryDetails.CheckRes) || inventoryDetails.CheckRes != "Y:合格")
        //{
        //    throw new Exception("该条码对应的收料单检验不合格或未检验!");
        //}
        var depotCode = Db.Queryable<MesDepotSections>()
            .Where(it => it.DepotSectionCode == sectionCode)
@@ -855,6 +855,11 @@
            if (mesInvItemInCDetails == null)
                throw new Exception("物料入库条码明细不存在"); // 抛出异常以供前台处理
            // 创建 插入日志
            var logService = new LogService();
            var LogMsg = "【PDA】采购入库。条码【" + entity.barcode + "】 入库单号【" + cBillNo + "】";
            logService.CreateLog(db, entity.userName, inventory.Guid.ToString(), "MES_INV_ITEM_ARN", LogMsg, inventory.BillNo);
            return 1;
        });