diff --git a/htdocs/comm/addpropal.php b/htdocs/comm/addpropal.php
index f9fe6667415..6b50768b3b8 100644
--- a/htdocs/comm/addpropal.php
+++ b/htdocs/comm/addpropal.php
@@ -191,7 +191,7 @@ if ($_GET["action"] == 'create')
for ($i = 1 ; $i <= PROPALE_NEW_FORM_NB_PRODUCT ; $i++)
{
print '
| ';
- $form->select_produits('',"idprod".$i,'',50);
+ $form->select_produits('',"idprod".$i,'',$conf->produit->limit_size);
print ' | ';
print ' | ';
print ' % |
';
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index bd8928b4748..650f6145d64 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -330,7 +330,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
for ($i = 1 ; $i <= $NBLINES ; $i++)
{
print '| ';
- print $html->select_produits('','idprod'.$i);
+ print $html->select_produits('','idprod'.$i,'',$conf->produit->limit_size);
print ' | ';
print ' | ';
print '% |
';
@@ -806,7 +806,7 @@ else
$var=!$var;
print '';
print '';
- $html->select_produits('','p_idprod','',20);
+ $html->select_produits('','p_idprod','',$conf->produit->limit_size);
print ' ';
print '';
print ' | ';
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index dbd994558e6..f1d69eda4d1 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -654,7 +654,7 @@ if ($_GET['action'] == 'create')
$nbrows=4;
if ($conf->global->FAC_USE_CUSTOMER_ORDER_REF) $nbrows++;
print '';
- print ' | ';
+ print '';
print '';
print $html->select_tva('tva_tx',$objp->tva_taux);
print ' | ';
@@ -1558,7 +1558,7 @@ else
$var=true;
print '
';
- print ' | ';
+ print ' | ';
print '';
$html->select_tva('tva_tx',$conf->defaulttx);
print ' | ';
@@ -1591,7 +1591,7 @@ else
print '';
$html->select_produits('','idprod','',$conf->produit->limit_size);
print ' ';
- print ' | ';
+ print '';
print ' | ';
print ' | ';
print '% | ';
@@ -1790,14 +1790,24 @@ else
$var=!$var;
print '
| ';
print ''.img_object($langs->trans('ShowOrder'), 'order').' '.$objp->ref." | \n";
- print ''.$objp->ref_client.' | ';
+ if ($conf->global->FAC_USE_CUSTOMER_ORDER_REF)
+ {
+ print ''.$objp->ref_client.' | ';
+ }
print ''.dolibarr_print_date($objp->date_commande).' | ';
print ''.price($objp->total_ht).' | ';
print "
\n";
$total = $total + $objp->total_ht;
$i++;
}
- print '| | | '.$langs->trans('TotalHT').' | '.price($total).' |
';
+ print '';
+ print '| '.$langs->trans('TotalHT').' | ';
+ if ($conf->global->FAC_USE_CUSTOMER_ORDER_REF)
+ {
+ print ' | ';
+ }
+ print ' | ';
+ print ''.price($total).' |
';
print '';
}
}
diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index 950ef73c089..67976ff815b 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -806,7 +806,7 @@ else
print "";
print '';
- $html->select_produits('','p_idprod','',0);
+ $html->select_produits('','p_idprod','',$conf->produit->limit_size);
print ' ';
print '';
print ' | ';
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 12bbcccec4e..273dae15714 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -130,6 +130,12 @@ if (isset($user->conf->MAIN_LANG_DEFAULT) && $user->conf->MAIN_LANG_DEFAULT)
}
}
+$conf->produit->limit_size=50;
+if (isset($user->conf->PRODUIT_LIMIT_SIZE))
+{
+ $conf->produit->limit_size = $user->conf->PRODUIT_LIMIT_SIZE;
+}
+
// Remplace conf->css par valeur personnalisée
if (isset($user->conf->MAIN_THEME) && $user->conf->MAIN_THEME)
{
@@ -144,7 +150,7 @@ if (isset($user->conf->MAIN_DISABLE_JAVASCRIPT) && $user->conf->MAIN_DISABLE_JAV
$conf->use_javascript=! $user->conf->MAIN_DISABLE_JAVASCRIPT;
}
-// Défini gestionnaire de manu à utiliser
+// Défini gestionnaire de menu à utiliser
if (! $user->societe_id) // Si utilisateur interne
{
$conf->top_menu=$conf->global->MAIN_MENU_BARRETOP;