Systemorph / IFRS17CalculationEngine

Systemorph IFRS 17 Calculation Engine
MIT License
28 stars 5 forks source link

Improve Import Storage queries #278

Open amuolo opened 1 year ago

amuolo commented 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());

amuolo commented 1 year ago

FYI: @dcolleoni