diff --git a/docs/Admin manuals/Настройка архива/index.md b/docs/Admin manuals/Настройка архива/index.md
index 85c5b5b..b7ad520 100644
--- a/docs/Admin manuals/Настройка архива/index.md
+++ b/docs/Admin manuals/Настройка архива/index.md
@@ -97,19 +97,176 @@ WHERE 1 = 1
-| Код | Наименование | SQLScript |
-|----------------|------------------------|--------------------------------------------------------------------------------------------------|
-| Contractor | Контрагент | and exists(
select 1 from "tmp_anFilters_for_documentSearch" as an where an."id" = 'Contractor' and an."value" = cast(t."Contractor" as character varying)) |
-| Contract | Договор | and exists(
select 1 from "tmp_anFilters_for_documentSearch" as an where an."id" = 'Contract' and an."value" = cast(t."VCode" as character varying)) |
-| Project | Проект | and exists(
select 1 from "tmp_anFilters_for_documentSearch" as an where an."id" = 'Project' and an."value" = cast(t."Project" as character varying)) |
-| Curator | Куратор | and(
exists(
select 1
from "tmp_anFilters_for_documentSearch" as an
join rp."RP_Worker" w ON t."Manager" = w."VCode"
JOIN rp."RP_Person" AS p ON w."IdPerson" = p."VCode"
JOIN rp."RP_PersonContact" AS pc on p."VCode" = pc."Pcode"
where an."id" = 'Curator'
and pc."IdTypeContact" = 6
and pc."Code" = an."value"
)) |
-| StageUser | Участник маршрута | and exists(
select 1 from "tmp_anFilters_for_documentSearch" as an
join comdoc."Route" as r on r."DocCode" = t."VCode" and r."DocType" = t."TypeName"
join comdoc."RouteStage" as s on s."PCode" = r."VCode"
join comdoc."StageItem" as i on i."PCode" = s."VCode"
where an."id" = 'StageUser'
and r."RouteStatus" NOT IN (4)
and i."StageUser" = an."value"
) |
-| CUser | Создатель документа | and exists(
select 1 from "tmp_anFilters_for_documentSearch" as an where an."id" = 'CUser' and an."value" = cast(t."CUser" as character varying)) |
-| Initiator | Инициатор | and(
exists(
select 1
from "tmp_anFilters_for_documentSearch" as an
join comdoc."Route" as r on r."DocCode" = t."VCode" and r."DocType" = t."TypeName"
where an."id" = 'Initiator'
and r."Initiator" = an."value")) |
-| Filial | Организация | and exists( select 1 from "tmp_anFilters_for_documentSearch" as an
- where an."id" = 'Filial'
- and t."COrg"::text = an."value"
- ) |
+
+
+
Код | +Наименование | +SQLScript | +
---|---|---|
CUser | +Создатель документа | +and exists( select 1 from "tmp_anFilters_for_documentSearch" as an where an."id" = 'CUser' and an."value" = cast(t."CUser" as character varying) ) |
+
Initiator | +Инициатор | +
+ and(
+ |
+
StageUser | +Участник маршрута | +
+ and
+ |
+
SignatoryUser | +Работник | +
+ and(
+ |
+
EmpowermentSubject | +Полномочия | +
+ and
+ |
+
Filial | +Организация | +
+ and exists(
+ |
+