mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-22 20:16:22 +00:00 
			
		
		
		
	Various code related to the recurring transactions.
This commit is contained in:
		| @@ -74,6 +74,13 @@ class CreateController extends Controller | ||||
|         $tomorrow        = new Carbon; | ||||
|         $tomorrow->addDay(); | ||||
|  | ||||
|         // types of repetitions: | ||||
|         $typesOfRepetitions = [ | ||||
|             'forever'    => trans('firefly.repeat_forever'), | ||||
|             'until_date' => trans('firefly.repeat_until_date'), | ||||
|             'times'      => trans('firefly.repeat_times'), | ||||
|         ]; | ||||
|  | ||||
|         // flash some data: | ||||
|         $preFilled = [ | ||||
|             'first_date'       => $tomorrow->format('Y-m-d'), | ||||
| @@ -83,7 +90,7 @@ class CreateController extends Controller | ||||
|         ]; | ||||
|         $request->session()->flash('preFilled', $preFilled); | ||||
|  | ||||
|         return view('recurring.create', compact('tomorrow', 'preFilled', 'defaultCurrency','budgets')); | ||||
|         return view('recurring.create', compact('tomorrow', 'preFilled','typesOfRepetitions', 'defaultCurrency', 'budgets')); | ||||
|     } | ||||
|  | ||||
| } | ||||
| @@ -63,6 +63,20 @@ class IndexController extends Controller | ||||
|         ); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param Request $request | ||||
|      * | ||||
|      * @return string | ||||
|      */ | ||||
|     public function calendar(Request $request) | ||||
|     { | ||||
|         $date            = new Carbon; | ||||
|         $daysOfWeek      = ['S', 'M', 'T', 'W', 'T', 'F', 'S']; | ||||
|         //$firstDayOfMonth = mktime(0, 0, 0, $month, 1, $year); | ||||
|  | ||||
|         return view('recurring.calendar'); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param Request $request | ||||
|      * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user