blob: 19ad3550cd23f348e66adcc5cc0e15628cef9071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
module Model.View.PaymentView
( PaymentView
, initPaymentView
) where
import Model.Payment exposing (Payments)
import Model.Payers exposing (Payers)
import Model.View.Payment.Add exposing (..)
import Model.View.Payment.Edition exposing (..)
type alias PaymentView =
{ userName : String
, add : AddPayment
, payments : Payments
, payers : Payers
, edition : Maybe Edition
}
initPaymentView : String -> Payments -> Payers -> PaymentView
initPaymentView userName payments payers =
{ userName = userName
, add = initAddPayment
, payments = payments
, payers = payers
, edition = Nothing
}
|