mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Some basic fixes for the transaction controller [skip ci]
This commit is contained in:
@@ -46,14 +46,14 @@ class EloquentLimitTrigger
|
||||
if ($limit->repeats == 0) {
|
||||
$limit->createRepetition($limit->startdate);
|
||||
}
|
||||
if($limit->repeats == 1) {
|
||||
if ($limit->repeats == 1) {
|
||||
$start = $limit->startdate;
|
||||
$end = new Carbon;
|
||||
|
||||
// repeat for period:
|
||||
$current = clone $start;
|
||||
\Log::debug('Create repeating limit for #'.$limit->id.' starting on ' . $current);
|
||||
while($current <= $end) {
|
||||
\Log::debug('Create repeating limit for #' . $limit->id . ' starting on ' . $current);
|
||||
while ($current <= $end) {
|
||||
\Log::debug('Current is now: ' . $current);
|
||||
$limit->createRepetition(clone $current);
|
||||
// switch period, add time:
|
||||
@@ -128,10 +128,10 @@ class EloquentLimitTrigger
|
||||
// }
|
||||
//
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
|
Reference in New Issue
Block a user