fixed a problem with interval strings that use only a beg or end date
This commit is contained in:
parent
b1aa1344ae
commit
5ad722fcdf
1 changed files with 37 additions and 33 deletions
4
walk.cc
4
walk.cc
|
|
@ -279,6 +279,7 @@ void interval_transactions::operator()(transaction_t& xact)
|
|||
std::difftime(xact.entry->date, interval.end) >= 0))
|
||||
return;
|
||||
|
||||
if (interval) {
|
||||
std::time_t quant = interval.increment(interval.begin);
|
||||
if (std::difftime(xact.entry->date, quant) > 0) {
|
||||
if (last_xact) {
|
||||
|
|
@ -315,6 +316,9 @@ void interval_transactions::operator()(transaction_t& xact)
|
|||
}
|
||||
|
||||
subtotal_transactions::operator()(xact);
|
||||
} else {
|
||||
(*handler)(xact);
|
||||
}
|
||||
|
||||
last_xact = &xact;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue