mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-07 20:20:20 +03:00
fix(form-compile,meta-compile): PY ChartOfAccounts generators — list format + AccountingFlag name extraction
- form-compile.py: rewrite generate_chart_of_accounts_item_dsl and generate_chart_of_accounts_folder_dsl from dict-format to list-format (array of OrderedDict), matching PS1 canonical output - meta-compile.py/ps1: extract flag['name'] from AccountingFlags and ExtDimensionAccountingFlags dicts instead of stringifying the whole object - Update snapshots with clean flag names (Валютный/Количественный) 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
0d31d17204
commit
aedf6df674
@@ -2694,10 +2694,12 @@ if ($objType -in $typesWithAttrTS) {
|
||||
Emit-TabularSection "`t`t`t" $tsName $columns $objType $objName
|
||||
}
|
||||
foreach ($af in $acctFlags) {
|
||||
Emit-AccountingFlag "`t`t`t" "$af"
|
||||
$afName = if ($af.name) { $af.name } else { "$af" }
|
||||
Emit-AccountingFlag "`t`t`t" $afName
|
||||
}
|
||||
foreach ($edf in $extDimFlags) {
|
||||
Emit-ExtDimensionAccountingFlag "`t`t`t" "$edf"
|
||||
$edfName = if ($edf.name) { $edf.name } else { "$edf" }
|
||||
Emit-ExtDimensionAccountingFlag "`t`t`t" $edfName
|
||||
}
|
||||
foreach ($aa in $addrAttrs) {
|
||||
Emit-AddressingAttribute "`t`t`t" $aa
|
||||
|
||||
Reference in New Issue
Block a user