Correctly compile the expressions passed to -t and -T.
This commit is contained in:
parent
02bd9d29cf
commit
63f9d97dda
1 changed files with 12 additions and 0 deletions
12
src/report.h
12
src/report.h
|
|
@ -186,6 +186,9 @@ public:
|
||||||
expr_t expr;
|
expr_t expr;
|
||||||
CTOR(report_t, amount_) {
|
CTOR(report_t, amount_) {
|
||||||
expr = "amount";
|
expr = "amount";
|
||||||
|
}
|
||||||
|
DO_(args) {
|
||||||
|
expr = args[0].to_string();
|
||||||
});
|
});
|
||||||
|
|
||||||
OPTION(report_t, amount_data); // -j
|
OPTION(report_t, amount_data); // -j
|
||||||
|
|
@ -242,6 +245,9 @@ public:
|
||||||
expr_t expr;
|
expr_t expr;
|
||||||
CTOR(report_t, display_amount_) {
|
CTOR(report_t, display_amount_) {
|
||||||
expr = "amount_expr";
|
expr = "amount_expr";
|
||||||
|
}
|
||||||
|
DO_(args) {
|
||||||
|
expr = args[0].to_string();
|
||||||
});
|
});
|
||||||
|
|
||||||
OPTION__
|
OPTION__
|
||||||
|
|
@ -249,6 +255,9 @@ public:
|
||||||
expr_t expr;
|
expr_t expr;
|
||||||
CTOR(report_t, display_total_) {
|
CTOR(report_t, display_total_) {
|
||||||
expr = "total_expr";
|
expr = "total_expr";
|
||||||
|
}
|
||||||
|
DO_(args) {
|
||||||
|
expr = args[0].to_string();
|
||||||
});
|
});
|
||||||
|
|
||||||
OPTION(report_t, dow);
|
OPTION(report_t, dow);
|
||||||
|
|
@ -357,6 +366,9 @@ public:
|
||||||
expr_t expr;
|
expr_t expr;
|
||||||
CTOR(report_t, total_) {
|
CTOR(report_t, total_) {
|
||||||
expr = "total";
|
expr = "total";
|
||||||
|
}
|
||||||
|
DO_(args) {
|
||||||
|
expr = args[0].to_string();
|
||||||
});
|
});
|
||||||
|
|
||||||
OPTION(report_t, total_data); // -J
|
OPTION(report_t, total_data); // -J
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue