From 54ebee2c97f37c657997c3b1fa1c5f5f7243ae36 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 1 Jun 2021 06:52:04 -0400 Subject: stub in:net metric --- hledger-overview.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hledger-overview.hs b/hledger-overview.hs index cae3149..61825e9 100755 --- a/hledger-overview.hs +++ b/hledger-overview.hs @@ -69,6 +69,8 @@ main = do sec "metrics" row " in-ex" (Limit 0 $ bal "^in ^ex:me:want ^ex:me:need" / monthsSinceBeginning t) $ Just "keep this negative to make progress" row " li:as" (Percent_ $ 100 * (- bal "^li") / bal "^as") Nothing + -- let lastyear = 2020 + -- row " in:net" (- getTotal j t (defreportopts {value_ = value_, period_ = YearPeriod 2020}) "^in:me") Nothing row "cred load" (Target 0 netCash) $ Just "credit spending minus cash. keep it positive" row "month nut" (Limit monthlyNut thisMonth) $ Just $ "avg: " <> (display $ Diff $ monthlyNut - thisMonth) row " bip" (pr $ roundTo 2 $ trivial * netWorth) Nothing -- cgit v1.2.3