Skip to content

Commit

Permalink
FIX statistics on MRP page
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 25, 2019
1 parent 2814a5c commit 7fee355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion htdocs/mrp/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
require_once DOL_DOCUMENT_ROOT.'/mrp/class/mo.class.php';

$hookmanager = new HookManager($db);

Expand All @@ -46,6 +47,7 @@
*/

$staticbom = new BOM($db);
$staticmo = new Mo($db);

llxHeader('', $langs->trans("MRP"), '');

Expand Down Expand Up @@ -81,7 +83,7 @@
{
//if ($row[1]!=-1 && ($row[1]!=3 || $row[2]!=1))
{
$dataseries[$obj->status]=$obj->nb;
$dataseries[$obj->status]=array(0=>$staticmo->LibStatut($obj->status), $obj->nb);
$totalnb+=$obj->nb;
}
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/projet/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
foreach($listofsearchfields as $key => $value)
{
if ($i == 0) print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
print '<tr '.$bc[false].'>';
print '<tr>';
print '<td class="nowrap"><label for="'.$key.'">'.$langs->trans($value["text"]).'</label></td><td><input type="text" class="flat inputsearch" name="'.$key.'" id="'.$key.'" size="18"></td>';
if ($i == 0) print '<td rowspan="'.count($listofsearchfields).'"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td>';
print '</tr>';
Expand Down

0 comments on commit 7fee355

Please sign in to comment.