Fix to an interaction between --period and --sort
Fixes 3AAB00ED-9904-4380-8988-16506B0AFE08
This commit is contained in:
parent
834d223c27
commit
efcede3ca5
1 changed files with 2 additions and 3 deletions
|
|
@ -145,9 +145,6 @@ void report_t::normalize_options(const string& verb)
|
||||||
// then ignore the period since the begin/end are the only interesting
|
// then ignore the period since the begin/end are the only interesting
|
||||||
// details.
|
// details.
|
||||||
if (HANDLED(period_)) {
|
if (HANDLED(period_)) {
|
||||||
if (! HANDLED(sort_all_))
|
|
||||||
HANDLER(sort_xacts_).on_only(string("?normalize"));
|
|
||||||
|
|
||||||
date_interval_t interval(HANDLER(period_).str());
|
date_interval_t interval(HANDLER(period_).str());
|
||||||
|
|
||||||
optional<date_t> begin = interval.begin(session.current_year);
|
optional<date_t> begin = interval.begin(session.current_year);
|
||||||
|
|
@ -164,6 +161,8 @@ void report_t::normalize_options(const string& verb)
|
||||||
|
|
||||||
if (! interval.duration)
|
if (! interval.duration)
|
||||||
HANDLER(period_).off();
|
HANDLER(period_).off();
|
||||||
|
else if (! HANDLED(sort_all_))
|
||||||
|
HANDLER(sort_xacts_).on_only(string("?normalize"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// If -j or -J were specified, set the appropriate format string now so as
|
// If -j or -J were specified, set the appropriate format string now so as
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue