aboutsummaryrefslogtreecommitdiff
path: root/src/client/Model/View/LoggedIn/Account.elm
diff options
context:
space:
mode:
authorJoris2015-09-12 23:57:16 +0200
committerJoris2015-09-12 23:57:16 +0200
commita48e79e2f7c1ab1ffb52b86ef9e900c75c5d023b (patch)
tree05a613aef2d338f10bcdd394e520450656ed8f1c /src/client/Model/View/LoggedIn/Account.elm
parentd87dbd1360c14df83552fd757438c23e5d7b9f9c (diff)
downloadbudget-a48e79e2f7c1ab1ffb52b86ef9e900c75c5d023b.tar.gz
budget-a48e79e2f7c1ab1ffb52b86ef9e900c75c5d023b.tar.bz2
budget-a48e79e2f7c1ab1ffb52b86ef9e900c75c5d023b.zip
Adding UI income read-only
Diffstat (limited to 'src/client/Model/View/LoggedIn/Account.elm')
-rw-r--r--src/client/Model/View/LoggedIn/Account.elm19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/client/Model/View/LoggedIn/Account.elm b/src/client/Model/View/LoggedIn/Account.elm
new file mode 100644
index 0000000..410345c
--- /dev/null
+++ b/src/client/Model/View/LoggedIn/Account.elm
@@ -0,0 +1,19 @@
+module Model.View.LoggedIn.Account
+ ( Account
+ , initAccount
+ ) where
+
+import Model.Payers exposing (..)
+
+type alias Account =
+ { payers : Payers
+ , income : Maybe Int
+ , visibleDetail : Bool
+ }
+
+initAccount : Payers -> Maybe Int -> Account
+initAccount payers income =
+ { payers = payers
+ , income = income
+ , visibleDetail = False
+ }