diff options
author | Peter Pickford <git@netremedies.ca> | 2016-03-10 00:25:19 +0000 |
---|---|---|
committer | Peter Pickford <git@netremedies.ca> | 2016-03-13 17:19:46 -0700 |
commit | a0b68905ef5fd06dcb9a7827039177a4a7d37ddc (patch) | |
tree | bd79ca07c7104e7e6ecf89b887b7c90e194729a2 /test/regress/370-budget_period_days.test | |
parent | 6770d00dba467d55921c3676a339cac8b221f214 (diff) | |
download | fork-ledger-a0b68905ef5fd06dcb9a7827039177a4a7d37ddc.tar.gz fork-ledger-a0b68905ef5fd06dcb9a7827039177a4a7d37ddc.tar.bz2 fork-ledger-a0b68905ef5fd06dcb9a7827039177a4a7d37ddc.zip |
days - do not stabalize periods spacified in days
weeks - calculate start date for finding period using remainer 400/periodlength to reduce number of iterations (perhaps this ought to follow the same conventio as years months and quarters)
add sample period command tests
add add day period tests for forecasts and budgets
add week period tests for forecasts and budgets - these do not change
Diffstat (limited to 'test/regress/370-budget_period_days.test')
-rw-r--r-- | test/regress/370-budget_period_days.test | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/regress/370-budget_period_days.test b/test/regress/370-budget_period_days.test new file mode 100644 index 00000000..459c5071 --- /dev/null +++ b/test/regress/370-budget_period_days.test @@ -0,0 +1,27 @@ +;budgets care about start dates +~ every 14 days from 2010/02/23 + Expenses:Bills:Housecleaning $85.00 + Assets:Bank:Checking + +;before Sun aug 01 2010 +;now is Mon jun 21 2010 +;a Tuesday? +; +test reg --budget --now=2010/06/13 +10-Feb-23 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-Feb-23 Budget transaction Assets:Bank:Checking $85.00 0 +10-Mar-09 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-Mar-09 Budget transaction Assets:Bank:Checking $85.00 0 +10-Mar-23 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-Mar-23 Budget transaction Assets:Bank:Checking $85.00 0 +10-Apr-06 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-Apr-06 Budget transaction Assets:Bank:Checking $85.00 0 +10-Apr-20 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-Apr-20 Budget transaction Assets:Bank:Checking $85.00 0 +10-May-04 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-May-04 Budget transaction Assets:Bank:Checking $85.00 0 +10-May-18 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-May-18 Budget transaction Assets:Bank:Checking $85.00 0 +10-Jun-01 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00 +10-Jun-01 Budget transaction Assets:Bank:Checking $85.00 0 +end test |