summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index 7775e21d..5325c3a2 100644
--- a/src/report.h
+++ b/src/report.h
@@ -202,6 +202,7 @@ public:
value_t fn_to_string(call_scope_t& scope);
value_t fn_to_mask(call_scope_t& scope);
value_t fn_to_sequence(call_scope_t& scope);
+ value_t fn_averaged_lots(call_scope_t& scope);
value_t fn_now(call_scope_t&) {
return terminus;
@@ -298,6 +299,7 @@ public:
HANDLER(limit_).report(out);
HANDLER(lot_dates).report(out);
HANDLER(lot_prices).report(out);
+ HANDLER(average_lot_prices).report(out);
HANDLER(lot_notes).report(out);
HANDLER(lots).report(out);
HANDLER(lots_actual).report(out);
@@ -745,6 +747,13 @@ public:
OPTION(report_t, lot_dates);
OPTION(report_t, lot_prices);
+ OPTION_(report_t, average_lot_prices, DO() {
+ OTHER(lot_prices).on(whence);
+ OTHER(display_amount_)
+ .on(whence, "averaged_lots(display_amount)");
+ OTHER(display_total_)
+ .on(whence, "averaged_lots(display_total)");
+ });
OPTION(report_t, lot_notes);
OPTION(report_t, lots);
OPTION(report_t, lots_actual);