2
0
forked from Wavyzz/dolibarr

oups inverted value

This commit is contained in:
BENKE Charlie
2017-04-21 09:41:08 +02:00
committed by GitHub
parent b7f1e74f6f
commit 1792ff2d3b

View File

@@ -1814,7 +1814,7 @@ function pdf_getlineprogress($object, $i, $outputlangs, $hidedetails = 0, $hookm
if($conf->global->SITUATION_DISPLAY_DIFF_ON_PDF) if($conf->global->SITUATION_DISPLAY_DIFF_ON_PDF)
{ {
$prev_progress = $object->lines[$i]->get_prev_progress($object->id); $prev_progress = $object->lines[$i]->get_prev_progress($object->id);
$result = ($prev_progress - $object->lines[$i]->situation_percent) . '%'; $result = ( $object->lines[$i]->situation_percent - $prev_progress) . '%';
} }
else else
$result = $object->lines[$i]->situation_percent . '%'; $result = $object->lines[$i]->situation_percent . '%';