Ajoute product->next_prev_filter définit dans certains canevas
$product->load_previous_next_ref($product->next_prev_filter);
This commit is contained in:
parent
43371ebb2c
commit
6a47962c37
@ -48,8 +48,8 @@ $types[0] = $langs->trans("Product");
|
|||||||
$types[1] = $langs->trans("Service");
|
$types[1] = $langs->trans("Service");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ($_GET["action"] == 'fastappro')
|
if ($_GET["action"] == 'fastappro')
|
||||||
{
|
{
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
@ -225,7 +225,6 @@ if ($_GET["action"] == 'clone' && $user->rights->produit->creer)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$db->rollback();
|
$db->rollback();
|
||||||
|
|
||||||
dolibarr_print_error($product->db);
|
dolibarr_print_error($product->db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -255,8 +254,8 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user-
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ajout du produit dans une propal
|
* Ajout du produit dans une propal
|
||||||
*/
|
*/
|
||||||
if ($_POST["action"] == 'addinpropal')
|
if ($_POST["action"] == 'addinpropal')
|
||||||
{
|
{
|
||||||
$propal = New Propal($db);
|
$propal = New Propal($db);
|
||||||
@ -308,8 +307,8 @@ if ($_POST["action"] == 'addinpropal')
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ajout du produit dans une commande
|
* Ajout du produit dans une commande
|
||||||
*/
|
*/
|
||||||
if ($_POST["action"] == 'addincommande')
|
if ($_POST["action"] == 'addincommande')
|
||||||
{
|
{
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
@ -346,8 +345,8 @@ if ($_POST["action"] == 'addincommande')
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ajout du produit dans une facture
|
* Ajout du produit dans une facture
|
||||||
*/
|
*/
|
||||||
if ($_POST["action"] == 'addinfacture' && $user->rights->facture->creer)
|
if ($_POST["action"] == 'addinfacture' && $user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
@ -393,8 +392,8 @@ if ($_POST["cancel"] == $langs->trans("Cancel"))
|
|||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Action création du produit
|
* Action création du produit
|
||||||
*/
|
*/
|
||||||
if ($_GET["action"] == 'create' && $user->rights->produit->creer)
|
if ($_GET["action"] == 'create' && $user->rights->produit->creer)
|
||||||
{
|
{
|
||||||
$product = new Product($db);
|
$product = new Product($db);
|
||||||
@ -553,7 +552,6 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
{
|
{
|
||||||
$class = 'Product'.ucfirst($product->canvas);
|
$class = 'Product'.ucfirst($product->canvas);
|
||||||
include_once('canvas/product.'.$product->canvas.'.class.php');
|
include_once('canvas/product.'.$product->canvas.'.class.php');
|
||||||
|
|
||||||
$product = new $class($db);
|
$product = new $class($db);
|
||||||
|
|
||||||
$result = $product->FetchCanvas($_GET["id"]);
|
$result = $product->FetchCanvas($_GET["id"]);
|
||||||
@ -588,7 +586,7 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
print($mesg);
|
print($mesg);
|
||||||
|
|
||||||
$product->load_previous_next_ref();
|
$product->load_previous_next_ref($product->next_prev_filter);
|
||||||
$previous_ref = $product->ref_previous?'<a href="'.$_SERVER["PHP_SELF"].'?ref='.$product->ref_previous.'">'.img_previous().'</a>':'';
|
$previous_ref = $product->ref_previous?'<a href="'.$_SERVER["PHP_SELF"].'?ref='.$product->ref_previous.'">'.img_previous().'</a>':'';
|
||||||
$next_ref = $product->ref_next?'<a href="'.$_SERVER["PHP_SELF"].'?ref='.$product->ref_next.'">'.img_next().'</a>':'';
|
$next_ref = $product->ref_next?'<a href="'.$_SERVER["PHP_SELF"].'?ref='.$product->ref_next.'">'.img_next().'</a>':'';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user