Open amuolo opened 1 year ago
I believe the queries here below are be more correct than those currently implemented in the import storage
var ifrsVariables = parsedIfrsVariables.Union(openingIfrsVariables, EqualityComparer.Instance) .Concat(await querySource.Query() .Where(iv => iv.Partition == TargetPartition && !(iv.AocType == AocTypes.BOP && iv.Novelty == Novelties.I)) .Where(iv => (primaryScope.Contains(iv.DataNode) && !EstimateTypesByImportFormat[ImportFormat].Contains(iv.EstimateType)) || secondaryScope.Contains(iv.DataNode) ).ToArrayAsync());
FYI: @dcolleoni
I believe the queries here below are be more correct than those currently implemented in the import storage
var ifrsVariables = parsedIfrsVariables.Union(openingIfrsVariables, EqualityComparer.Instance)
.Concat(await querySource.Query()
.Where(iv => iv.Partition == TargetPartition && !(iv.AocType == AocTypes.BOP && iv.Novelty == Novelties.I))
.Where(iv => (primaryScope.Contains(iv.DataNode) &&
!EstimateTypesByImportFormat[ImportFormat].Contains(iv.EstimateType))
|| secondaryScope.Contains(iv.DataNode) ).ToArrayAsync());