mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-30 00:16:56 +03:00
fix(skd-edit): modify-parameter availableValue parsing and formatting bugs
Fix 3 bugs in modify-parameter: (1) first availableValue rendered as raw text when combined with other kv pairs in same batch entry, (2) presentation values with spaces truncated by \S+ regex, (3) denyIncompleteValues/use inserted without line breaks. Root cause: if/else on rest.startsWith missed availableValue when preceded by other keys. Also fix namespace-aware element lookup using LocalName/local_name instead of SelectSingleNode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e731bde7f0
commit
d3520a8945
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "modify-parameter: combined kv + availableValue in single entry",
|
||||
"preRun": [
|
||||
{
|
||||
"script": "skd-compile/scripts/skd-compile",
|
||||
"input": {
|
||||
"dataSets": [{
|
||||
"name": "Основной",
|
||||
"query": "ВЫБРАТЬ Т.Сумма ИЗ Регистр КАК Т",
|
||||
"fields": ["Сумма: decimal(15,2)"]
|
||||
}],
|
||||
"parameters": [{"name": "ПорядокОкругления", "type": "string", "value": "Окр1_00"}]
|
||||
},
|
||||
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "{workDir}/Template.xml" }
|
||||
}
|
||||
],
|
||||
"params": {
|
||||
"templatePath": "Template.xml",
|
||||
"operation": "modify-parameter",
|
||||
"value": "ПорядокОкругления denyIncompleteValues=true use=Always availableValue=Перечисление.Округления.Окр1_00 presentation=руб. коп ;; ПорядокОкругления availableValue=Перечисление.Округления.Окр1 presentation=руб. ;; ПорядокОкругления availableValue=Перечисление.Округления.Окр1000 presentation=тыс. руб"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user