Some expansion on the index of repeated expenses, and the first reference to the show page.

This commit is contained in:
James Cole
2014-11-23 06:29:29 +01:00
parent 7336367eff
commit 4456ef2326
5 changed files with 23 additions and 10 deletions

View File

@@ -39,6 +39,7 @@ class Date
case 'monthly':
$date->addMonths($add);
break;
case 'quarter':
case 'quarterly':
$months = $add * 3;
$date->addMonths($months);
@@ -142,6 +143,7 @@ class Date
case 'monthly':
$date->startOfMonth();
break;
case 'quarter':
case 'quarterly':
$date->firstOfQuarter();
break;
@@ -184,6 +186,7 @@ class Date
case 'monthly':
$date->subMonths($subtract);
break;
case 'quarter':
case 'quarterly':
$months = $subtract * 3;
$date->subMonths($months);