In Trade Management for Kazakhstan 3.4.5.21, the ПланОстатков document is used to set target inventory levels by warehouse, item, and planning period.
1. Object identification
| Parameter | Value |
|---|---|
| Object type | Document |
| Name | ПланОстатков |
| Full name | Документ.ПланОстатков |
| Display name | “Inventory Balance Plan” |
| Configuration | Trade Management for Kazakhstan 3.4.5.21 |
| Subsystem | Planning (“Planning” / “Service Subsystems” section) |
| Numbering type | String, length 11, nonperiodic (Nonperiodical) |
| Where to find it | “Planning” → “Inventory Balance Plan”. Navigation link: e1cib/list/Документ.ПланОстатков |
Purpose. The document sets target inventory levels at warehouses for a specified period. The planning subsystem uses it to compare planned and actual figures and calculate how requirements will be covered. Its primary users are planners and inventory analysts.
This document supports operational planning. Posting it records planned figures in the configuration's registers. Actual receipts, sales, and payments are recorded in separate transaction documents.
2. Header fields and tabular sections
2.1 Header fields
| Name | Type | Required | Purpose |
|---|---|---|---|
| Статус | ПеречислениеСсылка.СтатусыПланов | Yes | Document lifecycle status, such as draft, in progress, or approved. Determines whether the plan is monitored. |
| Периодичность | ПеречислениеСсылка.Периодичность | Yes | Planning interval, such as day, week, or month. Determines the time granularity of the plan. |
| НачалоПериода | Date | Yes | Start of the planning period. |
| ОкончаниеПериода | Date | Yes | End of the planning period. |
| Ответственный | СправочникСсылка.Пользователи | No | User responsible for the document. |
| ОбновитьДополнить | Number | No | Internal parameter that determines whether to update existing rows or add new ones. |
| ИзменитьРезультатНа | Number | No | Amount by which to adjust the planned result during recalculation. |
| ТочностьОкругления | Number | No | Rounding precision for calculated plan values. |
| ПользовательскиеНастройки | ValueStorage | No | Saved user settings for the form and data population. |
| Комментарий | String | No | Free-text comment. |
| Сценарий | СправочникСсылка.СценарииТоварногоПланирования | Yes | Inventory planning scenario under which the plan is created. |
| ВидПлана | СправочникСсылка.ВидыПланов | Yes | Plan type, which classifies the document by purpose. |
| ЗаполненоАвтоматически | Boolean | No | Indicates whether the tabular section was populated automatically from a formula or data. |
| Склад | СправочникСсылка.Склады | Yes | Warehouse whose inventory levels the plan covers. Determines the warehouse dimension of register entries. |
| КроссТаблица | Boolean | No | Mode for displaying and entering data in an item × period cross-tab. |
| Календарь | СправочникСсылка.ПроизводственныеКалендари | No | Work calendar used to divide the planning period into intervals. |
| СтруктураНастроек | ValueStorage | No | Structure that stores plan generation settings. |
| ЗаполнятьПоФормуле | Boolean | No | Indicates whether planned figures should be populated using a formula. |
| ОтражаетсяВБюджетировании | Boolean | No | Indicates whether the plan is included in the budgeting subsystem. |
| СтатьяБюджетов | String | Yes | Budget item under which the plan is recorded. |
| СценарийБюджетирования | String | Yes | Budgeting scenario under which the plan is recorded. |
| Замещающий | Boolean | No | Indicates whether the plan supersedes a previously entered plan. |
| Назначение | СправочникСсылка.Назначения | No | Segregates goods for a specific order or line of business. |
2.2 “Goods” tabular section (12 columns)
| Name | Type | Purpose |
|---|---|---|
| Номенклатура | СправочникСсылка.Номенклатура | Goods or service item included in the plan. |
| Характеристика | СправочникСсылка.ХарактеристикиНоменклатуры | Item characteristic, such as color or size, when these characteristics are tracked. |
| Упаковка | СправочникСсылка.УпаковкиЕдиницыИзмерения | Package type used when stock is tracked by package. |
| Количество | Number | Planned quantity in the base unit of measure. |
| КоличествоУпаковок | Number | Planned quantity in packages. |
| Remaining columns | Tabular section fields | Planned figures by period, analytical dimensions, and internal fields for processing rows. |
This description covers the first five of the twelve columns. The metadata for Документ.ПланОстатков in configuration 3.4.5.21 defines the complete set of tabular section fields.
3. Forms
Users work with the document through the document, list, and selection forms, as well as the controls for configuring data population.
- Document form — enter header fields, including the period, scenario, plan type, and warehouse, work with the “Goods” tabular section, populate values automatically using a formula, and display data as a cross-tab.
- List form — view inventory balance plans and filter by scenario, plan type, and period.
- Selection form — select the document from other configuration objects.
- Data population settings — manage the formula and settings structure used to generate the plan.
To identify the subordinate forms and their names, check the “Forms” branch of Документ.ПланОстатков in the metadata tree for configuration 3.4.5.21.
4. Key object module procedures
The table lists the handler names as defined in the object's BSL module, ObjectModule.
| Handler | Length | Purpose |
|---|---|---|
| ОбработкаПроведения | 13 lines | Generates register entries during posting. Delegates calculation to the ПроведениеСерверУТ and Планирование common modules. |
| ОбработкаУдаленияПроведения | 9 lines | Clears register entries when posting is canceled. |
| ОбработкаПроверкиЗаполнения | 208 lines | Performs the main validation checks on required fields, the period, scenario, plan type, warehouse, tabular section, and consistency of settings. |
| ПередЗаписью | 41 lines | Prepares data before saving, recalculates internal fields, and checks the status. |
| ПриЗаписи | 12 lines | Updates dependent planning data when the document is saved. |
| ОбработкаЗаполнения | 15 lines | Populates default values when a document is created, including when it is created from another object. |
| ПриКопировании | 12 lines | Adjusts values when the document is copied, including resetting unique and status fields. |
Validation and messages in the code. The handlers generate exception messages when data entry or posting rules are violated.
Common module dependencies (number of calls)
Планирование (15), ПроведениеСерверУТ (11), ОбщегоНазначения (6), ОбщегоНазначенияУТ (6), УправлениеПечатью (4), ОбщегоНазначенияКлиентСервер (3), Пользователи (3), ПланированиеКлиентСерверПовтИсп (2), НоменклатураКлиентСервер (2), ОценкаПроизводительности (2), ФормированиеПечатныхФорм (2), ПланированиеКлиентСервер (1), НоменклатураСервер (1), ЗначениеНастроекПовтИсп (1), ШтрихкодированиеПечатныхФорм (1).
The main business logic resides in the Планирование module, which calculates plans and determines how requirements will be covered, and the ПроведениеСерверУТ module, which uses the standard mechanism for generating register entries.
5. Posting and register entries
The document tracks planned figures in the configuration's accumulation registers.
Register entries
| Register | Type | Purpose |
|---|---|---|
| РегистрНакопления.ПланыОстатков | Accumulation | Main register for storing target inventory levels by warehouse, item, and period. The data is used to compare planned and actual figures and calculate how requirements will be covered. |
| РегистрНакопления.ПланыОплатПоставщикам | Accumulation | Stores planned supplier payments associated with the inventory replenishment plan and supports cash flow planning. |
Posting logic. The ОбработкаПроведения handler in the object module delegates register entry generation to the ПроведениеСерверУТ and Планирование common modules. These modules process the warehouse, period, scenario, plan type, and rows in the “Goods” tabular section, then write the calculated plan figures to the registers.
Actual receipts, sales, and payments are recorded in separate documents. Electronic documents for actual transactions are issued through the Electronic Invoice Information System (E-Invoice IS), including the Virtual Warehouse and accompanying notes for goods (ANG).
6. Related objects and document creation from other objects
- Scenarios: Справочник.СценарииТоварногоПланирования and Справочник.ВидыПланов define the planning context.
- Analytical dimensions: Справочник.Склады, Справочник.Номенклатура, Справочник.ХарактеристикиНоменклатуры, Справочник.УпаковкиЕдиницыИзмерения, and Справочник.Назначения.
- Calendar: Справочник.ПроизводственныеКалендари is used to divide the planning period into intervals.
- Registers used by downstream processes: РегистрНакопления.ПланыОстатков and РегистрНакопления.ПланыОплатПоставщикам provide data for comparing planned and actual figures, calculating how requirements will be covered, and planning payments.
- Budgeting: When ОтражаетсяВБюджетировании is enabled, the budgeting subsystem includes the plan using the СтатьяБюджетов and СценарийБюджетирования fields.
- The ОбработкаЗаполнения handler populates fields when the document is created and processes data passed from another planning object.
The “Create Based On” setting for Документ.ПланОстатков in configuration 3.4.5.21 determines which objects can serve as the basis for creating the document.
7. Extension points
- Object module extension — add custom validation rules for planned figures to ОбработкаПроверкиЗаполнения and additional register entry logic to ОбработкаПроведения.
- Event subscriptions for the document's ПередЗаписью and ПриЗаписи events — add integrations and auditing without modifying the base configuration.
- Common modules — add planning logic through the interfaces that the configuration provides in the Планирование module.
- Form extensions — add fields and commands to the document and list forms through a configuration extension.
- Printing — add custom templates through УправлениеПечатью and ФормированиеПечатныхФорм, which the document uses together with the print form barcoding mechanism.
8. Questions and answers
Where can users open the “Inventory Balance Plan” document?
Open “Planning” → “Inventory Balance Plan”. To open the list programmatically, use the navigation link e1cib/list/Документ.ПланОстатков.
What data is required to create a plan?
In the document form, enter the status, planning interval, period start and end dates, inventory planning scenario, plan type, and warehouse. Enter the planned items in the “Goods” tabular section.
Where are the posting results stored?
Target inventory levels are written to РегистрНакопления.ПланыОстатков. Planned supplier payments are recorded in РегистрНакопления.ПланыОплатПоставщикам.
How is the document populated automatically?
The ЗаполнятьПоФормуле and ЗаполненоАвтоматически flags control automatic population. Calculation parameters are stored in the СтруктураНастроек and ПользовательскиеНастройки fields.
How can the document be customized safely?
Use a configuration extension for additional checks, form commands, print forms, and integration logic. Use subscriptions to the ПередЗаписью and ПриЗаписи events for integrations, and extend the document and list forms to add user commands.
