(calc-leave {:keys [body] :as request})
Calculate end of year leave/pto balance.
Calculate end of year leave/pto balance.
Load server configuration from the environment.
Load server configuration from the environment.
(cur-bal-info leave-inputs)
Build a map of the current leave balance information.
Build a map of the current leave balance information.
(float-two x)
Format a two decimal precision floating point number.
Format a two decimal precision floating point number.
(health request)
Determine if application is running ok.
Determine if application is running ok.
(leave-info {:keys [rate bal] :or {rate 4.0 bal 250.0}})
Build a map of leave inputs.
Build a map of leave inputs.
(leave-lost {:keys [bal max-bal]} end-bal)
Calculate how much leave will be lost if none is taken.
Calculate how much leave will be lost if none is taken.
(new-leave rate weeks-left)
Determine the new leave hours accrued.
Determine the new leave hours accrued.
(rec-leave {:keys [weeks-left-in-year]} lost-leave)
Recommended leave to take each week to avoid losing any.
Recommended leave to take each week to avoid losing any.
(show-config request)
Show the service config settings.
Show the service config settings.
(total-leave {:keys [bal rate weeks-left-in-year]})
Total leave balance after new hours are accrued.
Total leave balance after new hours are accrued.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close