mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-12 17:04:57 +03:00
0778cc89ee
- runner.mjs v0.4: --with-validation flag runs validators on real output - postValidate config in 20 _skill.json files (maps skill → validator) - validatePath in ~100 positive test cases - skipValidation for 5 cross-reference cases (isolated workspace limitation) - Integration tests: build-config (19 steps), build-epf (6), build-cfe (4) - base-config cache from build-config for downstream tests - Fix chart-of-calculation-types test data (DependenceOnCalculationTypes) - 285/285 unit + 3/3 integration, all green with validation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
110 lines
4.2 KiB
JSON
110 lines
4.2 KiB
JSON
{
|
||
"name": "Печатная форма — шапка + реквизиты + таблица + подвал",
|
||
"input": {
|
||
"columns": 10,
|
||
"page": "A4-portrait",
|
||
"columnWidths": { "1": "1x", "2-8": "1x", "9": "1x", "10": "1x" },
|
||
"fonts": {
|
||
"default": { "face": "Arial", "size": 10 },
|
||
"bold": { "face": "Arial", "size": 10, "bold": true },
|
||
"header": { "face": "Arial", "size": 14, "bold": true },
|
||
"small": { "face": "Arial", "size": 8 }
|
||
},
|
||
"styles": {
|
||
"title": { "font": "header", "align": "center" },
|
||
"label": { "font": "bold" },
|
||
"bordered": { "border": "all" },
|
||
"bordered-right": { "border": "all", "align": "right" },
|
||
"bordered-center": { "border": "all", "align": "center" },
|
||
"total-label": { "font": "bold", "align": "right" },
|
||
"total-value": { "font": "bold", "border": "top", "align": "right" },
|
||
"sign-line": { "border": "bottom" },
|
||
"small-center": { "font": "small", "align": "center" }
|
||
},
|
||
"areas": [
|
||
{
|
||
"name": "Заголовок",
|
||
"rows": [
|
||
{ "height": 20, "cells": [
|
||
{ "col": 1, "span": 10, "style": "title", "param": "ТекстЗаголовка" }
|
||
]},
|
||
{},
|
||
{ "cells": [
|
||
{ "col": 1, "span": 3, "style": "label", "text": "Организация:" },
|
||
{ "col": 4, "span": 7, "param": "Организация" }
|
||
]},
|
||
{ "cells": [
|
||
{ "col": 1, "span": 3, "style": "label", "text": "Контрагент:" },
|
||
{ "col": 4, "span": 7, "param": "Контрагент" }
|
||
]}
|
||
]
|
||
},
|
||
{
|
||
"name": "ШапкаТаблицы",
|
||
"rows": [
|
||
{ "rowStyle": "bordered", "cells": [
|
||
{ "col": 1, "style": "bordered-center", "text": "№" },
|
||
{ "col": 2, "span": 5, "style": "bordered-center", "text": "Наименование" },
|
||
{ "col": 7, "style": "bordered-center", "text": "Ед." },
|
||
{ "col": 8, "style": "bordered-center", "text": "Кол-во" },
|
||
{ "col": 9, "style": "bordered-center", "text": "Цена" },
|
||
{ "col": 10, "style": "bordered-center", "text": "Сумма" }
|
||
]}
|
||
]
|
||
},
|
||
{
|
||
"name": "Строка",
|
||
"rows": [
|
||
{ "rowStyle": "bordered", "cells": [
|
||
{ "col": 1, "style": "bordered-center", "param": "НомерСтроки" },
|
||
{ "col": 2, "span": 5, "param": "Товар", "detail": "Номенклатура" },
|
||
{ "col": 7, "style": "bordered-center", "param": "ЕдИзм" },
|
||
{ "col": 8, "style": "bordered-right", "param": "Количество" },
|
||
{ "col": 9, "style": "bordered-right", "param": "Цена" },
|
||
{ "col": 10, "style": "bordered-right", "param": "Сумма" }
|
||
]}
|
||
]
|
||
},
|
||
{
|
||
"name": "Итого",
|
||
"rows": [
|
||
{ "cells": [
|
||
{ "col": 8, "span": 2, "style": "total-label", "text": "Итого:" },
|
||
{ "col": 10, "style": "total-value", "param": "ИтогоСумма" }
|
||
]},
|
||
{ "cells": [
|
||
{ "col": 8, "span": 2, "style": "total-label", "text": "В т.ч. НДС:" },
|
||
{ "col": 10, "style": "total-value", "param": "ИтогоНДС" }
|
||
]}
|
||
]
|
||
},
|
||
{
|
||
"name": "Подвал",
|
||
"rows": [
|
||
{ "empty": 2 },
|
||
{ "cells": [
|
||
{ "col": 1, "span": 3, "style": "label", "text": "Отпустил:" },
|
||
{ "col": 4, "span": 3, "style": "sign-line", "param": "Отпустил" }
|
||
]},
|
||
{ "cells": [
|
||
{ "col": 4, "span": 3, "style": "small-center", "text": "(подпись)" }
|
||
]},
|
||
{},
|
||
{ "cells": [
|
||
{ "col": 1, "span": 3, "style": "label", "text": "Получил:" },
|
||
{ "col": 4, "span": 3, "style": "sign-line", "param": "Получил" }
|
||
]},
|
||
{ "cells": [
|
||
{ "col": 4, "span": 3, "style": "small-center", "text": "(подпись)" }
|
||
]}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"params": { "outputPath": "Template.xml" },
|
||
"validatePath": "Template.xml",
|
||
"expect": {
|
||
"files": ["Template.xml"]
|
||
}
|
||
}
|