Skip to content

Commit 1f2c11d

Browse files
committed
ui: fix breakage from "areg: begin respecting --date2" (#1731)
1 parent e4263e6 commit 1f2c11d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hledger-ui/Hledger/UI/RegisterScreen.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ rsInit d reset ui@UIState{aopts=_uopts@UIOpts{uoCliOpts=copts@CliOpts{reportspec
7272
-- always show historical balance
7373
-- , balanceaccum_= Historical
7474
}
75+
wd = whichDate ropts'
7576
rspec' = reportSpecSetFutureAndForecast d (forecast_ $ inputopts_ copts) .
7677
either (error "rsInit: adjusting the query for register, should not have failed") id $ -- PARTIAL:
7778
updateReportSpec ropts' rspec{_rsDay=d}
@@ -84,7 +85,7 @@ rsInit d reset ui@UIState{aopts=_uopts@UIOpts{uoCliOpts=copts@CliOpts{reportspec
8485
displayitems = map displayitem items'
8586
where
8687
displayitem (t, _, _issplit, otheracctsstr, change, bal) =
87-
RegisterScreenItem{rsItemDate = showDate $ transactionRegisterDate (_rsQuery rspec') thisacctq t
88+
RegisterScreenItem{rsItemDate = showDate $ transactionRegisterDate wd (_rsQuery rspec') thisacctq t
8889
,rsItemStatus = tstatus t
8990
,rsItemDescription = tdescription t
9091
,rsItemOtherAccounts = otheracctsstr

0 commit comments

Comments
 (0)