mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-27 04:25:54 +03:00
modify.properties создавал отсутствующий элемент до Set-ComplexProperty, и решение Get-ListPropertyElement обходилось: пустой список дописывал <RegisterRecords/> заимствованному объекту, а у обычного объекта без элемента не было отказа. Свойство-список теперь уходит в Set-ComplexProperty до create-if-missing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
102 lines
2.3 KiB
JSON
102 lines
2.3 KiB
JSON
{
|
|
"name": "Пустой список движений у заимствованного документа без элемента: ничего не создаётся",
|
|
"setup": "empty-config-220",
|
|
"preRun": [
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": {
|
|
"type": "AccumulationRegister",
|
|
"name": "Ост",
|
|
"dimensions": [
|
|
"Товар: String(10)"
|
|
],
|
|
"resources": [
|
|
"Кол: Number(10,0)"
|
|
]
|
|
},
|
|
"args": {
|
|
"-JsonPath": "{inputFile}",
|
|
"-OutputDir": "{workDir}"
|
|
}
|
|
},
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": {
|
|
"type": "AccumulationRegister",
|
|
"name": "Ост2",
|
|
"dimensions": [
|
|
"Товар: String(10)"
|
|
],
|
|
"resources": [
|
|
"Кол: Number(10,0)"
|
|
]
|
|
},
|
|
"args": {
|
|
"-JsonPath": "{inputFile}",
|
|
"-OutputDir": "{workDir}"
|
|
}
|
|
},
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": {
|
|
"type": "Document",
|
|
"name": "Расх",
|
|
"registerRecords": [
|
|
"AccumulationRegister.Ост",
|
|
"AccumulationRegister.Ост2"
|
|
]
|
|
},
|
|
"args": {
|
|
"-JsonPath": "{inputFile}",
|
|
"-OutputDir": "{workDir}"
|
|
}
|
|
},
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": {
|
|
"type": "Document",
|
|
"name": "Прих"
|
|
},
|
|
"args": {
|
|
"-JsonPath": "{inputFile}",
|
|
"-OutputDir": "{workDir}"
|
|
}
|
|
},
|
|
{
|
|
"script": "cfe-init/scripts/cfe-init",
|
|
"args": {
|
|
"-Name": "Расш",
|
|
"-OutputDir": "{workDir}/cfe",
|
|
"-ConfigPath": "{workDir}"
|
|
}
|
|
},
|
|
{
|
|
"script": "cfe-borrow/scripts/cfe-borrow",
|
|
"args": {
|
|
"-ExtensionPath": "{workDir}/cfe",
|
|
"-ConfigPath": "{workDir}",
|
|
"-Object": "Document.Прих ;; AccumulationRegister.Ост ;; AccumulationRegister.Ост2"
|
|
}
|
|
}
|
|
],
|
|
"params": {
|
|
"objectPath": "cfe/Documents/Прих.xml",
|
|
"extensionPath": "cfe"
|
|
},
|
|
"input": {
|
|
"modify": {
|
|
"properties": {
|
|
"RegisterRecords": []
|
|
}
|
|
}
|
|
},
|
|
"expect": {
|
|
"fileNotContains": [
|
|
{
|
|
"file": "cfe/Documents/Прих.xml",
|
|
"text": "RegisterRecords"
|
|
}
|
|
]
|
|
}
|
|
}
|