Added missing call to resolve_end() in find_period
This commit is contained in:
parent
c5714a81e3
commit
d15bb66ee4
2 changed files with 74 additions and 0 deletions
|
|
@ -1238,6 +1238,8 @@ bool date_interval_t::find_period(const date_t& date)
|
||||||
DEBUG("times.interval", "true: start = " << *start);
|
DEBUG("times.interval", "true: start = " << *start);
|
||||||
DEBUG("times.interval", "true: end_of_duration = " << *end_of_duration);
|
DEBUG("times.interval", "true: end_of_duration = " << *end_of_duration);
|
||||||
|
|
||||||
|
resolve_end();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
72
test/regress/D2829FC4.test
Normal file
72
test/regress/D2829FC4.test
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
reg --forecast 'date<[2011]' --now=2010/06/20
|
||||||
|
<<<
|
||||||
|
~ Monthly since 2010/01/01
|
||||||
|
Expenses:Bills:Rent $873.00
|
||||||
|
Expenses:Household $200.00
|
||||||
|
Income:Salary -$2491.60
|
||||||
|
Assets:Bank:Checking
|
||||||
|
|
||||||
|
~ biweekly from 2010/02/23
|
||||||
|
Expenses:Bills:Housecleaning $85.00
|
||||||
|
Assets:Bank:Checking
|
||||||
|
|
||||||
|
2010/06/22 c897683b
|
||||||
|
ad738623:d317da42:0e30a690 A2079.00
|
||||||
|
208b135f:c84cc2a7:a336b63a A199.00
|
||||||
|
45435ee9:2d8ee712:ee7e46b1:0f0e7e54:f5dbec59
|
||||||
|
>>>
|
||||||
|
10-Jun-22 c897683b ad738:d317da4:0e30a690 A2079.00 A2079.00
|
||||||
|
208b1:c84cc2a:a336b63a A199.00 A2278.00
|
||||||
|
45:2d:ee:0f0e:f5dbec59 A-2278.00 0
|
||||||
|
10-Jul-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
|
||||||
|
10-Jul-01 Forecast transaction Expenses:Household $200.00 $1073.00
|
||||||
|
10-Jul-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
|
||||||
|
10-Jul-01 Forecast transaction Assets:Bank:Checking $1418.60 0
|
||||||
|
10-Jun-27 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Jun-27 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Jul-11 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Jul-11 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Aug-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
|
||||||
|
10-Aug-01 Forecast transaction Expenses:Household $200.00 $1073.00
|
||||||
|
10-Aug-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
|
||||||
|
10-Aug-01 Forecast transaction Assets:Bank:Checking $1418.60 0
|
||||||
|
10-Jul-25 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Jul-25 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Aug-08 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Aug-08 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Sep-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
|
||||||
|
10-Sep-01 Forecast transaction Expenses:Household $200.00 $1073.00
|
||||||
|
10-Sep-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
|
||||||
|
10-Sep-01 Forecast transaction Assets:Bank:Checking $1418.60 0
|
||||||
|
10-Aug-22 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Aug-22 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Sep-05 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Sep-05 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Oct-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
|
||||||
|
10-Oct-01 Forecast transaction Expenses:Household $200.00 $1073.00
|
||||||
|
10-Oct-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
|
||||||
|
10-Oct-01 Forecast transaction Assets:Bank:Checking $1418.60 0
|
||||||
|
10-Sep-19 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Sep-19 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Oct-03 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Oct-03 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Nov-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
|
||||||
|
10-Nov-01 Forecast transaction Expenses:Household $200.00 $1073.00
|
||||||
|
10-Nov-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
|
||||||
|
10-Nov-01 Forecast transaction Assets:Bank:Checking $1418.60 0
|
||||||
|
10-Oct-17 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Oct-17 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Oct-31 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Oct-31 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Nov-14 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Nov-14 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Dec-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
|
||||||
|
10-Dec-01 Forecast transaction Expenses:Household $200.00 $1073.00
|
||||||
|
10-Dec-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
|
||||||
|
10-Dec-01 Forecast transaction Assets:Bank:Checking $1418.60 0
|
||||||
|
10-Nov-28 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Nov-28 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Dec-12 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Dec-12 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
|
10-Dec-26 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
|
||||||
|
10-Dec-26 Forecast transaction Assets:Bank:Checking $-85.00 0
|
||||||
Loading…
Add table
Reference in a new issue