drop unused SubTotal option
This commit is contained in:
parent
513846e8c2
commit
d025daa8a9
@ -94,7 +94,6 @@ vty :: [Opt] -> [String] -> Journal -> IO ()
|
|||||||
vty opts args j = do
|
vty opts args j = do
|
||||||
v <- mkVty
|
v <- mkVty
|
||||||
DisplayRegion w h <- display_bounds $ terminal v
|
DisplayRegion w h <- display_bounds $ terminal v
|
||||||
let opts' = SubTotal:opts
|
|
||||||
d <- getCurrentDay
|
d <- getCurrentDay
|
||||||
let a = enter d BalanceScreen args
|
let a = enter d BalanceScreen args
|
||||||
AppState {
|
AppState {
|
||||||
@ -102,7 +101,7 @@ vty opts args j = do
|
|||||||
,aw=fromIntegral w
|
,aw=fromIntegral w
|
||||||
,ah=fromIntegral h
|
,ah=fromIntegral h
|
||||||
,amsg=helpmsg
|
,amsg=helpmsg
|
||||||
,aopts=opts'
|
,aopts=opts
|
||||||
,aargs=args
|
,aargs=args
|
||||||
,ajournal=j
|
,ajournal=j
|
||||||
,abuf=[]
|
,abuf=[]
|
||||||
|
|||||||
@ -130,7 +130,7 @@ tests_Hledger_Cli = TestList
|
|||||||
]
|
]
|
||||||
|
|
||||||
,"balance report with account pattern o" ~:
|
,"balance report with account pattern o" ~:
|
||||||
([SubTotal], ["o"]) `gives`
|
([], ["o"]) `gives`
|
||||||
[" $1 expenses:food"
|
[" $1 expenses:food"
|
||||||
," $-2 income"
|
," $-2 income"
|
||||||
," $-1 gifts"
|
," $-1 gifts"
|
||||||
@ -217,7 +217,7 @@ tests_Hledger_Cli = TestList
|
|||||||
]
|
]
|
||||||
|
|
||||||
,"balance report with -E shows zero-balance accounts" ~:
|
,"balance report with -E shows zero-balance accounts" ~:
|
||||||
([SubTotal,Empty], ["assets"]) `gives`
|
([Empty], ["assets"]) `gives`
|
||||||
[" $-1 assets"
|
[" $-1 assets"
|
||||||
," $1 bank"
|
," $1 bank"
|
||||||
," 0 checking"
|
," 0 checking"
|
||||||
|
|||||||
@ -110,7 +110,6 @@ data Opt =
|
|||||||
| Flat
|
| Flat
|
||||||
| Drop {value::String}
|
| Drop {value::String}
|
||||||
| NoTotal
|
| NoTotal
|
||||||
| SubTotal
|
|
||||||
| DailyOpt
|
| DailyOpt
|
||||||
| WeeklyOpt
|
| WeeklyOpt
|
||||||
| MonthlyOpt
|
| MonthlyOpt
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user