summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/annotate.h4
-rw-r--r--src/report.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/annotate.h b/src/annotate.h
index 75d42589..c670f8cc 100644
--- a/src/annotate.h
+++ b/src/annotate.h
@@ -91,7 +91,9 @@ struct annotation_t : public supports_flags<>,
bool operator<(const annotation_t& rhs) const;
bool operator==(const annotation_t& rhs) const {
- return (price == rhs.price &&
+ return (((! price && ! rhs.price) ||
+ (price && rhs.price &&
+ (*price).to_string() == (*rhs.price).to_string())) &&
date == rhs.date &&
tag == rhs.tag &&
(value_expr && rhs.value_expr ?
diff --git a/src/report.h b/src/report.h
index 95d87e1e..d3821e84 100644
--- a/src/report.h
+++ b/src/report.h
@@ -736,7 +736,8 @@ public:
OPTION(report_t, inject_);
OPTION_(report_t, invert, DO() {
- OTHER(amount_).on(whence, "-amount_expr");
+ OTHER(display_amount_).on(whence, "-display_amount");
+ OTHER(display_total_).on(whence, "-display_total");
});
OPTION_