Systemorph / IFRS17CalculationEngine

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

Getter ReleasePattern #312

Closed sbatka closed 1 year ago

sbatka commented 1 year ago
          this getter should change. 

input is the identity tuple (with amountype, ...) the body of the method does:

  1. checks if RawVariable contains such a pattern, if yes return
  2. if not, checks if SingleDataNodeParameter has a pattern, if yes return it at the monthly basis
  3. if not, log error: MissingPattern for goc "X"

This getter should be used in MonthlyAmortizationFactorCashflow instead of private double[] NominalCuCashflow => GetScope((Identity with {AocType = AocTypes.CL}, (string)null, AmountTypes.CU, (int?)null)).Values;

_Originally posted by @dcolleoni in https://github.com/Systemorph/IFRS17CalculationEngine/pull/304#discussion_r1196501061_