summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/times.cc2
-rw-r--r--test/regress/D2829FC4.test72
2 files changed, 74 insertions, 0 deletions
diff --git a/src/times.cc b/src/times.cc
index 72e26b91..d84cb238 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -1238,6 +1238,8 @@ bool date_interval_t::find_period(const date_t& date)
DEBUG("times.interval", "true: start = " << *start);
DEBUG("times.interval", "true: end_of_duration = " << *end_of_duration);
+ resolve_end();
+
return true;
}
diff --git a/test/regress/D2829FC4.test b/test/regress/D2829FC4.test
new file mode 100644
index 00000000..83c991fd
--- /dev/null
+++ b/test/regress/D2829FC4.test
@@ -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