aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Model/Payer.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/elm/Model/Payer.elm')
-rw-r--r--src/client/elm/Model/Payer.elm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/elm/Model/Payer.elm b/src/client/elm/Model/Payer.elm
index fb9940a..e5a4b65 100644
--- a/src/client/elm/Model/Payer.elm
+++ b/src/client/elm/Model/Payer.elm
@@ -71,7 +71,7 @@ useIncomesFrom : Users -> Incomes -> Payments -> Maybe Time
useIncomesFrom users incomes payments =
let firstPaymentTime =
payments
- |> List.map (Date.toTime << .creation)
+ |> List.map (Date.toTime << .date)
|> List.sort
|> List.head
mbIncomeTime = incomeDefinedForAll (Dict.keys users) incomes
@@ -90,7 +90,7 @@ getPayers currentTime users incomes payments =
( userId
, { preIncomePaymentSum =
totalPayments
- (\p -> (Date.toTime p.creation) < (Maybe.withDefault currentTime incomesDefined))
+ (\p -> (Date.toTime p.date) < (Maybe.withDefault currentTime incomesDefined))
userId
payments
, postIncomePaymentSum =
@@ -98,7 +98,7 @@ getPayers currentTime users incomes payments =
(\p ->
case incomesDefined of
Nothing -> False
- Just t -> (Date.toTime p.creation) >= t
+ Just t -> (Date.toTime p.date) >= t
)
userId
payments