1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Task Rounding

This commit is contained in:
David Bomba 2024-05-10 22:24:55 +10:00
parent d6193f261a
commit 76a8dafbaa
3 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
5.8.54
5.8.55

View File

@ -262,6 +262,9 @@ class TaskRepository extends BaseRepository
if($this->task_round_up)
return $start_time + (int)ceil($interval/$this->task_round_to_nearest)*$this->task_round_to_nearest;
if($interval <= $this->task_round_to_nearest)
return $start_time;
return $start_time - (int)floor($interval/$this->task_round_to_nearest) * $this->task_round_to_nearest;
}

View File

@ -17,8 +17,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => env('APP_VERSION', '5.8.54'),
'app_tag' => env('APP_TAG', '5.8.54'),
'app_version' => env('APP_VERSION', '5.8.55'),
'app_tag' => env('APP_TAG', '5.8.55'),
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),