FIX statistics on MRP page
This commit is contained in:
parent
2814a5c07b
commit
7fee355fba
@ -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);
|
||||
|
||||
@ -46,6 +47,7 @@ $result=restrictedArea($user, 'bom|mrp');
|
||||
*/
|
||||
|
||||
$staticbom = new BOM($db);
|
||||
$staticmo = new Mo($db);
|
||||
|
||||
llxHeader('', $langs->trans("MRP"), '');
|
||||
|
||||
@ -81,7 +83,7 @@ if ($conf->use_javascript_ajax)
|
||||
{
|
||||
//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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ if (! empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) // This is usele
|
||||
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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user