1. Identification
| Parameter | Value |
|---|---|
| Object Type | Reference (Reference.ProductServiceSalesAttachedFiles) |
| Name | ProductServiceSalesAttachedFiles |
| Synonym | Attached files (Product and service sales) |
| Configuration | Accounting for Kazakhstan, edition 3.0 (version 3.0.74.2) |
| Subsystem | File Management (attached files mechanism of BSL) |
| Owner | Document.ProductServiceSales (via attribute FileOwner) |
Purpose. The reference stores files attached to the "Product and Service Sales" documents and manages their lifecycle: uploading, storage (in the information base or on external volumes), versioning, encryption, and electronic signing. It is used by accountants and managers to attach scans of invoices, acts of completed work, electronic invoices (ESF)/SNT, and other primary documentation to sales operations. It works in conjunction with the "File Management" subsystem: it supports storage both in the database (ValueStorage) and on storage volumes. Access to files is from the sales document card through the attached files panel.
Where to find: e1cib/list/Reference.ProductServiceSalesAttachedFiles
This is a service (technical) reference of the attached files mechanism. The user does not work directly with the list but with files through the panel on the owner document form. Direct opening of the list is an administration/debugging scenario.
2. Attributes and Structure
2.1 Header Attributes (from evidence)
| Name | Type | Mandatory | Purpose |
|---|---|---|---|
| Author | ReferenceLink.Users | Mandatory (ShowError) | The user who created the file. Automatically filled upon creation. |
| FileOwner | DocumentLink.ProductServiceSales | Optional | Reference to the sales document to which the file is attached. Defines the storage context. |
| UniversalModificationDate | Date and time | Optional | Date of the last modification of the file in UTC format. Synchronization and version control. |
| CreationDate | Date and time | Mandatory (ShowError) | Date and time of file creation in the system. Automatically filled upon upload. |
| Encrypted | Boolean | Optional | Flag for file encryption (working with confidential information). |
| ModifiedBy | ReferenceLink.Users | Optional | The user who last modified the file or its attributes. |
| ImageIndex | Number | Optional | Index of the file type icon in the image collection for display in the interface. |
| Description | String | Optional | Text description of the file for search and identification. |
| SignedEP | Boolean | Optional | Flag for the presence of an electronic signature (legal significance of the file). |
| FilePath | String | Optional | Full path to the file when stored on a volume. Empty if the file is stored in the database. |
| Size | Number | Optional | Size of the file in bytes. Automatically filled. |
| Extension | String | Optional | File extension (pdf, xlsx, etc.). Defines the type and available actions. |
| EditingUser | ReferenceLink.Users | Optional | The user who has locked the file for editing. |
| TextExtractionStatus | Enumeration.TextExtractionStatus | Optional | Status of text extraction for full-text search (not extracted / extracting / extracted / error). |
| TextStorage | ValueStorage | Optional | Storage of extracted text content for full-text search. |
2.2 Standard Attributes of the BSL Mechanism (supplement header)
In addition to the above, the attached files reference usually contains:
- Volume (ReferenceLink.StorageVolumes) — the volume on which the file is stored when stored outside the database;
- VersionUsed / CurrentVersion — reference to the active version (when versioning is enabled);
- FileStorageType — indicator of storage: in the information base or on the volume;
- UploadCompleted — indicator of successful upload completion;
- file content — in the binary data information register or in
ValueStorageof the version.
The exact composition of service attributes is version-dependent (implementation of the "File Management" subsystem of BSL). Requires verification for the specific build 3.0.74.2 if there is programming work with the storage.
2.3 Table Parts
The reference does not have its own table parts — it is a flat file card. Versions (history) are stored by a separate versioning mechanism, not by a table part.
3. Forms
| Form | Purpose |
|---|---|
| ElementForm | File card: description, author, dates, signature/encryption flags, open/save/edit buttons. Typically called through common BSL forms. |
| ListForm | Service list of all attached files of the reference. Used by the administrator/for debugging. |
| SelectForm | Selecting a file from the list in service scenarios. |
In practice, file management is conducted through common forms of the "File Management" subsystem (attached files panel on the owner document form, file viewing and selection forms), rather than through the reference's own forms. Therefore, the set of its own forms is minimal.
4. Key Procedures of Modules
BSL modules in evidence are not attached. Below are typical handlers for the attached files reference of BSL.
Object Module (ObjectModule):
FillProcessing(FillingData, StandardProcessing)— fillingAuthor,CreationDateupon element creation.BeforeWriting(Refusal)— recordingModifiedBy,UniversalModificationDate; controlling file occupancy for editing.BeforeDeletion(Refusal)— clearing data on the storage volume and related versions.OnCopying(CopyingObject)— resetting service flags (EditingUser,SignedEP, references to versions) for the copy.
Manager Module (ManagerModule):
- integration procedures with common modules
FileManagement/ServiceFileManagement: adding a file, updating a version, transferring between the database and volume, text extraction, applying/checking EP.
Specific paths
path:stringare not provided, as BSL evidence is not available. Implementation is delegated to the common modules of the "File Management" subsystem of BSL.
5. Posting and Movements
The reference is not posted and does not generate movements in registers — it is an object of type "Reference", it has no posting mechanism, registrars, or accounting entries. An attached file does not affect accounting totals; it only stores the attachment and metadata.
Accounting movements are generated by the owner document Document.ProductServiceSales. For context — standard posting logic for sales in the RK (typical chart of accounts of the RK, VAT rate 16 %, currency — tenge ₸):
| Operation | Debit | Credit |
|---|---|---|
| Recognition of revenue from sales (with VAT) | 1210 "Short-term receivables from buyers" | 6010 "Revenue from sales" |
| Accrual of VAT payable (16 %) | 1210 | 3130 "VAT payable" |
| Write-off of the cost of goods | 7010 "Cost of sales" | 1330 "Goods" |
Example: sale for the amount of 116,000 ₸ with VAT → revenue without VAT 100,000 ₸ (Dr 1210 Cr 6010), VAT 16,000 ₸ (Dr 1210 Cr 3130). Upon receipt of payment to the account — Dr 1030 Cr 1210. Electronic support for sales — issuance of ESF (IS ESF) and, if necessary, SNT; their printed/xml forms are typical candidates for attachment to the document in the form of files of this reference.
Other rates/limits of RK-2026 applicable in related calculations of the configuration (for reference, not directly related to this reference): MRP 4,325 ₸, MZP 85,000 ₸; basic deduction for individual income tax — 30 MRP/month (not more than 360 MRP/year); individual income tax 10 % up to 8,500 MRP of annual income and 15 % above; OPE 10 % (base ceiling 50 MZP), OPEI 3.5 %, VOSMS 2 %, OSMS 3 %, CO 5 %, social tax 6 %.
6. Related Objects and Input Based on
- Document.ProductServiceSales — owner of the files (attribute
FileOwner). Files are attached from the form of this document. - Reference.Users — source of values for
Author,ModifiedBy,EditingUser. - Reference.StorageVolumes — volumes of external storage (when stored outside the database).
- Enumeration.TextExtractionStatus — statuses of full-text indexing.
- Common modules/forms of the "File Management" subsystem (BSL) — all UI and logic for uploading/downloading/signing/versions.
Input based on: not applicable. Attached files do not participate in the input based on scheme and do not generate documents; elements are created only through the mechanism of attaching files to the owner document.
7. Extension Points
- Configuration extension for intercepting
BeforeWriting/FillProcessingof the object module — for example, additional checks of file types/sizes, auto-fillingDescription. - Event subscriptions (
BeforeWriting,BeforeDeletion) of the reference — auditing operations with files, integration with external archive. - Overridable common BSL modules "File Management" (
FileManagementOverridableand analogs) — setting rules for storage, encryption, text extraction, applying EP. - Additional attributes/information (subsystem "Properties") — if necessary for classification of files (document type, approval status).
- Configuration of storage volumes and rules for transferring files from the database to volumes — by regulatory assignments.
When making modifications, do not change the service attributes of the storage directly — use the API of the "File Management" subsystem, otherwise the integrity of the "file card ↔ version ↔ volume" linkage will be violated.
