$ ledger period 'every 2 weeks from 2017-11-02'
--- Period expression tokens ---
TOK_EVERY: every
TOK_INT: 2
TOK_WEEKS: weeks
TOK_SINCE: since
TOK_DATE: year 2017 month Nov day 2
END_REACHED: <EOF>
--- Before stabilization ---
range: from year 2017 month Nov day 2
duration: 2 weeks
--- After stabilization ---
range: from year 2017 month Nov day 2
start: 17-Nov-02
duration: 2 weeks
--- Sample dates in range (max. 20) ---
1: 17-Nov-02 -- 17-Nov-04
2: 17-Nov-05 -- 17-Nov-18
3: 17-Nov-19 -- 17-Dec-02
4: 17-Dec-03 -- 17-Dec-16
5: 17-Dec-17 -- 17-Dec-30
6: 17-Dec-31 -- 18-Jan-13
7: 18-Jan-14 -- 18-Jan-27
8: 18-Jan-28 -- 18-Feb-10
9: 18-Feb-11 -- 18-Feb-24
10: 18-Feb-25 -- 18-Mar-10
11: 18-Mar-11 -- 18-Mar-24
12: 18-Mar-25 -- 18-Apr-07
13: 18-Apr-08 -- 18-Apr-21
14: 18-Apr-22 -- 18-May-05
15: 18-May-06 -- 18-May-19
16: 18-May-20 -- 18-Jun-02
17: 18-Jun-03 -- 18-Jun-16
18: 18-Jun-17 -- 18-Jun-30
19: 18-Jul-01 -- 18-Jul-14
20: 18-Jul-15 -- 18-Jul-28
$ ledger -f budget-test.ledger reg --budget --start-of-week Thursday --no-color2017-11-02 Budget transaction Expenses:Biweekly $-20 $-202017-11-02 Budget transaction Assets $20 02017-11-03 Some fortnightly thing Expenses:Biweekly $20 $20Assets $-20 02017-11-05 Budget transaction Expenses:Biweekly $-20 $-202017-11-05 Budget transaction Assets $20 02017-11-16 Corner case Expenses:Biweekly $20 $20Assets $-20 0
$ ledger -f budget-test-weekly.ledger reg --budget --start-of-week 4 --no-color
2017-11-02 Budget transaction Expenses:Biweekly $-20 $-202017-11-02 Budget transaction Assets $20 02017-11-03 Some fortnightly thing Expenses:Biweekly $20 $20Assets $-20 0
2017-11-16 Budget transaction Expenses:Biweekly $-20 $-202017-11-16 Budget transaction Assets $20 0
2017-11-16 Corner case Expenses:Biweekly $20 $20Assets $-20 0
I'm still just playing with the periodic transactions for now so I'm not sure if I'm going to clash with the current implementation soon or not. Given the way I'm reviewing my budget your point about monthly transactions might be valid for me sooner rather than later (e.g. I might want to see which monthly expenses are due in the next fortnight) but we'll see how we go.
On Friday, November 17, 2017 at 10:19:40 PM UTC-5, Scott Payne wrote:I'm still just playing with the periodic transactions for now so I'm not sure if I'm going to clash with the current implementation soon or not. Given the way I'm reviewing my budget your point about monthly transactions might be valid for me sooner rather than later (e.g. I might want to see which monthly expenses are due in the next fortnight) but we'll see how we go.How has this turned out? I've been very interested in the forecasting feature to keep my forecast checking balance between a low- and high-water mark, but the periodic implementation seems to fight this. All monthly things seem to be put on the first of the month, and yearly expenses are all but useless because I think they're all pushed to Jan 1.