|
|
#1 |
|
Участник
|
Параметры распределения счетов ГК
Настраиваю распределение счетов ГК.
Если запись по распределению создается первый раз, то все работает. Если же изменяется уже существующее распределение, то получаем сообщение: "Существуют схемы распределения с различными критериями по аналитике. Это может привести к неправильному распределению." Полазил в коде, и в методе checkdimensionCriteria таблицы LedgerAllocation нашел следующую проверку: Код: while select ledgerAllocationCopy
where ledgerAllocationCopy.transBudget == this.transBudget &&
ledgerAllocationCopy.fromAccount == this.fromAccount
{
for (dimIdx = 1; dimIdx <= dimof(this.fromDimension); dimIdx++)
{
if (this.dimensionAllocation[dimIdx] != ledgerAllocationCopy.dimensionAllocation[dimIdx])
{
return checkFailed("@SYS59977");
}
}
}Код: if (this.dimensionAllocation[dimIdx] != ledgerAllocationCopy.dimensionAllocation[dimIdx]) Код: while select ledgerAllocationCopy
where ledgerAllocationCopy.transBudget == this.transBudget &&
ledgerAllocationCopy.fromAccount == this.fromAccount
&& ledgerAllocationCopy.RecId != this..RecId //дополнительная проверка
{
for (dimIdx = 1; dimIdx <= dimof(this.fromDimension); dimIdx++)
{
if (this.dimensionAllocation[dimIdx] != ledgerAllocationCopy.dimensionAllocation[dimIdx])
{
return checkFailed("@SYS59977");
}
}
} |
|
|