Цитата:
Сообщение от
DaniilT
Разобрался, можно через секцию where сделать
X++:
static void Job309(Args _args)
{
MainAccount mainAccount;
while select mainAccount where mainAccount.MainAccountId >= '91.2.1' && mainAccount.MainAccountId <= '91.2.5' {
info(strFmt('%1', mainAccount.MainAccountId));
}
}
Люди в коде делают как то так
X++:
while select RecId from mainAccount
where mainAccount.MainAccountId >= MainAccount::find(rTax25LedgerInterval.FromMainAccountId).MainAccountId &&
mainAccount.MainAccountId <= MainAccount::find(rTax25LedgerInterval.ToMainAccountId).MainAccountId &&
mainAccount.LedgerChartOfAccounts == LedgerChartOfAccounts::current()