Dbut changement dfinition du stock

This commit is contained in:
Regis Houssin 2007-12-09 00:18:32 +00:00
parent 976158189b
commit d7024eeee8
3 changed files with 12 additions and 4 deletions

View File

@ -45,4 +45,8 @@ StockLimitShort=Limit
StockLimit=Stock limit
PhysicalStock=Physical stock
RealStock=Real Stock
TheoreticalStock=Stock théorique
TheoreticalStock=Stock théorique
MininumStock=Minimum stock
StockUp=Stock up
MininumStockShort=Stock min
StockUpShort=Stock up

View File

@ -45,4 +45,8 @@ StockLimitShort=Seuil
StockLimit=Seuil stock
PhysicalStock=Stock physique
RealStock=Stock réel
TheoreticalStock=Stock théorique
TheoreticalStock=Stock théorique
MininumStock=Stock minimum
StockUp=Stock maximum
MininumStockShort=Stock min
StockUpShort=Stock max

View File

@ -51,7 +51,7 @@ $type=trim($type);
$sortfield = isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"];
$sortorder = isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"];
if (! $sortfield) $sortfield="stock_real";
if (! $sortfield) $sortfield="stock_theorique";
if (! $sortorder) $sortorder="ASC";
$page = $_GET["page"];
$limit = $conf->liste_limit;
@ -192,7 +192,7 @@ if ($resql)
print_liste_field_titre($langs->trans("TheoreticalStock"),"reassort.php", "stock_theorique","&envente=$envente&".(isset($type)?"&type=$type":"")."&fourn_id=$fourn_id&snom=$snom&sref=$sref","",'align="right"',$sortfield,$sortorder);
if ($conf->service->enabled && $type == 1) print_liste_field_titre($langs->trans("Duration"),"reassort.php", "p.duration","&envente=$envente&".(isset($type)?"&type=$type":"")."&fourn_id=$fourn_id&snom=$snom&sref=$sref","",'align="center"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("PhysicalStock"),"reassort.php", "stock_physique","&envente=$envente&".(isset($type)?"&type=$type":"")."&fourn_id=$fourn_id&snom=$snom&sref=$sref","",'align="right"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("StockLimit"),"reassort.php", "p.seuil_stock_alerte","&envente=$envente&".(isset($type)?"&type=$type":"")."&fourn_id=$fourn_id&snom=$snom&sref=$sref","",'align="right"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("MininumStockShort"),"reassort.php", "p.seuil_stock_alerte","&envente=$envente&".(isset($type)?"&type=$type":"")."&fourn_id=$fourn_id&snom=$snom&sref=$sref","",'align="right"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Status"),"reassort.php", "p.envente","&envente=$envente&".(isset($type)?"&type=$type":"")."&fourn_id=$fourn_id&snom=$snom&sref=$sref","",'align="right"',$sortfield,$sortorder);
print "</tr>\n";