diff --git a/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs b/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs index 850cc30c1..f8495e650 100644 --- a/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs @@ -864,7 +864,7 @@ namespace IRaCIS.Core.Application.Services if (sysDataList.Any(y => y.Id == item.Id)) { - item.AttachmentCount = sysDataList.Where(y => y.Id == item.Id).Select(x => x.SystemDocumentAttachmentList.Count()).FirstOrDefault(); + item.AttachmentCount = sysDataList.Where(y => y.Id == item.Id).Select(x => x.SystemDocumentAttachmentList.Where(z=>!z.OffLine).Count()).FirstOrDefault(); } if (item.IsSystemDoc)