40 if (isset($fields[
"ID"]))
45 if ($this->targetDocumentType)
47 $fields[
"MODULE_ID"] = $this->targetDocumentType[0];
48 $fields[
"ENTITY"] = $this->targetDocumentType[1];
49 $fields[
"DOCUMENT_TYPE"] = $this->targetDocumentType[2];
52 if (array_key_exists($fields[
"DOCUMENT_STATUS"], $this->mapStatusIdsCopiedDocument))
54 $fields[
"DOCUMENT_STATUS"] = $this->mapStatusIdsCopiedDocument[$fields[
"DOCUMENT_STATUS"]];