summaryrefslogtreecommitdiff
path: root/Handler/InventoryList.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Handler/InventoryList.hs')
-rw-r--r--Handler/InventoryList.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Handler/InventoryList.hs b/Handler/InventoryList.hs
new file mode 100644
index 0000000..518d910
--- /dev/null
+++ b/Handler/InventoryList.hs
@@ -0,0 +1,12 @@
1module Handler.InventoryList where
2
3import Import
4import Handler.Common
5
6import Data.Time.Calendar
7
8getInventoryListR :: Handler Html
9getInventoryListR = do
10 (stockSort -> stock) <- runDB $ withTypes =<< selectList [] []
11 today <- utctDay <$> liftIO getCurrentTime
12 defaultLayout $(widgetFile "inventoryList")