1. Identification of the Object
| Parameter | Value |
|---|---|
| Object Type | Document (Document) |
| Name | SetOrderOfClosingDepartments |
| Full Name | Document.SetOrderOfClosingDepartments |
| Synonym | “Setting the order of departments for closing accounts” |
| Configuration | Accounting for Kazakhstan, edition 3.0 (version 3.0.74.2) |
| Accounting Currency | tenge (₸) |
Purpose. The document defines the sequence of closing the structural divisions of the organization during the execution of regulatory period closing operations. The order of closing is critical for the correct cascading distribution of costs: departments providing services to others must close before the consuming departments. The document is used by accountants and financial specialists within the framework of month/year closing. Typically, it is created once for each organization and is only refilled when the structure of the departments changes. After processing, it records the order in the information register OrderOfClosingDepartmentsOfOrganizations, which is then read by the regulatory closing operations.
Where to find in 1C: section “Enterprise” → “Setting the order of departments for closing accounts”.
Navigation link: e1cib/list/Document.SetOrderOfClosingDepartments
2. Attributes of the Header and Table Parts
Header Attributes
| Attribute | Type | Mandatory | Purpose |
|---|---|---|---|
| Number | String | automatically | Document number, assigned by the numbering system |
| Date | Date | yes | Document date; defines ClosingPeriod (start of the month of the date) and is included in the resource of the register |
| Organization | ReferenceLink.Organizations | yes | Organization for which the closing order is established. Key dimension for selecting records in the register |
| Responsible | ReferenceLink.Users | no | User responsible for the document; used, among other things, during group changes of attributes |
| Comment | String | no | Arbitrary text explanation |
Table Part “OrderOfClosing”
Defines the list of departments and their closing sequence. The order of rows in the table determines the closing order number.
| Column | Type | Mandatory | Purpose |
|---|---|---|---|
| RowNumber | Number | automatically | Determines the sequence: the row above closes earlier. Serves as the basis for calculating NumberTransferred |
| Department | ReferenceLink.DepartmentsOfOrganizations | yes | Department for which the closing order is recorded |
Mandatory fields for processing: Organization (header) and Department (in each row of the table part). If a field is not filled, 1C will not process the document and will issue an error “Field … is not filled”.
3. Forms
| Form | Purpose |
|---|---|
Document Form (DocumentForm) |
Main input form: header (Organization, Date) and table part “OrderOfClosing”. Contains a command to auto-fill the table with all departments of the organization |
List Form (ListForm) |
List of documents; opens via the link e1cib/list/Document.SetOrderOfClosingDepartments |
Selection Form (SelectionForm) |
Selecting a document from other objects (if necessary) |
4. Key Procedures of Modules
Manager Module (ManagerModule)
GenerateMovementsOrderOfClosingDepartments — central function for generating movements (from evidence). Logic:
- Checks that the department table is not empty:
DepartmentTable.Count() > 0. - Executes the query
QueryTextDepartmentTable, which:- selects departments from the document's table part;
- joins with the information register
OrderOfClosingDepartmentsOfOrganizationsto determine the current value ofNumberTransferred; - calculates a new
NumberTransferredfor each department based on the current records of the register by organization and row number in the table part.
- Records the result in the set of records of the register.
Object Module (Standard Handlers of This Type of Document)
ProcessingConduct(Refusal, ConductingMode)— calls the generation of movements (GenerateMovementsOrderOfClosingDepartments) and records the set of records in the information register.ProcessingFilling(FillingData, ...)— initial filling (Organization, Responsible) by default.CheckFilling(Refusal, CheckedAttributes)— control of filling mandatory fields (Organization; Department in rows).
Form Module (Standard Handlers)
OnCreateOnServer— form initialization, setting the organization by default.- Command auto-fill the table part with all departments of the organization (scenario 3.3).
“Requires verification”: exact names of form attributes and the presence of a separate auto-fill command depend on the specific assembly 3.0.74.2 — check with the configurator.
5. Conducting and Movements
The document does not generate accounting entries (movements in the accounting register). It records data in the information register, which is read by regulatory closing operations.
Information Register OrderOfClosingDepartmentsOfOrganizations
| Element | Type | Value on Record | |
|---|---|---|---|
| Department | Dimension | ReferenceLink.DepartmentsOfOrganizations | Department from the row of the table part |
| ClosingPeriod | Dimension | Date | StartOfPeriod(Period, Month) — start of the month of the document date |
| NumberTransferred | Dimension | Number | Sequential number of closing, calculated from current records of the register by organization and row number in the table part |
| Period | Resource | Date | Document date |
| Organization | Resource | ReferenceLink.Organizations | Organization from the header |
Connection with accounting entries (indirect). The order recorded by the document is used by the regulatory operation “Closing expense accounts / distribution of costs”. It is this operation that generates entries by departments according to the standard chart of accounts of the RK, for example, during the distribution and write-off of costs:
- write-off of cost of goods sold: Dr 7010 “Cost of Goods Sold” — Cr 1330 “Goods”;
- recognition of revenue from sales upon closing: Dr 1210 “Short-term Receivables from Customers” — Cr 6010 “Revenue from Sales”, Dr 1210 — Cr 3130 “VAT Payable” (VAT rate 16%).
The document “SetOrderOfClosingDepartments” does not make these entries — it only sets the sequence in which departments are processed during closing.
6. Related Objects and Input Based On
| Object | Nature of Connection |
|---|---|
InformationRegister.OrderOfClosingDepartmentsOfOrganizations |
Receiver of movements of the document |
Reference.Organizations |
Header attribute; key for selecting records in the register |
Reference.DepartmentsOfOrganizations |
Source of values for the table part |
| Regulatory closing period operations (processing “Month Closing”) | Consumer of register data: determines the closing sequence of departments |
| Organization's accounting policy settings | Context of document application |
Input Based On. Standard input based on for this document is not provided (the document is a configuration document, not a primary accounting one). It is created manually or by copying the previous document when changing the structure of departments.
7. Points of Extension
- Manager module — function
GenerateMovementsOrderOfClosingDepartments: extension/subscription can adjust the algorithm for calculatingNumberTransferred(for example, for non-standard priority logic). - Query text
QueryTextDepartmentTable: point for changing the selection rules for departments and determining the current number. - Handler
ProcessingConductof the document: subscriptions to events / extensions for additional checks or synchronous filling of related registers. - Auto-fill command for the table part on the form: redefinition of the source of departments (for example, selection only by a specific type/group).
CheckFilling: adding custom business rules (for example, prohibiting duplicates of departments in the table part).
Application Scenarios
- 3.1 Initial Setup — during implementation/start of work, setting up accounting policy.
- 3.2 Changes during Reorganization — appearance, deletion of departments, change of priorities.
- 3.3 Auto-fill — quick filling of the table part with all departments of the organization.
- 3.4 Group Editing — mass change of attributes (for example, “Responsible”) in several documents.
- 3.5 Manual Adjustment — temporary blocking of automatic conducting during editing.
