mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Task Rounding
This commit is contained in:
parent
d6193f261a
commit
76a8dafbaa
@ -1 +1 @@
|
||||
5.8.54
|
||||
5.8.55
|
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user