summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-16 18:11:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-16 18:11:23 -0400
commit15bfeb3cb1d04657d9fc7dc6120e5c460dc0db2b (patch)
treefa1075c7f7ac4709ac2cb8c4b82f22697159119d /src/report.h
parent053ecc9366e9b7875ccb10edbff0b8c357cb0c38 (diff)
downloadledger-15bfeb3cb1d04657d9fc7dc6120e5c460dc0db2b.tar.gz
ledger-15bfeb3cb1d04657d9fc7dc6120e5c460dc0db2b.tar.bz2
ledger-15bfeb3cb1d04657d9fc7dc6120e5c460dc0db2b.zip
Added several new reporting options
To help with gathering specific reports: - --payee-as-account copies the entry's payee field to the account, allowing the subtotal report to show unique payees for each period. - --comm-as-account copies the transaction's amount's commodity to the account. - --code-as-account copies the entry's code to the account Also created aliases for some of these options, for conistency's sake: - --commodity-as-payee is now an alias for --comm-as-payee - --commodity-as-account is now an alias for --comm-as-account
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h
index 63c92ebe..fc3afd3c 100644
--- a/src/report.h
+++ b/src/report.h
@@ -248,6 +248,9 @@ public:
});
OPTION(report_t, code_as_payee);
+ OPTION(report_t, comm_as_payee); // -x
+ OPTION(report_t, code_as_account);
+ OPTION(report_t, comm_as_account);
OPTION_(report_t, collapse, DO() { // -n
// Make sure that balance reports are collapsed too, but only apply it
@@ -259,7 +262,6 @@ public:
parent->HANDLER(collapse).on();
});
- OPTION(report_t, comm_as_payee); // -x
OPTION(report_t, cost);
OPTION(report_t, csv_format_);
OPTION(report_t, current); // -c
@@ -381,6 +383,7 @@ public:
OPTION(report_t, output_); // -o
OPTION(report_t, pager_);
+ OPTION(report_t, payee_as_account);
OPTION_(report_t, pending, DO() { // -C
parent->HANDLER(limit_).append("pending");