Set next_send_date to null when balance == 0

This commit is contained in:
David Bomba 2020-10-29 14:34:29 +11:00
parent e891238db0
commit bc688985e1

View File

@ -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) ?: [];