diff --git a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs index 6af34842c..d25717b27 100644 --- a/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/AuditDocumentService.cs @@ -601,6 +601,12 @@ public class AuditDocumentService(IRepository _auditDocumentRepos throw new BusinessValidationFailedException(_localizer["AuditDocument_CanNotMove"]); } + await CopyFileOrFolder(inDto); + + await DeleteAuditDocument(new DeleteAuditDocumentInDto() + { + Ids = inDto.Ids + }); return ResponseOutput.Ok(); } @@ -677,6 +683,7 @@ public class AuditDocumentService(IRepository _auditDocumentRepos auditDocumentAddOrEdits.ForEach(x => { x.IsUpdate = false; + x.IsAuthorization = false; x.Id = null; x.ParentId = inDto.ParentId; });