1. Identification
| Parameter | Value |
|---|---|
| Object Type | Catalog |
| Name | AttachedFilesCatalog |
| Full Name | Catalog.AttachedFilesCatalog (Catalogs.AttachedFilesCatalog) |
| Synonym | “Attached Files (Catalog)” |
| Configuration | 1C:Accounting for Kazakhstan 3.0.74.2 |
| Subsystem | File Management (BSP, “Attached Files”) |
| File Owner | Catalog.ItemCatalog |
| Where to Find | e1cib/list/Catalog.AttachedFilesCatalog |
Purpose. A service (technical) catalog for storing files attached to items in the “Item Catalog”: certificates, specifications, product photos, technical documentation, document scans. It is part of the standard mechanism “Attached Files” of the Standard Subsystems Library (BSP). The user does not create items manually through the menu — records are formed automatically when a file is uploaded/attached from the item card (the “Files” panel). Work with the contents of the files is done in the background.
According to the BSP agreement, a separate catalog of the form <Owner>AttachedFiles is created for each owner object that supports attached files; this catalog specifically serves the item catalog.
2. Attributes and Table Parts
2.1 Header Attributes
| Name | Type | Mandatory | Purpose |
|---|---|---|---|
| Author | CatalogReference.Users | Mandatory (ShowError) | The user who created (uploaded) the file. Automatically filled when the record is created. |
| FileOwner | CatalogReference.ItemCatalog | Optional (DontCheck) | A reference to the item in the catalog to which the file is attached. Defines the owner. |
| UniversalModificationDate | Date (DateTime) | Optional | The date and time of the last modification of the file in universal format (UTC). Used during synchronization/exchange. |
| CreationDate | Date (DateTime) | Mandatory (ShowError) | The date and time of the file record creation in the information base. Recorded upon the first upload. |
| Encrypted | Boolean | Optional | Indicates whether the file is encrypted using electronic signature methods. |
| ModifiedBy | CatalogReference.Users | Optional | The user who last modified the file or its properties. |
| ImageIndex | Number | Optional | The index of the file icon for display in the interface (by type/extension). |
| Description | String | Optional | A textual description of the file contents, filled in by the user. |
| SignedByES | Boolean | Optional | Indicates whether the file has an electronic signature. |
| FilePath | String | Optional | The path to the file on the volume (for storage “On disks”). |
| Size | Number | Optional | The size of the file in bytes, automatically filled upon upload. |
| Extension | String | Optional | The file extension (pdf, jpg, docx, etc.). Defines the type and icon. |
| EditingUser | CatalogReference.Users | Optional | The user who has taken the file for editing (loan). While filled, the file is locked for others. |
| TextExtractionStatus | EnumerationReference.TextExtractionStatuses | Optional | The status of text extraction for full-text search. |
| TextStorage | ValueStorage | Optional | The extracted text of the file for full-text search. |
| FileStorageType | EnumerationReference.FileStorageTypes | Mandatory (ShowError) | The method of storage: in the information base (file in storage) or on disk (Volume + FilePath). |
| Volume | CatalogReference.FileStorageVolumes | Optional | The storage volume (for the type “On disks”). |
Additionally, the object has standard catalog attributes: Code, Name (file name), DeletionMark, Predefined, Reference. The Name stores the file name without the extension; the full name is assembled as Name + "." + Extension.
2.2 Table Part
ElectronicSignatures (standard BSP table part, when electronic signature usage is enabled) — stores information about the electronic signatures applied to the file: signer, signature date, certificate, verification status, the signature value itself (in storage). It is filled when signing the file from the form.
The actual binary content of the file is not stored in the attributes: when stored “in the information base,” it is placed in the service file storage (internal data of the object), when stored “on volumes” — in the file system at the path
Volume + FilePath.
3. Forms
| Form | Purpose |
|---|---|
| ElementForm | The card for the attached file: description, author, dates, size, electronic signature/encryption indicators, view, edit (loan/return), save to disk, sign and verify electronic signature commands. |
| ListForm | A list of files attached to the item; used in service scenarios and for administration. |
| SelectForm | Select an existing attached file (for example, when copying a file to another object). |
In practice, the user interacts not directly with these forms, but through the standard managed panel form “Attached Files” (CommonForm.AttachedFiles / the “Files” field in the item card), which is the client of this catalog.
4. Key Module Procedures
The Evidence with the original BSL text for the object is not attached. Below is the standard composition of handlers for the attached files catalog of BSP (implemented in the object module, manager modules, and form modules, as well as in the common modules of the “File Management” subsystem).
Object Module:
BeforeWriting— settingUniversalModificationDate, recording the user inModifiedBy, updatingSize,Extension, indicatorsSignedByES/Encrypted.BeforeDeletion— deleting the binary content of the file in the volume (if storage is “on disks”), to avoid leaving “orphaned” files on the disk.FillingProcessing— settingAuthor,CreationDate,FileStorageTypeaccording to file storage settings upon creation.
Manager Module / Common Modules of the Subsystem (“FileManagement”, “FileManagementService”, “AttachedFiles”):
- Adding a file to the owner (creating an item, placing content in temporary storage/volume, calculating size and extension).
- Loan/return of the file for editing (filling/clearing the
EditingUserattribute), blocking parallel modifications. - Extracting text for full-text search and setting
TextExtractionStatus, writing toTextStorage. - Working with electronic signatures: signing, adding accompanying signatures, verifying signatures, encrypting/decrypting (managing
SignedByES,Encrypted, table partElectronicSignatures).
Element Form Module: handlers for viewing, opening, saving to disk, updating from file, printing signature information, as well as controlling file occupancy (EditingUser).
The exact composition of procedures and their signatures are version-dependent (determined by the BSP version within 3.0.74.2) — requires verification for a specific delivery during modifications.
5. Posting and Movements
The object is a catalog and is not posted — it does not generate registers and accounting entries. It has no posting mode, movements in accumulation/summary registers and in the accounting register are not created.
Changes when working with the file are limited to:
- recording/changing an item of this catalog;
- placing/removing binary content (in the information base or on the disk volume);
- updating service information for full-text search.
The file does not affect accounting indicators (VAT, cost, income). For reference: typical accounts of the RK affected by documents on the item (not by this catalog) — 1330 “Goods”, 1210 “Short-term Receivables from Customers”, 3310 “Payables to Suppliers”, 3130 “VAT Payable”, 6010 “Revenue from Sales”, 7010 “Cost of Sales”; the VAT rate of the RK for 2026 is 16%. An attached file (for example, a certificate or a scan of an electronic invoice (ESF)/SNT) serves only as an appendix to the item card and does not participate in these entries.
6. Related Objects and Input on Basis
| Relation | Object | Nature |
|---|---|---|
| File Owner | Catalog.ItemCatalog |
Attribute FileOwner; determines to which product/service the file is attached. |
| Author / ModifiedBy / EditingUser | Catalog.Users |
Audit and editing lock. |
| Storage Type | Enumeration.FileStorageTypes |
“In the information base” / “On disks”. |
| Volume | Catalog.FileStorageVolumes |
Physical placement when stored on disk. |
| Text Extraction Status | Enumeration.TextExtractionStatuses |
Full-text search. |
| Electronic Signature | Table part ElectronicSignatures, subsystem “Electronic Signatures” of BSP |
Signing/verifying/encrypting. |
Input on Basis is not provided for the service catalog. The creation mechanism is only through attaching a file to the item (uploading from disk, scanning, copying, drag-and-drop) in the “Files” panel. The file can be copied as attached to another object using standard BSP tools.
7. Extension Points
- Configuration Extension. Adding attributes to the element form, additional commands (for example, export by template), handlers
BeforeWriting/BeforeDeletionthrough annotations&Before/&After. - Common modules of the “File Management” subsystem. Configuring text extraction scenarios, restrictions on extensions and sizes of uploaded files, automatic signing.
- Storage Volumes (
FileStorageVolumes). Transferring content “from the information base to volumes” and back to manage database size; configuring placement rules. - Full-text search. Enabling/disabling text extraction and processing
TextExtractionStatus. - Electronic signature and encryption. Configuring cryptography programs, signing and verification policies (
SignedByES,Encrypted, table partElectronicSignatures). - Additional attributes/information (BSP). Classifying files (document type, certificate validity period) through the properties mechanism.
- Data synchronization. The attribute
UniversalModificationDate— a reference point during exchange; to be considered when configuring exchange plans.
When making modifications, do not change the purpose of service attributes (
Author,CreationDate,FileStorageType,EditingUser) — the standard logic of blocking, storage, and auditing of BSP relies on them.
