1. Identification
| Parameter | Value |
|---|---|
| Object Type | Document (Document.ESFAttachedFiles) |
| Name | ESFAttachedFiles |
| Synonym | “Attached files (Electronic invoice)” |
| Configuration | Accounting for Kazakhstan, ed. 3.0 (3.0.74.2) |
| Subsystem | File Management / Attached Files (BSP) |
| Navigation | e1cib/list/Document.ESFAttachedFiles |
Purpose. The object is intended for storing files attached to electronic invoice documents (Document.ESF) in the tax accounting system of the Republic of Kazakhstan. It provides a link between the owner document “ESF” and its file attachments: XML files of invoices for the ESF information system, scans, electronic signature files (ES), and accompanying documents. The object belongs to the electronic document management subsystem (ESF, SNT) and is created by the standard mechanism “Attached Files” of the Standard Subsystems Library (BSP).
Users (accountants responsible for electronic document management) work with attachments through the ESF document form, rather than directly with this object. The object ensures versioning of files, storage, and the presence indicator of the electronic signature, file locking during editing, and integration with full-text search.
Note on type: in the Kazakh version, attached files for ESF are implemented as a metadata object of the type Document (
object_type_ru: "Документ"), although functionally it is a storage for attachments generated by the BSP subsystem. Below, the structure is described according to the actual evidence.
2. Attributes and Table Parts
2.1 Header Attributes
| Name | Type | Mandatory | Purpose |
|---|---|---|---|
| Author | ReferenceLink.Users | Mandatory (ShowError) | The user who initially attached the file to the ESF. Used for auditing and access control. |
| FileOwner | DocumentLink.ESF | Optional | Reference to the ESF document — the owner of the file. Provides a hierarchical link “document → attachments”. |
| UniversalModificationDate | DateTime | Optional | Universal (UTC) time of the last modification of the file. For synchronization and tracking changes. |
| CreationDate | DateTime | Mandatory (ShowError) | The moment of the initial attachment of the file. Critical for the chronology of work with ESF. |
| Encrypted | Boolean | Optional | Indicator of file encryption (confidential document circulation scenarios). |
| ModifiedBy | ReferenceLink.Users | Optional | The user who last modified the file. For auditing. |
| ImageIndex | Number | Optional | Index of the file icon in the interface image collection (depends on the extension). |
| Description | String | Optional | Text description/name of the file for easy identification. |
| SignedByES | Boolean | Optional | Indicator of the presence of an electronic signature. Critical for the legal significance of the ESF in the RK accounting. |
| FilePath | String | Optional | Path to the file on the storage volume (when externally stored on volumes). |
| Size | Number | Optional | Size of the file in bytes. For volume control and upload optimization. |
| Extension | String | Optional | File extension (“xml”, “pdf”, etc.). Determines the method of processing and displaying. |
| EditingBy | ReferenceLink.Users | Optional | The user who has taken the file for editing (locking), preventing conflicts. |
| TextExtractionStatus | EnumerationLink.TextExtractionStatuses | Optional | Status of text extraction for full-text search (not extracted / extracted / error). |
| TextStorage | ValueStorage | Optional | Storage of extracted text for full-text search by content. |
In addition to the listed, it is typical for this type of BSP objects to have service attributes: VersionStorage/links to file version data, StorageVolume, and FileStorage (binary data when stored in the IB). The composition of the data storage depends on the chosen storage method (in the database or on volumes).
2.2 Table Parts
The object has no table parts — it is a flat storage of a single file attachment (one record = one file attached to one ESF). The multiplicity of attachments is implemented by multiple records with one FileOwner.
3. Forms
Forms are generated by the “Attached Files” subsystem of BSP. Standard composition:
| Form | Purpose |
|---|---|
| Element Form (ObjectForm) | View/edit the attachment card: description, author, date, ES and encryption indicators, actions “Open”, “Save As”, “Edit”/“Finish Editing”. |
| List Form (ListForm) | List of attached files; available via the link e1cib/list/Document.ESFAttachedFiles. Mainly used for administration/diagnostics. |
| Select Form (if available) | Select an existing attachment in service scenarios. |
In practice, work is conducted through the embedded table “Attached Files” on the ESF document form (commands “Add”, “View”, “Sign ES”, “Save”), while the object's own forms are rarely opened.
4. Key Module Procedures
No separate application BSL code is attached in evidence — the behavior of the object is defined by the general mechanisms of the “Attached Files” subsystem of BSP. Standard handlers for this type of object:
- Object Module →
FillProcessing— fillingAuthor,CreationDate,UniversalModificationDatewhen creating an attachment. - Object Module →
BeforeWriting/OnWriting— fixingModifiedBy, updatingUniversalModificationDate, refreshingSize/Extension, resetting the text extraction status when changing content. - Object Module →
FillCheckProcessing— control of mandatory attributesAuthorandCreationDate(ShowError mode). - Common BSP Modules —
FileManagement,FileManagementService,FileManagementServerCall: adding a file, reading/writing binary data, extracting text for full-text search (fillingTextStorage,TextExtractionStatus), managing locking (EditingBy), working with ES (SignedByES,Encrypted) and storage on volumes (FilePath,StorageVolume).
Version-specific: the exact names of procedures and breakdown by common modules depend on the version of BSP integrated into 3.0.74.2 — when refining, clarify with the configurator.
5. Posting and Movements
The object is not a posted document in the accounting sense: it has no movements in accounting and accumulation registers and it does not generate postings. This is a storage for file attachments — the “Posting” attribute and the mechanism for generating movements for it are not used.
Accounting movements are generated by the owner document ESF and related primary documents of sales/purchases, while attached files only store their electronic images (XML, ES). For reference — the standard logic of postings for documents to which ESF belongs (numbers and accounts for RK in 2026):
- Sale of goods (standard chart of accounts RK):
Dr 1210 Cr 6010— revenue from sales;Dr 1210 Cr 3130— VAT at the rate of 16 % (for example, with a base of 1,000,000 ₸ the VAT amount = 160,000 ₸);Dr 7010 Cr 1330— write-off of the cost of sold goods.
- Receipt of goods:
Dr 1330 Cr 3310— receipt of goods;Dr 1420/1330 Cr 3310— VAT to be credited (16 %).
- Payment:
Dr 1030 Cr 1210(from the buyer),Dr 3310 Cr 1030(to the supplier).
These postings belong to the ESF/sales/purchase documents, not to the object ESFAttachedFiles.
6. Related Objects and Input Based On
- Owner Document:
Document.ESF— through the attributeFileOwner. One ESF document can have several attached files. - Adjacent EDO Objects:
Document.SNT(accompanying invoices for goods) and other electronic documents have their own attached file objects according to the same BSP scheme. - Reference.Users — attributes
Author,ModifiedBy,EditingBy. - Enumeration.TextExtractionStatuses — attribute
TextExtractionStatus. - Data Storage: binary data and versions — in IB (
ValueStorage) or on file storage volumes (attributesFilePath, volume). - Input Based On: manual input based on is not provided and makes no sense — records are created automatically when a file is attached to the ESF through the BSP mechanism.
7. Extension Points
- Configuration Extension: adding attributes (for example, attachment type, document category, storage period) and borrowing forms for refining the attachment card.
- Event Subscriptions:
BeforeWriting/OnWritingof the object — for additional auditing, auto-numbering of versions, integration with external archives. - Common BSP Modules “File Management”: overridable procedures (
FileManagementOverridable,FileManagementServiceClientServer) — managing storage methods, limiting extensions/sizes, processing ES. - Exchange Rules/Integration: exporting attachments to the ESF information system and external archives; controlling the
SignedByESindicator before sending. - Full-text Search: configuring text extraction through
TextExtractionStatus/TextStoragefor searching the content of XML/PDF attachments of ESF. - Roles and RLS: restricting access to attachments by
Author/organization of the owner document.
Version-specific: the list of overridable procedures of BSP and the presence of subscriptions in the 3.0.74.2 delivery should be clarified in the configurator before refinement.
