Henning Thielemann
5565f11c73
cli: Commands.Balance.multiBalanceReportAsSpreadsheetHelper: vertically merge cells showing account names and Total
...
lib: Write.Spreadsheet: add support for cell spans
2024-09-29 19:25:05 -10:00
Henning Thielemann
2f9a8031b0
lib: Write.Html -> Write.Html.Lucid
...
Write.Html: keep common definitions for both HTML backends
2024-09-29 13:27:51 -10:00
Henning Thielemann
d8fc30f7c5
lib: Write.Html.Attribute.tableStyle: style definitions taken from Commands.Balance.multiBalanceReportAsHtml
...
avoid duplicate with Write.Html.printHtml
Write.Html.Attribute: remove dependency on Lucid
2024-09-29 13:27:51 -10:00
Simon Michael
d88e30ff43
;doc: update help
2024-09-29 12:13:30 -10:00
Simon Michael
52402cd084
imp: bal: tweak --related, --transpose help
2024-09-29 12:12:15 -10:00
Simon Michael
e9a3f99553
imp: balcmds: support --count on all of them, why not
2024-09-29 12:12:15 -10:00
Simon Michael
40b8d2b517
imp: balcmds: tweak --base-url help [ #2226 ]
2024-09-29 12:12:15 -10:00
Simon Michael
c8710958a6
imp: cli: more consistent options order between bal cmds
2024-09-29 11:39:23 -10:00
Simon Michael
5a4e5dc099
;doc: bal: simplify hyperlinks doc a little [ #2226 ]
...
I think this will be enough.
2024-09-29 11:31:04 -10:00
Henning Thielemann
e116b6af41
cli: Commands.Balance.composeAnchor: construct an anchor from Maybe base-url and query
...
Optionally add a missing trailing slash to the base URL.
2024-09-29 11:12:17 -10:00
Simon Michael
2a25bfdebc
dev: fix typo in bal --base-url help [ #2226 ]
2024-09-28 22:21:58 -10:00
Henning Thielemann
9cdd21bf6d
cli: Commands.Balance.registerQueryUrl: correctly escape URL using modern-uri package
2024-09-28 22:12:51 -10:00
Henning Thielemann
3cd6e95746
doc: Commands/Balance.md: document hyperlinks and --base-url
2024-09-28 22:12:51 -10:00
Henning Thielemann
6e7324a36e
cli: Command.Balance: pass command-line query to HTML and FODS hyperlinks
2024-09-28 22:12:51 -10:00
Henning Thielemann
cc86cd1f0e
cli: Commands.Balance.multiBalanceReportAsSpreadsheet: add date query anchors to period headers
2024-09-28 22:12:51 -10:00
Henning Thielemann
499c626e48
lib: Write.Spreadsheet: support for anchors in HTML and FODS export
...
cli: Commands.Balance: new option --base-url
It adds hledger-web-compatible hyperlinks to account names.
2024-09-28 22:12:51 -10:00
Henning Thielemann
8744a0687c
cli: CompoundBalanceCommand: use Html.Attribute.alignleft
2024-09-28 22:07:39 -10:00
Simon Michael
eb9e4aa9b6
;doc: demo: link asciinema
2024-09-27 01:30:53 -10:00
Henning Thielemann
6ce6c72fd4
lib: Write.Html.Attributes: extracted HTML output helpers from Cli.Commands.Balance
2024-09-24 22:51:30 -10:00
Henning Thielemann
144098e407
cli: CompoundBalanceCommand.compoundBalanceReportAsHtml: create according TH cells only if row-total or average is requested
...
fixed bug #2225
2024-09-18 12:17:00 -07:00
Bas van Dijk
fb47073c91
fix: amount formatting of the Net row in the balancesheet HTML output
...
The "Net" row in the HTML output of balancesheet formatted amounts using machineFmt which is inconsistent with all the other amounts in the balance sheet. This fixes that by formatting Net amounts using oneLineNoCostFmt.
2024-09-18 10:08:19 -07:00
Simon Michael
d2793dfd3a
;dev: cleanup: fix Balance.hs typo
2024-09-11 14:01:53 -07:00
Simon Michael
0b95ff0aa5
;dev: cleanup: drop obscure todo comment [ #2222 ]
2024-09-11 14:00:28 -07:00
Henning Thielemann
fdc3e674a5
cli: Commands.Balance.multiBalanceReportAsSpreadsheetHelper: return header separately
2024-09-11 13:51:09 -07:00
Henning Thielemann
5a7d0687d5
cli: Commands.Balance.multiBalanceRowAsTextBuilders, multiBalanceReportAsCsvHelper: helper functions removed
2024-09-11 13:51:09 -07:00
Henning Thielemann
ff397f79cc
lib: Write.Spreadsheet.Cell: add cellClass field for HTML style class
...
cmd: Commands.Balance.multiBalanceRowAsCellBuilders: add HTML style class attributes here
This way we do not need to dissect table rows in
multiBalanceReportHtmlHeadRow, multiBalanceReportHtmlBodyRow, multiBalanceReportHtmlFootRow
Eventually removed these three functions.
2024-09-11 13:51:09 -07:00
Henning Thielemann
2fcf793221
cli: Commands.Cli.Balance.rawTableContent: helper function for extracting CSV from Spreadsheet cells
2024-09-11 13:51:09 -07:00
Henning Thielemann
df9531a6b7
cli: Commands.Balance.balanceReportAsSpreadsheet, multiBalanceReportAsSpreadsheet: support for transposition
2024-09-11 13:51:09 -07:00
Henning Thielemann
55c1246598
cli: Commands.Balance.budgetReportAsSpreadsheet: also transpose border
2024-09-11 13:51:09 -07:00
Henning Thielemann
2ed13afed4
lib: Write.Spreadsheet: support for borders like in existing HTML export
...
cli: Commands.Balance: use for FODS export and balance and budget export to HTML
2024-09-11 13:51:09 -07:00
Simon Michael
91db5ef5d1
;doc: update help
2024-09-09 14:07:07 -07:00
Simon Michael
a505ffd3bf
;doc: update help
2024-09-09 14:04:43 -07:00
Simon Michael
5cbbdb4670
imp: reg --sort: show supported keys in help and error message [ #2211 ]
2024-09-09 14:04:43 -07:00
Michael Rees
52253c01f6
Add absamount as --sort field for register
2024-09-05 11:56:07 +01:00
Michael Rees
d96e3a1e5a
;Include desc/description field in help text for --sort
2024-09-05 11:56:07 +01:00
Michael Rees
74db7f688c
Document register --sort in Register.md
2024-09-05 11:56:07 +01:00
Michael Rees
4b564966c9
Improve register --sort help message
2024-09-05 11:56:07 +01:00
Michael Rees
b4a9f87fe4
Move SortSpec to Hledger.Reports.ReportOptions
...
As part of this migration, I also switched from using Data.List.splitOn
to Hledger.Utils.splitAtElement.
2024-09-05 11:56:07 +01:00
Michael Rees
00eb0aa16b
feat: register: add --sort as in ledger
2024-09-05 11:56:07 +01:00
Henning Thielemann
57b2d02760
cli: Commands.Balance.budgetReportAsSpreadsheetHelper: no longer needed
2024-09-04 16:15:19 +01:00
Henning Thielemann
2d59bc8591
cli: Commands.Balance.budgetReportAsCsv, budgetReportAsSpreadsheet: remove duplicate transposition
2024-09-04 16:15:19 +01:00
Henning Thielemann
70e556998f
cli: Command.Balance.budgetReportAsSpreadsheet: support for budget export to HTML and FODS
2024-08-16 16:57:38 +02:00
Henning Thielemann
3af8eb3bc6
cli: Command.Balance: use Date format for dates in LayoutTidy
2024-08-16 16:57:38 +02:00
Henning Thielemann
da61b64f94
cli: Command.Balance: support FODS export for multibalance
...
Data.Amount.showMixedAmountLinesPartsB: new helper function
2024-08-16 16:57:38 +02:00
Henning Thielemann
66a047aade
lib: Write.Spreadsheet.Cell: add type parameter for the text type
...
instance Functor Cell
This way you can choose between Text, Lazy.Text, WideBuilder for cell content.
2024-08-16 16:57:38 +02:00
Henning Thielemann
f306df6d61
imp: lib: Write.Html: use Lucid to generate HTML
2024-08-16 16:57:38 +02:00
Henning Thielemann
48723c930c
cli: Cli.Balance.balanceReportAsCvs: now based on balanceReportAsSpreadsheet
...
This warrants consistency of ODS, HTML and CSV export.
2024-08-16 16:57:38 +02:00
Henning Thielemann
37be769540
doc: Commands/Balance.md: mention FODS export format
2024-08-16 16:57:38 +02:00
Henning Thielemann
8c42a735c2
cli: lib: Write.Spreadsheet: common data types for Write.Ods and Write.Html
...
Write.Html: write spreadsheet data to a HTML table
enables HTML export for the balance command
2024-08-16 16:57:38 +02:00
Henning Thielemann
29b67691fb
cli: Write.Ods: also use a number cell if the total amount has a single commodity
2024-08-16 16:57:38 +02:00