diff --git a/hledger/hledger.1 b/hledger/hledger.1 index eb8fe3778..6c5e2a500 100644 --- a/hledger/hledger.1 +++ b/hledger/hledger.1 @@ -2898,31 +2898,31 @@ It can be useful for a cleaner display of reports with many commodities: .IP .nf \f[C] -$ hledger bal -T -Y +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -T -Y Balance changes in 2012-01-01..2014-12-31: - || 2012 2013 2014 Total -==================++============================================================================================================================= - Assets:US:ETrade || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. -------------------++----------------------------------------------------------------------------------------------------------------------------- - total || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. + || 2012 2013 2014 Total +==================++=========================================================================================================================== + Assets:US:ETrade || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. +------------------++--------------------------------------------------------------------------------------------------------------------------- + || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. -$ hledger bal -T -Y --commodity-column +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -T -Y --commodity-column Balance changes in 2012-01-01..2014-12-31: - || Commodity 2012 2013 2014 Total + || Commodity 2012 2013 2014 Total ==================++============================================= - Assets:US:ETrade || GLD 0 70.00 0 70.00 - Assets:US:ETrade || ITOT 10.00 18.00 -11.00 17.00 - Assets:US:ETrade || USD 337.18 -98.12 4881.44 5120.50 - Assets:US:ETrade || VEA 12.00 10.00 14.00 36.00 - Assets:US:ETrade || VHT 106.00 18.00 170.00 294.00 + Assets:US:ETrade || GLD 0 70.00 0 70.00 + Assets:US:ETrade || ITOT 10.00 18.00 -11.00 17.00 + Assets:US:ETrade || USD 337.18 -98.12 4881.44 5120.50 + Assets:US:ETrade || VEA 12.00 10.00 14.00 36.00 + Assets:US:ETrade || VHT 106.00 18.00 170.00 294.00 ------------------++--------------------------------------------- - || GLD 0 70.00 0 70.00 - || ITOT 10.00 18.00 -11.00 17.00 - || USD 337.18 -98.12 4881.44 5120.50 - || VEA 12.00 10.00 14.00 36.00 - || VHT 106.00 18.00 170.00 294.00 + || GLD 0 70.00 0 70.00 + || ITOT 10.00 18.00 -11.00 17.00 + || USD 337.18 -98.12 4881.44 5120.50 + || VEA 12.00 10.00 14.00 36.00 + || VHT 106.00 18.00 170.00 294.00 \f[R] .fi .PP @@ -2931,12 +2931,12 @@ that is easier to consume, eg when making charts: .IP .nf \f[C] -$ hledger bal -T -O csv +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -O csv \[dq]account\[dq],\[dq]balance\[dq] \[dq]Assets:US:ETrade\[dq],\[dq]70.00 GLD, 17.00 ITOT, 5120.50 USD, 36.00 VEA, 294.00 VHT\[dq] \[dq]total\[dq],\[dq]70.00 GLD, 17.00 ITOT, 5120.50 USD, 36.00 VEA, 294.00 VHT\[dq] -$ hledger bal -T -O csv --commodity-column +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -O csv --commodity-column \[dq]account\[dq],\[dq]commodity\[dq],\[dq]balance\[dq] \[dq]Assets:US:ETrade\[dq],\[dq]GLD\[dq],\[dq]70.00\[dq] \[dq]Assets:US:ETrade\[dq],\[dq]ITOT\[dq],\[dq]17.00\[dq] diff --git a/hledger/hledger.info b/hledger/hledger.info index 7808bf366..c21218fc8 100644 --- a/hledger/hledger.info +++ b/hledger/hledger.info @@ -2364,41 +2364,41 @@ report row will show amounts for a single commodity, using extra rows when necessary. It can be useful for a cleaner display of reports with many commodities: -$ hledger bal -T -Y +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -T -Y Balance changes in 2012-01-01..2014-12-31: - || 2012 2013 2014 Total -==================++============================================================================================================================= - Assets:US:ETrade || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. -------------------++----------------------------------------------------------------------------------------------------------------------------- - total || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. + || 2012 2013 2014 Total +==================++=========================================================================================================================== + Assets:US:ETrade || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. +------------------++--------------------------------------------------------------------------------------------------------------------------- + || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. -$ hledger bal -T -Y --commodity-column +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -T -Y --commodity-column Balance changes in 2012-01-01..2014-12-31: - || Commodity 2012 2013 2014 Total + || Commodity 2012 2013 2014 Total ==================++============================================= - Assets:US:ETrade || GLD 0 70.00 0 70.00 - Assets:US:ETrade || ITOT 10.00 18.00 -11.00 17.00 - Assets:US:ETrade || USD 337.18 -98.12 4881.44 5120.50 - Assets:US:ETrade || VEA 12.00 10.00 14.00 36.00 - Assets:US:ETrade || VHT 106.00 18.00 170.00 294.00 + Assets:US:ETrade || GLD 0 70.00 0 70.00 + Assets:US:ETrade || ITOT 10.00 18.00 -11.00 17.00 + Assets:US:ETrade || USD 337.18 -98.12 4881.44 5120.50 + Assets:US:ETrade || VEA 12.00 10.00 14.00 36.00 + Assets:US:ETrade || VHT 106.00 18.00 170.00 294.00 ------------------++--------------------------------------------- - || GLD 0 70.00 0 70.00 - || ITOT 10.00 18.00 -11.00 17.00 - || USD 337.18 -98.12 4881.44 5120.50 - || VEA 12.00 10.00 14.00 36.00 - || VHT 106.00 18.00 170.00 294.00 + || GLD 0 70.00 0 70.00 + || ITOT 10.00 18.00 -11.00 17.00 + || USD 337.18 -98.12 4881.44 5120.50 + || VEA 12.00 10.00 14.00 36.00 + || VHT 106.00 18.00 170.00 294.00 This flag also affects CSV output, which is useful for producing data that is easier to consume, eg when making charts: -$ hledger bal -T -O csv +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -O csv "account","balance" "Assets:US:ETrade","70.00 GLD, 17.00 ITOT, 5120.50 USD, 36.00 VEA, 294.00 VHT" "total","70.00 GLD, 17.00 ITOT, 5120.50 USD, 36.00 VEA, 294.00 VHT" -$ hledger bal -T -O csv --commodity-column +$ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -O csv --commodity-column "account","commodity","balance" "Assets:US:ETrade","GLD","70.00" "Assets:US:ETrade","ITOT","17.00" @@ -8812,382 +8812,382 @@ Node: Multi-period balance report79268 Ref: #multi-period-balance-report79459 Node: Commodity column81711 Ref: #commodity-column81883 -Node: Sorting by amount84587 -Ref: #sorting-by-amount84745 -Node: Percentages85415 -Ref: #percentages85571 -Node: Balance change end balance86505 -Ref: #balance-change-end-balance86698 -Node: Balance report types88126 -Ref: #balance-report-types88316 -Node: Useful balance reports92389 -Ref: #useful-balance-reports92570 -Node: Budget report93655 -Ref: #budget-report93839 -Node: Budget report start date99114 -Ref: #budget-report-start-date99292 -Node: Budgets and subaccounts100624 -Ref: #budgets-and-subaccounts100831 -Node: Selecting budget goals104271 -Ref: #selecting-budget-goals104443 -Node: Customising single-period balance reports105477 -Ref: #customising-single-period-balance-reports105686 -Node: balancesheet107834 -Ref: #balancesheet107972 -Node: balancesheetequity109271 -Ref: #balancesheetequity109422 -Node: cashflow110802 -Ref: #cashflow110926 -Node: check112072 -Ref: #check112177 -Node: Basic checks112811 -Ref: #basic-checks112929 -Node: Strict checks113480 -Ref: #strict-checks113621 -Node: Other checks114057 -Ref: #other-checks114197 -Node: Custom checks114554 -Ref: #custom-checks114674 -Node: close115091 -Ref: #close115195 -Node: close and prices117286 -Ref: #close-and-prices117415 -Node: close date117810 -Ref: #close-date117994 -Node: Example close asset/liability accounts for file transition118544 -Ref: #example-close-assetliability-accounts-for-file-transition118845 -Node: Hiding opening/closing transactions119704 -Ref: #hiding-openingclosing-transactions119975 -Node: close and balance assertions121437 -Ref: #close-and-balance-assertions121695 -Node: Example close revenue/expense accounts to retained earnings123049 -Ref: #example-close-revenueexpense-accounts-to-retained-earnings123327 -Node: codes124039 -Ref: #codes124149 -Node: commodities124861 -Ref: #commodities124990 -Node: descriptions125072 -Ref: #descriptions125202 -Node: diff125506 -Ref: #diff125614 -Node: files126661 -Ref: #files126763 -Node: help126910 -Ref: #help127012 -Node: import127739 -Ref: #import127855 -Node: Deduplication128720 -Ref: #deduplication128845 -Node: Import testing130739 -Ref: #import-testing130904 -Node: Importing balance assignments131392 -Ref: #importing-balance-assignments131598 -Node: Commodity display styles132247 -Ref: #commodity-display-styles132420 -Node: incomestatement132549 -Ref: #incomestatement132684 -Node: notes133989 -Ref: #notes134104 -Node: payees134472 -Ref: #payees134580 -Node: prices135106 -Ref: #prices135214 -Node: print135555 -Ref: #print135667 -Node: print-unique140982 -Ref: #print-unique141110 -Node: register141395 -Ref: #register141524 -Node: Custom register output145970 -Ref: #custom-register-output146101 -Node: register-match147438 -Ref: #register-match147574 -Node: rewrite147925 -Ref: #rewrite148042 -Node: Re-write rules in a file149948 -Ref: #re-write-rules-in-a-file150111 -Node: Diff output format151260 -Ref: #diff-output-format151443 -Node: rewrite vs print --auto152535 -Ref: #rewrite-vs.-print---auto152695 -Node: roi153251 -Ref: #roi153351 -Node: Spaces and special characters in --inv and --pnl155037 -Ref: #spaces-and-special-characters-in---inv-and---pnl155277 -Node: Semantics of --inv and --pnl155765 -Ref: #semantics-of---inv-and---pnl156004 -Node: IRR and TWR explained157854 -Ref: #irr-and-twr-explained158014 -Node: stats161082 -Ref: #stats161183 -Node: tags161971 -Ref: #tags162071 -Node: test162590 -Ref: #test162706 -Node: About add-on commands163453 -Ref: #about-add-on-commands163590 -Node: JOURNAL FORMAT164721 -Ref: #journal-format164849 -Node: Transactions167045 -Ref: #transactions167160 -Node: Dates168174 -Ref: #dates168290 -Node: Simple dates168355 -Ref: #simple-dates168475 -Node: Secondary dates168984 -Ref: #secondary-dates169132 -Node: Posting dates170468 -Ref: #posting-dates170591 -Node: Status171963 -Ref: #status172073 -Node: Code173781 -Ref: #code173893 -Node: Description174125 -Ref: #description174253 -Node: Payee and note174573 -Ref: #payee-and-note174681 -Node: Comments175016 -Ref: #comments175138 -Node: Tags176332 -Ref: #tags-1176443 -Node: Postings177836 -Ref: #postings177960 -Node: Virtual postings178986 -Ref: #virtual-postings179097 -Node: Account names180402 -Ref: #account-names180539 -Node: Amounts181027 -Ref: #amounts181164 -Node: Decimal marks digit group marks182120 -Ref: #decimal-marks-digit-group-marks182297 -Node: Commodity183169 -Ref: #commodity183329 -Node: Commodity directives184281 -Ref: #commodity-directives184455 -Node: Commodity display style184942 -Ref: #commodity-display-style185121 -Node: Rounding187229 -Ref: #rounding187349 -Node: Transaction prices187761 -Ref: #transaction-prices187927 -Node: Lot prices lot dates190358 -Ref: #lot-prices-lot-dates190541 -Node: Balance assertions191029 -Ref: #balance-assertions191207 -Node: Assertions and ordering192240 -Ref: #assertions-and-ordering192422 -Node: Assertions and included files193122 -Ref: #assertions-and-included-files193359 -Node: Assertions and multiple -f options193692 -Ref: #assertions-and-multiple--f-options193942 -Node: Assertions and commodities194074 -Ref: #assertions-and-commodities194300 -Node: Assertions and prices195457 -Ref: #assertions-and-prices195665 -Node: Assertions and subaccounts196105 -Ref: #assertions-and-subaccounts196328 -Node: Assertions and virtual postings196652 -Ref: #assertions-and-virtual-postings196888 -Node: Assertions and precision197030 -Ref: #assertions-and-precision197217 -Node: Balance assignments197484 -Ref: #balance-assignments197654 -Node: Balance assignments and prices198818 -Ref: #balance-assignments-and-prices198984 -Node: Directives199208 -Ref: #directives199371 -Node: Directives and multiple files204725 -Ref: #directives-and-multiple-files204921 -Node: Comment blocks205585 -Ref: #comment-blocks205762 -Node: Including other files205938 -Ref: #including-other-files206112 -Node: Default year207036 -Ref: #default-year207194 -Node: Declaring payees207601 -Ref: #declaring-payees207767 -Node: Declaring commodities208013 -Ref: #declaring-commodities208194 -Node: Commodity error checking210574 -Ref: #commodity-error-checking210724 -Node: Default commodity210981 -Ref: #default-commodity211161 -Node: Declaring market prices212037 -Ref: #declaring-market-prices212226 -Node: Declaring accounts213039 -Ref: #declaring-accounts213219 -Node: Account error checking214421 -Ref: #account-error-checking214587 -Node: Account comments215766 -Ref: #account-comments215950 -Node: Account subdirectives216374 -Ref: #account-subdirectives216559 -Node: Account types216872 -Ref: #account-types217046 -Node: Declaring account types217782 -Ref: #declaring-account-types217961 -Node: Auto-detected account types218611 -Ref: #auto-detected-account-types218852 -Node: Interference from auto-detected account types219812 -Ref: #interference-from-auto-detected-account-types220089 -Node: Old account type syntax220572 -Ref: #old-account-type-syntax220769 -Node: Account display order221069 -Ref: #account-display-order221229 -Node: Rewriting accounts222380 -Ref: #rewriting-accounts222559 -Node: Basic aliases223316 -Ref: #basic-aliases223452 -Node: Regex aliases224196 -Ref: #regex-aliases224358 -Node: Combining aliases225077 -Ref: #combining-aliases225260 -Node: Aliases and multiple files226536 -Ref: #aliases-and-multiple-files226735 -Node: end aliases227314 -Ref: #end-aliases227461 -Node: Default parent account227562 -Ref: #default-parent-account227752 -Node: Periodic transactions228636 -Ref: #periodic-transactions228819 -Node: Periodic rule syntax230736 -Ref: #periodic-rule-syntax230936 -Node: Two spaces between period expression and description!231640 -Ref: #two-spaces-between-period-expression-and-description231953 -Node: Forecasting with periodic transactions232637 -Ref: #forecasting-with-periodic-transactions232936 -Node: Budgeting with periodic transactions234991 -Ref: #budgeting-with-periodic-transactions235224 -Node: Auto postings235633 -Ref: #auto-postings235769 -Node: Auto postings and multiple files237948 -Ref: #auto-postings-and-multiple-files238146 -Node: Auto postings and dates238355 -Ref: #auto-postings-and-dates238623 -Node: Auto postings and transaction balancing / inferred amounts / balance assertions238798 -Ref: #auto-postings-and-transaction-balancing-inferred-amounts-balance-assertions239143 -Node: Auto posting tags239485 -Ref: #auto-posting-tags239694 -Node: CSV FORMAT240330 -Ref: #csv-format240458 -Node: Examples243087 -Ref: #examples243190 -Node: Basic243398 -Ref: #basic243500 -Node: Bank of Ireland244042 -Ref: #bank-of-ireland244179 -Node: Amazon245641 -Ref: #amazon245761 -Node: Paypal247480 -Ref: #paypal247576 -Node: CSV rules255220 -Ref: #csv-rules255338 -Node: skip255671 -Ref: #skip255771 -Node: fields list256146 -Ref: #fields-list256285 -Node: field assignment257788 -Ref: #field-assignment257940 -Node: Field names258868 -Ref: #field-names259008 -Node: date field259388 -Ref: #date-field259508 -Node: date2 field259556 -Ref: #date2-field259699 -Node: status field259755 -Ref: #status-field259900 -Node: code field259949 -Ref: #code-field260096 -Node: description field260141 -Ref: #description-field260303 -Node: comment field260362 -Ref: #comment-field260519 -Node: account field260734 -Ref: #account-field260886 -Node: amount field261461 -Ref: #amount-field261612 -Node: currency field262857 -Ref: #currency-field263012 -Node: balance field263269 -Ref: #balance-field263403 -Node: separator263775 -Ref: #separator263907 -Node: if block264447 -Ref: #if-block264574 -Node: Matching the whole record264975 -Ref: #matching-the-whole-record265152 -Node: Matching individual fields265955 -Ref: #matching-individual-fields266161 -Node: Combining matchers266385 -Ref: #combining-matchers266583 -Node: Rules applied on successful match266896 -Ref: #rules-applied-on-successful-match267089 -Node: if table267743 -Ref: #if-table267864 -Node: end269602 -Ref: #end269716 -Node: date-format269940 -Ref: #date-format270074 -Node: decimal-mark271070 -Ref: #decimal-mark271217 -Node: newest-first271556 -Ref: #newest-first271699 -Node: include272382 -Ref: #include272515 -Node: balance-type272959 -Ref: #balance-type273081 -Node: Tips273781 -Ref: #tips273872 -Node: Rapid feedback274171 -Ref: #rapid-feedback274290 -Node: Valid CSV274750 -Ref: #valid-csv274882 -Node: File Extension275074 -Ref: #file-extension275228 -Node: Reading multiple CSV files275657 -Ref: #reading-multiple-csv-files275844 -Node: Valid transactions276085 -Ref: #valid-transactions276265 -Node: Deduplicating importing276893 -Ref: #deduplicating-importing277074 -Node: Setting amounts278107 -Ref: #setting-amounts278264 -Node: Amount signs280705 -Ref: #amount-signs280859 -Node: Setting currency/commodity281546 -Ref: #setting-currencycommodity281734 -Node: Amount decimal places282908 -Ref: #amount-decimal-places283100 -Node: Referencing other fields283412 -Ref: #referencing-other-fields283611 -Node: How CSV rules are evaluated284508 -Ref: #how-csv-rules-are-evaluated284683 -Node: TIMECLOCK FORMAT286134 -Ref: #timeclock-format286274 -Node: TIMEDOT FORMAT288335 -Ref: #timedot-format288473 -Node: COMMON TASKS293035 -Ref: #common-tasks293164 -Node: Getting help293571 -Ref: #getting-help293705 -Node: Constructing command lines294258 -Ref: #constructing-command-lines294452 -Node: Starting a journal file295149 -Ref: #starting-a-journal-file295349 -Node: Setting opening balances296537 -Ref: #setting-opening-balances296735 -Node: Recording transactions299876 -Ref: #recording-transactions300058 -Node: Reconciling300614 -Ref: #reconciling300759 -Node: Reporting303016 -Ref: #reporting303158 -Node: Migrating to a new file307157 -Ref: #migrating-to-a-new-file307307 -Node: LIMITATIONS307606 -Ref: #limitations307734 -Node: TROUBLESHOOTING308477 -Ref: #troubleshooting308592 +Node: Sorting by amount84784 +Ref: #sorting-by-amount84942 +Node: Percentages85612 +Ref: #percentages85768 +Node: Balance change end balance86702 +Ref: #balance-change-end-balance86895 +Node: Balance report types88323 +Ref: #balance-report-types88513 +Node: Useful balance reports92586 +Ref: #useful-balance-reports92767 +Node: Budget report93852 +Ref: #budget-report94036 +Node: Budget report start date99311 +Ref: #budget-report-start-date99489 +Node: Budgets and subaccounts100821 +Ref: #budgets-and-subaccounts101028 +Node: Selecting budget goals104468 +Ref: #selecting-budget-goals104640 +Node: Customising single-period balance reports105674 +Ref: #customising-single-period-balance-reports105883 +Node: balancesheet108031 +Ref: #balancesheet108169 +Node: balancesheetequity109468 +Ref: #balancesheetequity109619 +Node: cashflow110999 +Ref: #cashflow111123 +Node: check112269 +Ref: #check112374 +Node: Basic checks113008 +Ref: #basic-checks113126 +Node: Strict checks113677 +Ref: #strict-checks113818 +Node: Other checks114254 +Ref: #other-checks114394 +Node: Custom checks114751 +Ref: #custom-checks114871 +Node: close115288 +Ref: #close115392 +Node: close and prices117483 +Ref: #close-and-prices117612 +Node: close date118007 +Ref: #close-date118191 +Node: Example close asset/liability accounts for file transition118741 +Ref: #example-close-assetliability-accounts-for-file-transition119042 +Node: Hiding opening/closing transactions119901 +Ref: #hiding-openingclosing-transactions120172 +Node: close and balance assertions121634 +Ref: #close-and-balance-assertions121892 +Node: Example close revenue/expense accounts to retained earnings123246 +Ref: #example-close-revenueexpense-accounts-to-retained-earnings123524 +Node: codes124236 +Ref: #codes124346 +Node: commodities125058 +Ref: #commodities125187 +Node: descriptions125269 +Ref: #descriptions125399 +Node: diff125703 +Ref: #diff125811 +Node: files126858 +Ref: #files126960 +Node: help127107 +Ref: #help127209 +Node: import127936 +Ref: #import128052 +Node: Deduplication128917 +Ref: #deduplication129042 +Node: Import testing130936 +Ref: #import-testing131101 +Node: Importing balance assignments131589 +Ref: #importing-balance-assignments131795 +Node: Commodity display styles132444 +Ref: #commodity-display-styles132617 +Node: incomestatement132746 +Ref: #incomestatement132881 +Node: notes134186 +Ref: #notes134301 +Node: payees134669 +Ref: #payees134777 +Node: prices135303 +Ref: #prices135411 +Node: print135752 +Ref: #print135864 +Node: print-unique141179 +Ref: #print-unique141307 +Node: register141592 +Ref: #register141721 +Node: Custom register output146167 +Ref: #custom-register-output146298 +Node: register-match147635 +Ref: #register-match147771 +Node: rewrite148122 +Ref: #rewrite148239 +Node: Re-write rules in a file150145 +Ref: #re-write-rules-in-a-file150308 +Node: Diff output format151457 +Ref: #diff-output-format151640 +Node: rewrite vs print --auto152732 +Ref: #rewrite-vs.-print---auto152892 +Node: roi153448 +Ref: #roi153548 +Node: Spaces and special characters in --inv and --pnl155234 +Ref: #spaces-and-special-characters-in---inv-and---pnl155474 +Node: Semantics of --inv and --pnl155962 +Ref: #semantics-of---inv-and---pnl156201 +Node: IRR and TWR explained158051 +Ref: #irr-and-twr-explained158211 +Node: stats161279 +Ref: #stats161380 +Node: tags162168 +Ref: #tags162268 +Node: test162787 +Ref: #test162903 +Node: About add-on commands163650 +Ref: #about-add-on-commands163787 +Node: JOURNAL FORMAT164918 +Ref: #journal-format165046 +Node: Transactions167242 +Ref: #transactions167357 +Node: Dates168371 +Ref: #dates168487 +Node: Simple dates168552 +Ref: #simple-dates168672 +Node: Secondary dates169181 +Ref: #secondary-dates169329 +Node: Posting dates170665 +Ref: #posting-dates170788 +Node: Status172160 +Ref: #status172270 +Node: Code173978 +Ref: #code174090 +Node: Description174322 +Ref: #description174450 +Node: Payee and note174770 +Ref: #payee-and-note174878 +Node: Comments175213 +Ref: #comments175335 +Node: Tags176529 +Ref: #tags-1176640 +Node: Postings178033 +Ref: #postings178157 +Node: Virtual postings179183 +Ref: #virtual-postings179294 +Node: Account names180599 +Ref: #account-names180736 +Node: Amounts181224 +Ref: #amounts181361 +Node: Decimal marks digit group marks182317 +Ref: #decimal-marks-digit-group-marks182494 +Node: Commodity183366 +Ref: #commodity183526 +Node: Commodity directives184478 +Ref: #commodity-directives184652 +Node: Commodity display style185139 +Ref: #commodity-display-style185318 +Node: Rounding187426 +Ref: #rounding187546 +Node: Transaction prices187958 +Ref: #transaction-prices188124 +Node: Lot prices lot dates190555 +Ref: #lot-prices-lot-dates190738 +Node: Balance assertions191226 +Ref: #balance-assertions191404 +Node: Assertions and ordering192437 +Ref: #assertions-and-ordering192619 +Node: Assertions and included files193319 +Ref: #assertions-and-included-files193556 +Node: Assertions and multiple -f options193889 +Ref: #assertions-and-multiple--f-options194139 +Node: Assertions and commodities194271 +Ref: #assertions-and-commodities194497 +Node: Assertions and prices195654 +Ref: #assertions-and-prices195862 +Node: Assertions and subaccounts196302 +Ref: #assertions-and-subaccounts196525 +Node: Assertions and virtual postings196849 +Ref: #assertions-and-virtual-postings197085 +Node: Assertions and precision197227 +Ref: #assertions-and-precision197414 +Node: Balance assignments197681 +Ref: #balance-assignments197851 +Node: Balance assignments and prices199015 +Ref: #balance-assignments-and-prices199181 +Node: Directives199405 +Ref: #directives199568 +Node: Directives and multiple files204922 +Ref: #directives-and-multiple-files205118 +Node: Comment blocks205782 +Ref: #comment-blocks205959 +Node: Including other files206135 +Ref: #including-other-files206309 +Node: Default year207233 +Ref: #default-year207391 +Node: Declaring payees207798 +Ref: #declaring-payees207964 +Node: Declaring commodities208210 +Ref: #declaring-commodities208391 +Node: Commodity error checking210771 +Ref: #commodity-error-checking210921 +Node: Default commodity211178 +Ref: #default-commodity211358 +Node: Declaring market prices212234 +Ref: #declaring-market-prices212423 +Node: Declaring accounts213236 +Ref: #declaring-accounts213416 +Node: Account error checking214618 +Ref: #account-error-checking214784 +Node: Account comments215963 +Ref: #account-comments216147 +Node: Account subdirectives216571 +Ref: #account-subdirectives216756 +Node: Account types217069 +Ref: #account-types217243 +Node: Declaring account types217979 +Ref: #declaring-account-types218158 +Node: Auto-detected account types218808 +Ref: #auto-detected-account-types219049 +Node: Interference from auto-detected account types220009 +Ref: #interference-from-auto-detected-account-types220286 +Node: Old account type syntax220769 +Ref: #old-account-type-syntax220966 +Node: Account display order221266 +Ref: #account-display-order221426 +Node: Rewriting accounts222577 +Ref: #rewriting-accounts222756 +Node: Basic aliases223513 +Ref: #basic-aliases223649 +Node: Regex aliases224393 +Ref: #regex-aliases224555 +Node: Combining aliases225274 +Ref: #combining-aliases225457 +Node: Aliases and multiple files226733 +Ref: #aliases-and-multiple-files226932 +Node: end aliases227511 +Ref: #end-aliases227658 +Node: Default parent account227759 +Ref: #default-parent-account227949 +Node: Periodic transactions228833 +Ref: #periodic-transactions229016 +Node: Periodic rule syntax230933 +Ref: #periodic-rule-syntax231133 +Node: Two spaces between period expression and description!231837 +Ref: #two-spaces-between-period-expression-and-description232150 +Node: Forecasting with periodic transactions232834 +Ref: #forecasting-with-periodic-transactions233133 +Node: Budgeting with periodic transactions235188 +Ref: #budgeting-with-periodic-transactions235421 +Node: Auto postings235830 +Ref: #auto-postings235966 +Node: Auto postings and multiple files238145 +Ref: #auto-postings-and-multiple-files238343 +Node: Auto postings and dates238552 +Ref: #auto-postings-and-dates238820 +Node: Auto postings and transaction balancing / inferred amounts / balance assertions238995 +Ref: #auto-postings-and-transaction-balancing-inferred-amounts-balance-assertions239340 +Node: Auto posting tags239682 +Ref: #auto-posting-tags239891 +Node: CSV FORMAT240527 +Ref: #csv-format240655 +Node: Examples243284 +Ref: #examples243387 +Node: Basic243595 +Ref: #basic243697 +Node: Bank of Ireland244239 +Ref: #bank-of-ireland244376 +Node: Amazon245838 +Ref: #amazon245958 +Node: Paypal247677 +Ref: #paypal247773 +Node: CSV rules255417 +Ref: #csv-rules255535 +Node: skip255868 +Ref: #skip255968 +Node: fields list256343 +Ref: #fields-list256482 +Node: field assignment257985 +Ref: #field-assignment258137 +Node: Field names259065 +Ref: #field-names259205 +Node: date field259585 +Ref: #date-field259705 +Node: date2 field259753 +Ref: #date2-field259896 +Node: status field259952 +Ref: #status-field260097 +Node: code field260146 +Ref: #code-field260293 +Node: description field260338 +Ref: #description-field260500 +Node: comment field260559 +Ref: #comment-field260716 +Node: account field260931 +Ref: #account-field261083 +Node: amount field261658 +Ref: #amount-field261809 +Node: currency field263054 +Ref: #currency-field263209 +Node: balance field263466 +Ref: #balance-field263600 +Node: separator263972 +Ref: #separator264104 +Node: if block264644 +Ref: #if-block264771 +Node: Matching the whole record265172 +Ref: #matching-the-whole-record265349 +Node: Matching individual fields266152 +Ref: #matching-individual-fields266358 +Node: Combining matchers266582 +Ref: #combining-matchers266780 +Node: Rules applied on successful match267093 +Ref: #rules-applied-on-successful-match267286 +Node: if table267940 +Ref: #if-table268061 +Node: end269799 +Ref: #end269913 +Node: date-format270137 +Ref: #date-format270271 +Node: decimal-mark271267 +Ref: #decimal-mark271414 +Node: newest-first271753 +Ref: #newest-first271896 +Node: include272579 +Ref: #include272712 +Node: balance-type273156 +Ref: #balance-type273278 +Node: Tips273978 +Ref: #tips274069 +Node: Rapid feedback274368 +Ref: #rapid-feedback274487 +Node: Valid CSV274947 +Ref: #valid-csv275079 +Node: File Extension275271 +Ref: #file-extension275425 +Node: Reading multiple CSV files275854 +Ref: #reading-multiple-csv-files276041 +Node: Valid transactions276282 +Ref: #valid-transactions276462 +Node: Deduplicating importing277090 +Ref: #deduplicating-importing277271 +Node: Setting amounts278304 +Ref: #setting-amounts278461 +Node: Amount signs280902 +Ref: #amount-signs281056 +Node: Setting currency/commodity281743 +Ref: #setting-currencycommodity281931 +Node: Amount decimal places283105 +Ref: #amount-decimal-places283297 +Node: Referencing other fields283609 +Ref: #referencing-other-fields283808 +Node: How CSV rules are evaluated284705 +Ref: #how-csv-rules-are-evaluated284880 +Node: TIMECLOCK FORMAT286331 +Ref: #timeclock-format286471 +Node: TIMEDOT FORMAT288532 +Ref: #timedot-format288670 +Node: COMMON TASKS293232 +Ref: #common-tasks293361 +Node: Getting help293768 +Ref: #getting-help293902 +Node: Constructing command lines294455 +Ref: #constructing-command-lines294649 +Node: Starting a journal file295346 +Ref: #starting-a-journal-file295546 +Node: Setting opening balances296734 +Ref: #setting-opening-balances296932 +Node: Recording transactions300073 +Ref: #recording-transactions300255 +Node: Reconciling300811 +Ref: #reconciling300956 +Node: Reporting303213 +Ref: #reporting303355 +Node: Migrating to a new file307354 +Ref: #migrating-to-a-new-file307504 +Node: LIMITATIONS307803 +Ref: #limitations307931 +Node: TROUBLESHOOTING308674 +Ref: #troubleshooting308789  End Tag Table diff --git a/hledger/hledger.txt b/hledger/hledger.txt index 8225eee7c..ce827dcd8 100644 --- a/hledger/hledger.txt +++ b/hledger/hledger.txt @@ -2000,19 +2000,19 @@ COMMANDS when necessary. It can be useful for a cleaner display of reports with many commodities: - $ hledger bal -T -Y + $ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -T -Y Balance changes in 2012-01-01..2014-12-31: - || 2012 2013 2014 Total - ==================++============================================================================================================================= - Assets:US:ETrade || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. - ------------------++----------------------------------------------------------------------------------------------------------------------------- - total || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. + || 2012 2013 2014 Total + ==================++=========================================================================================================================== + Assets:US:ETrade || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. + ------------------++--------------------------------------------------------------------------------------------------------------------------- + || 10.00 ITOT, 337.18 USD, 2 more.. 70.00 GLD, 18.00 ITOT, 3 more.. -11.00 ITOT, 3 more.. 70.00 GLD, 17.00 ITOT, 3 more.. - $ hledger bal -T -Y --commodity-column + $ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -T -Y --commodity-column Balance changes in 2012-01-01..2014-12-31: - || Commodity 2012 2013 2014 Total + || Commodity 2012 2013 2014 Total ==================++============================================= Assets:US:ETrade || GLD 0 70.00 0 70.00 Assets:US:ETrade || ITOT 10.00 18.00 -11.00 17.00 @@ -2029,12 +2029,12 @@ COMMANDS This flag also affects CSV output, which is useful for producing data that is easier to consume, eg when making charts: - $ hledger bal -T -O csv + $ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -O csv "account","balance" "Assets:US:ETrade","70.00 GLD, 17.00 ITOT, 5120.50 USD, 36.00 VEA, 294.00 VHT" "total","70.00 GLD, 17.00 ITOT, 5120.50 USD, 36.00 VEA, 294.00 VHT" - $ hledger bal -T -O csv --commodity-column + $ hledger -f examples/bcexample.hledger bal assets:us:etrade -3 -O csv --commodity-column "account","commodity","balance" "Assets:US:ETrade","GLD","70.00" "Assets:US:ETrade","ITOT","17.00"