Skip to content

Commit

Permalink
cli: Commands.Register: rename parameter base -> baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
thielema authored and simonmichael committed Oct 20, 2024
1 parent 84a6e16 commit f1ded22
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hledger/Hledger/Cli/Commands/Register.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ postingsReportAsCsv =

postingsReportAsSpreadsheet ::
AmountFormat -> Maybe Text -> [Text] ->
PostingsReport -> [[Spr.Cell Spr.NumLines T.Text]]
postingsReportAsSpreadsheet fmt base query is =
PostingsReport -> [[Spr.Cell Spr.NumLines Text]]
postingsReportAsSpreadsheet fmt baseUrl query is =
Spr.addHeaderBorders
(map Spr.headerCell
["txnidx","date","code","description","account","amount","total"])
:
map (postingsReportItemAsRecord fmt base query) is
map (postingsReportItemAsRecord fmt baseUrl query) is

{- ToDo:
link txnidx to journal URL,
Expand All @@ -136,12 +136,12 @@ link txnidx to journal URL,
postingsReportItemAsRecord ::
(Spr.Lines border) =>
AmountFormat -> Maybe Text -> [Text] ->
PostingsReportItem -> [Spr.Cell border T.Text]
postingsReportItemAsRecord fmt base query (_, _, _, p, b) =
PostingsReportItem -> [Spr.Cell border Text]
postingsReportItemAsRecord fmt baseUrl query (_, _, _, p, b) =
[idx,
(dateCell base query (paccount p) date) {Spr.cellType = Spr.TypeDate},
(dateCell baseUrl query (paccount p) date) {Spr.cellType = Spr.TypeDate},
cell code, cell desc,
setAccountAnchor base query (paccount p) $ cell acct,
setAccountAnchor baseUrl query (paccount p) $ cell acct,
amountCell (pamount p),
amountCell b]
where
Expand Down

0 comments on commit f1ded22

Please sign in to comment.