comments
This commit is contained in:
parent
e5a70ade85
commit
d31064a8b1
@ -17,9 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/product/replenish.php
|
* \file htdocs/product/stock/replenish.php
|
||||||
* \ingroup produit
|
* \ingroup produit
|
||||||
* \brief Page to list stocks
|
* \brief Page to list stocks to replenish
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
@ -86,7 +86,8 @@ if (! empty($_POST["button_removefilter_x"]))
|
|||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//orders creation
|
||||||
if($action == 'order'){
|
if($action == 'order'){
|
||||||
$linecount = GETPOST('linecount', 'int');
|
$linecount = GETPOST('linecount', 'int');
|
||||||
$suppliers = array();
|
$suppliers = array();
|
||||||
@ -277,7 +278,6 @@ if ($resql)
|
|||||||
print_liste_field_titre($langs->trans("Ref"),"replenish.php", "p.ref",$param,"","",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Ref"),"replenish.php", "p.ref",$param,"","",$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("Label"),"replenish.php", "p.label",$param,"","",$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Label"),"replenish.php", "p.label",$param,"","",$sortfield,$sortorder);
|
||||||
if (! empty($conf->service->enabled) && $type == 1) print_liste_field_titre($langs->trans("Duration"),"replenish.php", "p.duration",$param,"",'align="center"',$sortfield,$sortorder);
|
if (! empty($conf->service->enabled) && $type == 1) print_liste_field_titre($langs->trans("Duration"),"replenish.php", "p.duration",$param,"",'align="center"',$sortfield,$sortorder);
|
||||||
//print_liste_field_titre($langs->trans("MininumStock"),"replenish.php", "p.seuil_stock_alerte",$param,"",'align="right"',$sortfield,$sortorder);
|
|
||||||
print_liste_field_titre($langs->trans("DesiredStock"),"replenish.php", "p.desiredstock",$param,"",'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("DesiredStock"),"replenish.php", "p.desiredstock",$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("PhysicalStock"),"replenish.php", "stock_physique",$param,"",'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("PhysicalStock"),"replenish.php", "stock_physique",$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre($langs->trans("StockToBuy"),"replenish.php", "",$param,"",'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("StockToBuy"),"replenish.php", "",$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
@ -342,7 +342,6 @@ if ($resql)
|
|||||||
$product_static->id=$objp->rowid;
|
$product_static->id=$objp->rowid;
|
||||||
$product_static->type=$objp->fk_product_type;
|
$product_static->type=$objp->fk_product_type;
|
||||||
print $product_static->getNomUrl(1,'',16);
|
print $product_static->getNomUrl(1,'',16);
|
||||||
//if ($objp->stock_theorique < $objp->seuil_stock_alerte) print ' '.img_warning($langs->trans("StockTooLow"));
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>'.$objp->label.'</td>';
|
print '<td>'.$objp->label.'</td>';
|
||||||
print '<input type="hidden" name="desc'.$i.'" value="'.$objp->label.'" >';
|
print '<input type="hidden" name="desc'.$i.'" value="'.$objp->label.'" >';
|
||||||
@ -407,8 +406,7 @@ $sttc=GETPOST('search_ttc');
|
|||||||
$sall=GETPOST('search_all');
|
$sall=GETPOST('search_all');
|
||||||
|
|
||||||
$page = GETPOST('page','int');
|
$page = GETPOST('page','int');
|
||||||
/*$sortorder = GETPOST('sortorder','alpha');
|
|
||||||
$sortfield = GETPOST('sortfield','alpha');*/
|
|
||||||
$sortorder="DESC";
|
$sortorder="DESC";
|
||||||
$sortfield="cf.date_creation";
|
$sortfield="cf.date_creation";
|
||||||
$offset = $conf->liste_limit * $page ;
|
$offset = $conf->liste_limit * $page ;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user