The post has been translated automatically. Original language: Russian
How we described the revision of 1C: specification and design doc
In one day, we went from the customer's request to the specification, design doc and code in the upload files. It wasn 't the documents themselves that helped the most, but 29 questions that had to be closed before development began.
Where did we start
We had an application for revision, a concept, a process passport, form layouts and a diagram. We asked the AI assistant Claude Code.: "Is this design docs?" It turned out that there was no: these are the initial requirements. The design doc describes the technical device, and it is usually written after the specification.
Revision – accounting for unsettled diamonds in 1C: examination, revaluation, ownership, sale and write-off.
The order turned out like this:
1. We collected the source files and named each one with its own name: business requirements, concept, process description, layouts, process model.
2. We have received a draft specification: 51 requirements, formulas with control examples, acceptance criteria and 18 open questions.
3. Closed the questions in the document itself.
4. A design doc was written based on the finished specification and configuration upload.
5. We divided the code into 8 stages and updated the documents after the decisions.
How does the specification differ from the design doc?
The specification defines what the system should do, and the design doc defines how it works inside. The first one is approved by the customer, and the second one is written by the developer.
| Specification | Design doc | |
| Content | Requirements, calculations, printed forms, roles, acceptance | Objects, props, register movements, algorithms, rights, development procedure |
| Example: sale | You can't sell a stone off balance | Blocking of balances, checking during carrying out, control of negative balance |
| Example: price | Formula and test case: 157,900 | The function of the general module and the place of rounding |
| Example: report | Which speakers are needed | SKD and data sources |
Each requirement received a number: FT-01, FT-02 and further. FT is a functional requirement. Instead of "that reassessment check," everyone says "FT-52" and understands the same thing.
We didn't move the numbers. When FT-15 was no longer needed, after FT-14, FT-16 simply went, and the old links did not break.
How the questions were closed
The questions lived in a table inside the document, not in correspondence. Everyone had a suggestion, a responsible person, and an empty "Answer" column. If the offer is suitable, just write "Yes".
| Circle | Questions | Where from They took it |
| Specification, first | 18 | Gaps and contradictions in the source files |
| Specification, second | 5 | The answers of the first round collided between by myself |
| Specification, third | 2 | Reconciliation of roles with configuration |
| Design doc | 4 | Code analysis |
Questions that changed the decision:
• Write-downs. The scheme and passport of the process required it after a negative examination, but it was not in the application. This is how a separate document appeared.
• The amount of the transaction. The estimated cost was in the response , and the cost was in the source files. They are calculated from different weights, so we clarified and selected the cost.
• The quantity in the card. Selling one piece would write off the cost of the entire card. The props were removed: one card, one stone.
The customer's responses were not rewritten in the table. If the decision changed, it was recorded separately, with a date and an indication of which answer it replaces.
The documents were changed along with the code
Neither the specification nor the design doc remained the same as we approved them, and this is normal. The main thing is to make a decision in the text immediately.
• The register of information has become the register of balances. In the application, the balance of the stones was a register of information. After the design doc, we proposed an accumulation register: registration makes an income, sale makes an expense. It became clear what is on the balance sheet now, and it is easier to prohibit the re-sale. The replacement was marked as requiring approval from the author of the application.
• The code found something that wasn't in the requirements. The renamed column was also in the neighboring document. Without the correction, the cost would no longer be transferred there. The find was included in both documents.
• A forgotten requirement. The display of the latest prices in the stone card was remembered after the first stage. It was added to the specification along with the acceptance criterion, and to the design doc – with a sample code.
• The assistant's mistake. He suggested adding the number and date of the report to the examination document and did not take into account that similar fields already exist in the card. The error was noticed at the next stage and clarified: the conclusion is the same for the entire batch.
The test example from the specification then became an automatic check. The test in the database copy received the same 157,900, and the prohibitions turned from requirements into failure scenarios.
What to take for yourself
Our sections can be used as a template.
| № | Specification | Design doc |
| 1 | Purpose and boundaries | The solution is short |
| 2 | Business process | Mutable and new objects |
| 3 | Functional requirements | Structure of documents and registers |
| 4 | Calculations, printed forms, report | Movements |
| 5 | Integration and transactions | Algorithms and checks |
| 6 | Roles and acceptance criteria | Printing, report, transactions |
| 7 | Questions and solutions | Rights and renames |
| 8 | – | Development procedure and questions |
Five Rules that Worked:
1. Write what is not included in the volume. This saves disputes on acceptance.
2. For each formula, let's give an example with numbers.
3. Check the requirements against the actual configuration before the code, not during.
4. Keep the questions and answers in the document, next to the requirements.
5. If you've changed your mind, update both documents on the same day.
The AI assistant is good at finding contradictions between files and comparing the text with the code. Decisions on accounting, rights, and the process were made by people: the assistant suggested an option, the person answered "yes", "no" or in their own way.
Как мы описали доработку 1С: спецификация и design doc
За один день мы прошли путь от заявки заказчика до спецификации, design doc и кода в файлах выгрузки. Больше всего помогли не сами документы, а 29 вопросов, которые пришлось закрыть до начала разработки.
С чего начали
У нас были заявка на доработку, концепт, паспорт процесса, макеты форм и схема. Мы спросили у ИИ-ассистента Claude Code: «Это design docs?» Оказалось, что нет: это исходные требования. Design doc описывает техническое устройство, и обычно его пишут после спецификации.
Доработка – учёт неоправленных бриллиантов в 1С: экспертиза, переоценка, оприходование в собственность, продажа и списание.
Порядок получился такой:
1. Собрали исходные файлы и назвали каждый своим именем: бизнес-требования, концепция, описание процесса, макеты, модель процесса.
2. Получили черновик спецификации: 51 требование, формулы с контрольными примерами, критерии приёмки и 18 открытых вопросов.
3. Закрыли вопросы в самом документе.
4. По готовой спецификации и выгрузке конфигурации написали design doc.
5. Разбили код на 8 этапов и после решений обновляли документы.
Чем спецификация отличается от design doc
Спецификация отвечает, что система должна делать, design doc – как это устроено внутри. Первую согласует заказчик, по второму пишет разработчик.
| Спецификация | Design doc | |
| Содержание | Требования, расчёты, печатные формы, роли, приёмка | Объекты, реквизиты, движения регистров, алгоритмы, права, порядок разработки |
| Пример: продажа | Камень не с баланса продать нельзя | Блокировка остатков, проверка при проведении, контроль отрицательного остатка |
| Пример: цена | Формула и контрольный пример: 157 900 | Функция общего модуля и место округления |
| Пример: отчёт | Какие колонки нужны | СКД и источники данных |
Каждое требование получило номер: ФТ-01, ФТ-02 и далее. ФТ – функциональное требование. Вместо «та проверка при переоценке» все говорят «ФТ-52» и понимают одно и то же.
Номера мы не сдвигали. Когда ФТ-15 стало не нужно, после ФТ-14 просто пошло ФТ-16, и старые ссылки не сломались.
Как закрывали вопросы
Вопросы жили в таблице внутри документа, а не в переписке. У каждого были предложение, ответственный и пустая колонка «Ответ». Если предложение подходит, достаточно написать «Да».
| Круг | Вопросов | Откуда взялись |
| Спецификация, первый | 18 | Пробелы и противоречия в исходных файлах |
| Спецификация, второй | 5 | Ответы первого круга столкнулись между собой |
| Спецификация, третий | 2 | Сверка ролей с конфигурацией |
| Design doc | 4 | Разбор кода |
Вопросы, которые изменили решение:
• Списание. Схема и паспорт процесса требовали его после отрицательной экспертизы, а в заявке его не было. Так появился отдельный документ.
• Сумма проводки. В ответе стояла оценочная стоимость, в исходных файлах – себестоимость. Они считаются от разного веса, поэтому уточнили и выбрали себестоимость.
• Количество в карточке. Продажа одной штуки списала бы себестоимость всей карточки. Реквизит убрали: одна карточка – один камень.
Ответы заказчика в таблице не переписывали. Если решение менялось, его записывали отдельно, с датой и указанием, какой ответ оно заменяет.
Документы менялись вместе с кодом
Ни спецификация, ни design doc не остались такими, какими мы их утвердили, и это нормально. Главное – вносить решение в текст сразу.
• Регистр сведений стал регистром остатков. В заявке баланс камней был регистром сведений. Уже после design doc мы предложили регистр накопления: оприходование делает приход, продажа – расход. Стало видно, что на балансе сейчас, и проще запретить повторную продажу. Замену пометили как требующую согласования с автором заявки.
• Код нашёл то, чего не было в требованиях. Переименованная колонка была и в соседнем документе. Без правки там себестоимость перестала бы переноситься. Находку внесли в оба документа.
• Забытое требование. Показ последних цен в карточке камня вспомнили уже после первого этапа. Его дописали в спецификацию вместе с критерием приёмки, а в design doc – с образцом кода.
• Ошибка ассистента. Он предложил добавить номер и дату заключения в документ экспертизы и не учёл, что похожие поля уже есть в карточке. Ошибку заметили на следующем этапе и уточнили: заключение одно на всю партию.
Контрольный пример из спецификации потом стал автоматической проверкой. Тест в копии базы получил те же 157 900, а запреты из требований превратились в сценарии отказа.
Что взять себе
Наши разделы можно использовать как шаблон.
| № | Спецификация | Design doc |
| 1 | Назначение и границы | Решение кратко |
| 2 | Бизнес-процесс | Изменяемые и новые объекты |
| 3 | Функциональные требования | Структура документов и регистров |
| 4 | Расчёты, печатные формы, отчёт | Движения |
| 5 | Интеграция и проводки | Алгоритмы и проверки |
| 6 | Роли и критерии приёмки | Печать, отчёт, проводки |
| 7 | Вопросы и решения | Права и переименования |
| 8 | – | Порядок разработки и вопросы |
Пять правил, которые сработали:
1. Пишите, что не входит в объём. Это экономит споры на приёмке.
2. К каждой формуле давайте пример с числами.
3. Сверяйте требования с реальной конфигурацией до кода, а не во время.
4. Держите вопросы и ответы в документе, рядом с требованиями.
5. Изменили решение – обновите оба документа в тот же день.
ИИ-ассистент хорошо находит противоречия между файлами и сверяет текст с кодом. Решения по учёту, правам и процессу принимали люди: ассистент предлагал вариант, человек отвечал «да», «нет» или по-своему.
Comments 1
Newest Popular