phpcs
This commit is contained in:
parent
98ddfbf792
commit
5c4fad3cc0
@ -2090,7 +2090,7 @@ function pdf_getlineprogress($object, $i, $outputlangs, $hidedetails = 0, $hookm
|
|||||||
if (!empty($conf->global->SITUATION_DISPLAY_DIFF_ON_PDF)) {
|
if (!empty($conf->global->SITUATION_DISPLAY_DIFF_ON_PDF)) {
|
||||||
$prev_progress = 0;
|
$prev_progress = 0;
|
||||||
if (method_exists($object->lines[$i], 'get_prev_progress')) {
|
if (method_exists($object->lines[$i], 'get_prev_progress')) {
|
||||||
$prev_progress = $object->lines[$i]->get_prev_progress($object->id);
|
$prev_progress = $object->lines[$i]->get_prev_progress($object->id);
|
||||||
}
|
}
|
||||||
$result = round($object->lines[$i]->situation_percent - $prev_progress, 1).'%';
|
$result = round($object->lines[$i]->situation_percent - $prev_progress, 1).'%';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user