Skip to content

Commit

Permalink
[ListingRisksAction] add: progress value in taskAction
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Sep 15, 2021
1 parent 9927ded commit d957933
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails
if ($related_task->progress == 100) {
$tmparray['actionPreventionCompleted'] .= dol_print_date($related_task->date_c, '%A %e %B %G %H:%M') . ': ' . $related_task->label . "\n";
} else {
$tmparray['actionPreventionUncompleted'] .= dol_print_date($related_task->date_c, '%A %e %B %G %H:%M') . ': ' . $related_task->label . "\n";
$tmparray['actionPreventionUncompleted'] .= dol_print_date($related_task->date_c, '%A %e %B %G %H:%M') . ': ' . $related_task->label . ' ' . ($related_task->progress ? $related_task->progress : 0) . '%' . "\n";
}
}
} else {
Expand Down Expand Up @@ -402,9 +402,9 @@ public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails
if (!empty($related_tasks)) {
foreach ($related_tasks as $related_task) {
if ($related_task->progress == 100) {
$tmparray['actionPreventionCompleted'] .= dol_print_date($related_task->date_c, '%A %e %B %G %H:%M') . ': ' . $related_task->label . "\n";
$tmparray['actionPreventionCompleted'] .= dol_print_date($related_task->date_c, '%A %e %B %G %H:%M') . ': ' ."\n";
} else {
$tmparray['actionPreventionUncompleted'] .= dol_print_date($related_task->date_c, '%A %e %B %G %H:%M') . ': '. $related_task->label . "\n";
$tmparray['actionPreventionUncompleted'] .= dol_print_date($related_task->date_c, '%A %e %B %G %H:%M') . ': ' . $related_task->label . ' ' . ($related_task->progress ? $related_task->progress : 0) . '%'. "\n";
}
}
} else {
Expand Down

0 comments on commit d957933

Please sign in to comment.