Показать сообщение отдельно
Старый 28.08.2021, 18:35   #478  
Libovs is offline
Libovs
Участник
 
224 / 53 (2) ++++
Регистрация: 26.03.2018
Выбираю все проводки по одному номеру ваучера
$GeneralJournalLines:Вычисляемое поле = FILTER(GeneralJournalEntry, GeneralJournalEntry.SubledgerVoucher='$LedgerTransLines'.Voucher): Список записей
$GeneralJournalAccountLines:Вычисляемое поле = FILTER(GeneralJournalAccountEntry, VALUEIN(GeneralJournalAccountEntry.GeneralJournalEntry, '$LedgerTransLines'.'$GeneralJournalLines', '$LedgerTransLines'.'$GeneralJournalLines'.RecId)): Список записей

Поля
Методы
Отношения
Финансовые аналитики
---LedgerDimension.Dimension(Счет ГК.Dimension):Запись
Вычисляемые поля
---$GeneralJournalLine:Вычисляемое поле = FIRSTORNULL(WHERE('$LedgerTransLines'.'$GeneralJournalLines', '$LedgerTransLines'.'$GeneralJournalLines'.RecId=@.GeneralJournalEntry)): Запись
---$LedgerDimension:Вычисляемое поле = WHERE(@.'LedgerDimension.Dimension'.'Main account and dimensions', @.'LedgerDimension.Dimension'.'Main account and dimensions'.Value.Code<>""): Список записей


Поле LedgerDimension представляется веткой Финаналитики.
Мапплю этот список на модель
Transactions(Проводки):Список записей = @.'$GeneralJournalAccountLines'
---AccountingDate(Дата учета):Дата = @.'$GeneralJournalLine'.AccountingDate
---AmountAccounting(Сумма в валюте учета):Вещественный = @.AccountingCurrencyAmount
---AmountReporting(Сумма в валюте отчетности):Вещественный = @.ReportingCurrencyAmount
---AmountTransaction(Сумма в валюте транзакции):Вещественный = @.TransactionCurrencyAmount
---Currency(Валюта):Строка = @.TransactionCurrencyCode
---JournalNumber(Номер журнала):Строка = @.'$GeneralJournalLine'.JournalNumber
---LedgerDimension(Аналитики):Список записей = @.'$LedgerDimension'
------Definition:Запись = @.Definition
---------Name:Строка = @.Definition.Name
---------Type:Строка = @.Definition.Type
------Value:Запись = @.Value
---------Code:Строка = @.Value.Code
---------Description:Строка = @.Value.Description

---LedgerDimensionValue(Аналитики значение):Строка = @.LedgerAccount
---MainAccountName(Счет ГК название):Строка = @.'>Relations'.MainAccount.Name
---MainAccountValue(Счет ГК):Строка = @.'>Relations'.MainAccount.MainAccountId
---Text(Описание):Строка = @.Text
---Voucher(Ваучер):Строка = @.'$GeneralJournalLine'.SubledgerVoucher


Список аналитик в модели заполняется без ошибок