cf: more restrictive regexp (#584)
This commit is contained in:
parent
deaf9cfbef
commit
b246d0e990
@ -293,9 +293,9 @@ journalEquityAccountQuery _ = Acct "^equity(:|$)"
|
|||||||
-- | A query for Cash (-equivalent) accounts in this journal (ie,
|
-- | A query for Cash (-equivalent) accounts in this journal (ie,
|
||||||
-- accounts which appear on the cashflow statement.) This is currently
|
-- accounts which appear on the cashflow statement.) This is currently
|
||||||
-- hard-coded to be all the Asset accounts except for those containing the
|
-- hard-coded to be all the Asset accounts except for those containing the
|
||||||
-- case-insensitive regex @(receivable|A/R|fixed)@.
|
-- case-insensitive regex @(receivable|:A/R|:fixed)@.
|
||||||
journalCashAccountQuery :: Journal -> Query
|
journalCashAccountQuery :: Journal -> Query
|
||||||
journalCashAccountQuery j = And [journalAssetAccountQuery j, Not $ Acct "(receivable|A/R|fixed)"]
|
journalCashAccountQuery j = And [journalAssetAccountQuery j, Not $ Acct "(receivable|:A/R|:fixed)"]
|
||||||
|
|
||||||
-- Various kinds of filtering on journals. We do it differently depending
|
-- Various kinds of filtering on journals. We do it differently depending
|
||||||
-- on the command.
|
-- on the command.
|
||||||
|
|||||||
@ -276,8 +276,7 @@ This command displays a simple
|
|||||||
[cashflow statement](http://en.wikipedia.org/wiki/Cash_flow_statement)
|
[cashflow statement](http://en.wikipedia.org/wiki/Cash_flow_statement)
|
||||||
It shows the change in all "cash" (ie, liquid assets) accounts for the
|
It shows the change in all "cash" (ie, liquid assets) accounts for the
|
||||||
period. It currently assumes that cash accounts are under a top-level
|
period. It currently assumes that cash accounts are under a top-level
|
||||||
account named `asset` and do not contain `receivable` or `A/R` (plural
|
account named `asset` and do not contain `receivable`, `:A/R` or `:fixed`.
|
||||||
forms also allowed.)
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ hledger cashflow
|
$ hledger cashflow
|
||||||
|
|||||||
@ -1818,8 +1818,8 @@ in single\-column balance reports: use this custom line format
|
|||||||
This command displays a simple cashflow statement It shows the change in
|
This command displays a simple cashflow statement It shows the change in
|
||||||
all "cash" (ie, liquid assets) accounts for the period.
|
all "cash" (ie, liquid assets) accounts for the period.
|
||||||
It currently assumes that cash accounts are under a top\-level account
|
It currently assumes that cash accounts are under a top\-level account
|
||||||
named \f[C]asset\f[] and do not contain \f[C]receivable\f[] or
|
named \f[C]asset\f[] and do not contain \f[C]receivable\f[],
|
||||||
\f[C]A/R\f[] (plural forms also allowed.)
|
\f[C]:A/R\f[] or \f[C]:fixed\f[].
|
||||||
.IP
|
.IP
|
||||||
.nf
|
.nf
|
||||||
\f[C]
|
\f[C]
|
||||||
|
|||||||
@ -1411,7 +1411,7 @@ Show a cashflow statement. Alias: cf.
|
|||||||
This command displays a simple cashflow statement It shows the change
|
This command displays a simple cashflow statement It shows the change
|
||||||
in all "cash" (ie, liquid assets) accounts for the period. It currently
|
in all "cash" (ie, liquid assets) accounts for the period. It currently
|
||||||
assumes that cash accounts are under a top-level account named 'asset'
|
assumes that cash accounts are under a top-level account named 'asset'
|
||||||
and do not contain 'receivable' or 'A/R' (plural forms also allowed.)
|
and do not contain 'receivable', ':A/R' or ':fixed'.
|
||||||
|
|
||||||
$ hledger cashflow
|
$ hledger cashflow
|
||||||
Cashflow Statement
|
Cashflow Statement
|
||||||
@ -2144,65 +2144,65 @@ Node: balancesheet43148
|
|||||||
Ref: #balancesheet43276
|
Ref: #balancesheet43276
|
||||||
Node: cashflow45183
|
Node: cashflow45183
|
||||||
Ref: #cashflow45300
|
Ref: #cashflow45300
|
||||||
Node: help47168
|
Node: help47151
|
||||||
Ref: #help47280
|
Ref: #help47263
|
||||||
Node: incomestatement48354
|
Node: incomestatement48337
|
||||||
Ref: #incomestatement48485
|
Ref: #incomestatement48468
|
||||||
Node: print50377
|
Node: print50360
|
||||||
Ref: #print50492
|
Ref: #print50475
|
||||||
Node: register54248
|
Node: register54231
|
||||||
Ref: #register54361
|
Ref: #register54344
|
||||||
Node: Custom register output58857
|
Node: Custom register output58840
|
||||||
Ref: #custom-register-output58988
|
Ref: #custom-register-output58971
|
||||||
Node: stats60285
|
Node: stats60268
|
||||||
Ref: #stats60391
|
Ref: #stats60374
|
||||||
Node: test61272
|
Node: test61255
|
||||||
Ref: #test61359
|
Ref: #test61342
|
||||||
Node: ADD-ON COMMANDS61727
|
Node: ADD-ON COMMANDS61710
|
||||||
Ref: #add-on-commands61839
|
Ref: #add-on-commands61822
|
||||||
Node: Official add-ons63126
|
Node: Official add-ons63109
|
||||||
Ref: #official-add-ons63268
|
Ref: #official-add-ons63251
|
||||||
Node: api63355
|
Node: api63338
|
||||||
Ref: #api63446
|
Ref: #api63429
|
||||||
Node: ui63498
|
Node: ui63481
|
||||||
Ref: #ui63599
|
Ref: #ui63582
|
||||||
Node: web63657
|
Node: web63640
|
||||||
Ref: #web63748
|
Ref: #web63731
|
||||||
Node: Third party add-ons63794
|
Node: Third party add-ons63777
|
||||||
Ref: #third-party-add-ons63971
|
Ref: #third-party-add-ons63954
|
||||||
Node: diff64106
|
Node: diff64089
|
||||||
Ref: #diff64205
|
Ref: #diff64188
|
||||||
Node: iadd64304
|
Node: iadd64287
|
||||||
Ref: #iadd64420
|
Ref: #iadd64403
|
||||||
Node: interest64503
|
Node: interest64486
|
||||||
Ref: #interest64626
|
Ref: #interest64609
|
||||||
Node: irr64721
|
Node: irr64704
|
||||||
Ref: #irr64821
|
Ref: #irr64804
|
||||||
Node: Experimental add-ons64899
|
Node: Experimental add-ons64882
|
||||||
Ref: #experimental-add-ons65053
|
Ref: #experimental-add-ons65036
|
||||||
Node: autosync65455
|
Node: autosync65438
|
||||||
Ref: #autosync65569
|
Ref: #autosync65552
|
||||||
Node: budget65808
|
Node: budget65791
|
||||||
Ref: #budget65932
|
Ref: #budget65915
|
||||||
Node: chart65998
|
Node: chart65981
|
||||||
Ref: #chart66117
|
Ref: #chart66100
|
||||||
Node: check66188
|
Node: check66171
|
||||||
Ref: #check66312
|
Ref: #check66295
|
||||||
Node: check-dates66379
|
Node: check-dates66362
|
||||||
Ref: #check-dates66521
|
Ref: #check-dates66504
|
||||||
Node: check-dupes66594
|
Node: check-dupes66577
|
||||||
Ref: #check-dupes66737
|
Ref: #check-dupes66720
|
||||||
Node: equity66814
|
Node: equity66797
|
||||||
Ref: #equity66942
|
Ref: #equity66925
|
||||||
Node: prices67061
|
Node: prices67044
|
||||||
Ref: #prices67190
|
Ref: #prices67173
|
||||||
Node: print-unique67245
|
Node: print-unique67228
|
||||||
Ref: #print-unique67394
|
Ref: #print-unique67377
|
||||||
Node: register-match67487
|
Node: register-match67470
|
||||||
Ref: #register-match67643
|
Ref: #register-match67626
|
||||||
Node: rewrite67741
|
Node: rewrite67724
|
||||||
Ref: #rewrite67875
|
Ref: #rewrite67858
|
||||||
Node: tags67953
|
Node: tags67936
|
||||||
Ref: #tags68058
|
Ref: #tags68041
|
||||||
|
|
||||||
End Tag Table
|
End Tag Table
|
||||||
|
|||||||
@ -1263,7 +1263,7 @@ COMMANDS
|
|||||||
This command displays a simple cashflow statement It shows the change
|
This command displays a simple cashflow statement It shows the change
|
||||||
in all "cash" (ie, liquid assets) accounts for the period. It cur-
|
in all "cash" (ie, liquid assets) accounts for the period. It cur-
|
||||||
rently assumes that cash accounts are under a top-level account named
|
rently assumes that cash accounts are under a top-level account named
|
||||||
asset and do not contain receivable or A/R (plural forms also allowed.)
|
asset and do not contain receivable, :A/R or :fixed.
|
||||||
|
|
||||||
$ hledger cashflow
|
$ hledger cashflow
|
||||||
Cashflow Statement
|
Cashflow Statement
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user