We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9595df8 + c7bd759 commit 204707cCopy full SHA for 204707c
src/Refinancing.fs
@@ -156,7 +156,7 @@ module Refinancing =
156
|> Array.map (fun si -> si.Day, si.ScheduledPayment)
157
| FixedSchedules fixedSchedules ->
158
fixedSchedules
159
- |> Array.map (fun fs ->
+ |> Array.collect (fun fs ->
160
let scheduledPayment =
161
match fs.ScheduleType with
162
| ScheduleType.Original -> ScheduledPayment.quick (ValueSome fs.PaymentValue) ValueNone
@@ -174,7 +174,6 @@ module Refinancing =
174
fs.UnitPeriodConfig
175
|> Array.map (fun d -> OffsetDay.fromDate p.Basic.StartDate d, scheduledPayment)
176
)
177
- |> Array.concat
178
| CustomSchedule payments -> payments |> Map.toArray
179
180
// append the new schedule to the old schedule up to the point of settlement
0 commit comments