From bc688985e1f1f6c0ecf91023487ce4d8e75fa97b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 29 Oct 2020 14:34:29 +1100 Subject: [PATCH] Set next_send_date to null when balance == 0 --- app/Models/Task.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Task.php b/app/Models/Task.php index 204e4bb6cd3e..11f32f6a23a8 100644 --- a/app/Models/Task.php +++ b/app/Models/Task.php @@ -92,7 +92,7 @@ class Task extends BaseModel - public static function calcstart_time() + public function calcStartTime() { $parts = json_decode($this->time_log) ?: []; @@ -103,7 +103,7 @@ class Task extends BaseModel } } - public function getLaststart_time() + public function getLastStartTime() { $parts = json_decode($this->time_log) ?: []; @@ -117,7 +117,7 @@ class Task extends BaseModel } - public static function calcDuration($start_time_cutoff = 0, $end_time_cutoff = 0) + public function calcDuration($start_time_cutoff = 0, $end_time_cutoff = 0) { $duration = 0; $parts = json_decode($this->time_log) ?: [];