bug fixes for taxes (#3235)

This commit is contained in:
David Bomba 2020-01-21 20:29:42 +11:00 committed by GitHub
parent 8c7f4ab09f
commit 67da87b94f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class TaskTransformer extends EntityTransformer
return [
'id' => (string) $this->encodePrimaryKey($task->id),
'description' => $task->description ?: '',
// 'duration' => $task->getDuration() ?: 0,
'duration' => 0,
'updated_at' => (int)$task->updated_at,
'archived_at' => (int)$task->deleted_at,
'invoice_id' => $this->encodePrimaryKey($task->invoice_id),