;cln:close: fix end date doc

This commit is contained in:
Simon Michael 2023-06-01 07:00:56 -10:00
parent 003fcfee52
commit f485b30ae0
2 changed files with 6 additions and 9 deletions

View File

@ -74,12 +74,10 @@ close copts@CliOpts{rawopts_=rawopts, reportspec_=rspec0} j = do
ropts = (_rsReportOpts rspec0){balanceaccum_=Historical, accountlistmode_=ALFlat} ropts = (_rsReportOpts rspec0){balanceaccum_=Historical, accountlistmode_=ALFlat}
rspec1 = setDefaultConversionOp NoConversionOp rspec0{_rsReportOpts=ropts} rspec1 = setDefaultConversionOp NoConversionOp rspec0{_rsReportOpts=ropts}
-- dates of the closing and opening transactions -- Dates of the closing and opening transactions.
-- Close.md:
-- "The default closing date is yesterday, or the journal's end date, whichever is later. -- "The default closing date is yesterday, or the journal's end date, whichever is later.
-- You can change this by specifying a [report end date](#report-start--end-date), -- You can change this by specifying a [report end date](#report-start--end-date) with `-e`.
-- where "last day of the report period" will be the closing date. -- The last day of the report period will be the closing date, eg `-e 2024` means "close on 2023-12-31".
-- (Only the end date matters; a report start date will be ignored.)
-- The opening date is always the day after the closing date." -- The opening date is always the day after the closing date."
argsq = _rsQuery rspec1 argsq = _rsQuery rspec1
yesterday = addDays (-1) $ _rsDay rspec1 yesterday = addDays (-1) $ _rsDay rspec1

View File

@ -44,6 +44,7 @@ In all modes, the defaults can be overridden:
- the transaction descriptions can be changed with `--close-desc=DESC` and `--open-desc=DESC` - the transaction descriptions can be changed with `--close-desc=DESC` and `--open-desc=DESC`
- the account to transfer to/from can be changed with `--close-acct=ACCT` and `--open-acct=ACCT` - the account to transfer to/from can be changed with `--close-acct=ACCT` and `--open-acct=ACCT`
- the accounts to be closed/opened can be changed with `ACCTQUERY` (account query arguments). - the accounts to be closed/opened can be changed with `ACCTQUERY` (account query arguments).
- the closing/opening dates can be changed with `-e DATE` (a report end date)
By default just one destination/source posting will be used, with its amount left implicit. By default just one destination/source posting will be used, with its amount left implicit.
With `--x/--explicit`, the amount will be shown explicitly, With `--x/--explicit`, the amount will be shown explicitly,
@ -59,10 +60,8 @@ and destination postings next to each other.
This could be useful for troubleshooting. This could be useful for troubleshooting.
The default closing date is yesterday, or the journal's end date, whichever is later. The default closing date is yesterday, or the journal's end date, whichever is later.
You can change this by specifying a [report end date](#report-start--end-date); You can change this by specifying a [report end date](#report-start--end-date) with `-e`.
(The report start date does not matter.) The last day of the report period will be the closing date, eg `-e 2024` means "close on 2023-12-31".
The last day of the report period will be the closing date;
eg `-e 2022` means "close on 2022-12-31".
The opening date is always the day after the closing date. The opening date is always the day after the closing date.
### close and balance assertions ### close and balance assertions