Les constantes $conf->global->FAC_ADD_PROD_DESC , $conf->global->COMMANDE_ADD_PROD_DESC et $conf->global->PROP_ADD_PROD_DESC ont t toutes renomes en $conf->global->FORM_ADD_PROD_DESC afin d'unifier le paramtrage.
This commit is contained in:
parent
5c5b32de55
commit
7875613355
@ -137,27 +137,13 @@ else if ($_POST["action"] == 'confirmdeleteline')
|
||||
else if ($_POST["action"] == 'changeproductdesc')
|
||||
{
|
||||
dolibarr_set_const($db, "PRODUIT_CHANGE_PROD_DESC", $_POST["activate_changeproductdesc"]);
|
||||
dolibarr_set_const($db, "PROPALE_ADD_PROD_DESC", 0);
|
||||
dolibarr_set_const($db, "COMMANDE_ADD_PROD_DESC", 0);
|
||||
dolibarr_set_const($db, "FACTURE_ADD_PROD_DESC", 0);
|
||||
dolibarr_set_const($db, "FORM_ADD_PROD_DESC", 0);
|
||||
Header("Location: produit.php");
|
||||
exit;
|
||||
}
|
||||
else if ($_POST["action"] == 'viewProdDescInPropal')
|
||||
else if ($_POST["action"] == 'viewProdDescInForm')
|
||||
{
|
||||
dolibarr_set_const($db, "PROPALE_ADD_PROD_DESC", $_POST["activate_viewProdDescInPropal"]);
|
||||
Header("Location: produit.php");
|
||||
exit;
|
||||
}
|
||||
else if ($_POST["action"] == 'viewProdDescInOrder')
|
||||
{
|
||||
dolibarr_set_const($db, "COMMANDE_ADD_PROD_DESC", $_POST["activate_viewProdDescInOrder"]);
|
||||
Header("Location: produit.php");
|
||||
exit;
|
||||
}
|
||||
else if ($_POST["action"] == 'viewProdDescInInvoice')
|
||||
{
|
||||
dolibarr_set_const($db, "FACTURE_ADD_PROD_DESC", $_POST["activate_viewProdDescInInvoice"]);
|
||||
dolibarr_set_const($db, "FORM_ADD_PROD_DESC", $_POST["activate_viewProdDescInForm"]);
|
||||
Header("Location: produit.php");
|
||||
exit;
|
||||
}
|
||||
@ -268,42 +254,14 @@ print '</form>';
|
||||
|
||||
if ($conf->global->PRODUIT_CHANGE_PROD_DESC == 0)
|
||||
{
|
||||
// Visualiser description produit dans propale activation/desactivation
|
||||
// Visualiser description produit dans les formulaires activation/desactivation
|
||||
$var=!$var;
|
||||
print "<form method=\"post\" action=\"produit.php\">";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"viewProdDescInPropal\">";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"viewProdDescInForm\">";
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<td width="80%">'.$langs->trans("ViewProductDescInPropalAbility").'</td>';
|
||||
print '<td width="80%">'.$langs->trans("ViewProductDescInFormAbility").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print $html->selectyesno("activate_viewProdDescInPropal",$conf->global->PROPALE_ADD_PROD_DESC,1);
|
||||
print '</td><td align="right">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||
print "</td>";
|
||||
print '</tr>';
|
||||
print '</form>';
|
||||
|
||||
// Visualiser description produit dans commande activation/desactivation
|
||||
$var=!$var;
|
||||
print "<form method=\"post\" action=\"produit.php\">";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"viewProdDescInOrder\">";
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<td width="80%">'.$langs->trans("ViewProductDescInOrderAbility").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print $html->selectyesno("activate_viewProdDescInOrder",$conf->global->COMMANDE_ADD_PROD_DESC,1);
|
||||
print '</td><td align="right">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||
print "</td>";
|
||||
print '</tr>';
|
||||
print '</form>';
|
||||
|
||||
// Visualiser description produit dans facture activation/desactivation
|
||||
$var=!$var;
|
||||
print "<form method=\"post\" action=\"produit.php\">";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"viewProdDescInInvoice\">";
|
||||
print "<tr ".$bc[$var].">";
|
||||
print '<td width="80%">'.$langs->trans("ViewProductDescInInvoiceAbility").'</td>';
|
||||
print '<td width="60" align="right">';
|
||||
print $html->selectyesno("activate_viewProdDescInInvoice",$conf->global->FACTURE_ADD_PROD_DESC,1);
|
||||
print $html->selectyesno("activate_viewProdDescInForm",$conf->global->FORM_ADD_PROD_DESC,1);
|
||||
print '</td><td align="right">';
|
||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||
print "</td>";
|
||||
|
||||
@ -1039,7 +1039,7 @@ if ($conf->expedition->enabled)
|
||||
else print img_object($langs->trans('ShowProduct'),'product');
|
||||
print ' '.$objp->ref.'</a>';
|
||||
print ' - '.nl2br($objp->product);
|
||||
if ($conf->global->PROPALE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
print '<br>'.nl2br($objp->product_desc);
|
||||
}
|
||||
|
||||
@ -1257,7 +1257,7 @@ else
|
||||
else print img_object($langs->trans('ShowProduct'),'product');
|
||||
print ' '.$objp->ref.'</a> - '.nl2br($objp->product);
|
||||
print ($objp->description && $objp->description!=$objp->product)?'<br>'.nl2br($objp->description):'';
|
||||
if ($conf->global->COMMANDE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
print '<br>'.nl2br($objp->product_desc);
|
||||
}
|
||||
|
||||
@ -1794,7 +1794,7 @@ else
|
||||
print_date_range($objp->date_start,$objp->date_end);
|
||||
print ($objp->description && $objp->description!=$objp->product)?'<br>'.stripslashes(nl2br($objp->description)):'';
|
||||
|
||||
if ($conf->global->FACTURE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
print '<br>'.nl2br(stripslashes($objp->product_desc));
|
||||
}
|
||||
|
||||
@ -218,7 +218,7 @@ class pdf_muscadet extends ModelePDFCommandesSuppliers
|
||||
}
|
||||
|
||||
// Ajoute description du produit
|
||||
if ($conf->global->COMMANDE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
if ($com->lignes[$i]->product_desc&&$com->lignes[$i]->product_desc!=$fac->lignes[$i]->libelle&&$com->lignes[$i]->product_desc!=$com->lignes[$i]->desc)
|
||||
{
|
||||
|
||||
@ -213,7 +213,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
}
|
||||
|
||||
// Ajoute description du produit
|
||||
if ($conf->global->COMMANDE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
if ($com->lignes[$i]->product_desc&&$com->lignes[$i]->product_desc!=$fac->lignes[$i]->libelle&&$com->lignes[$i]->product_desc!=$com->lignes[$i]->desc)
|
||||
{
|
||||
|
||||
@ -237,7 +237,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
}
|
||||
|
||||
// Ajoute description du produit
|
||||
if ($conf->global->FACTURE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
if ($fac->lignes[$i]->product_desc&&$fac->lignes[$i]->product_desc!=$fac->lignes[$i]->libelle&&$fac->lignes[$i]->product_desc!=$fac->lignes[$i]->desc)
|
||||
{
|
||||
|
||||
@ -84,12 +84,6 @@ class modCommande extends DolibarrModules
|
||||
$this->const[1][2] = "mod_commande_marbre";
|
||||
$this->const[1][3] = 'Nom du gestionnaire de numérotation des commandes';
|
||||
$this->const[1][4] = 0;
|
||||
|
||||
$this->const[2][0] = "COMMANDE_ADD_PROD_DESC";
|
||||
$this->const[2][1] = "chaine";
|
||||
$this->const[2][2] = "0";
|
||||
$this->const[2][3] = "Mettre à 1 pour voir la description d\'un produit dans une commande";
|
||||
$this->const[2][4] = 1;
|
||||
|
||||
// Boites
|
||||
$this->boxes = array();
|
||||
|
||||
@ -94,13 +94,6 @@ class modFacture extends DolibarrModules
|
||||
$this->const[$r][2] = "0";
|
||||
$r++;
|
||||
|
||||
$this->const[$r][0] = "FACTURE_ADD_PROD_DESC";
|
||||
$this->const[$r][1] = "chaine";
|
||||
$this->const[$r][2] = "0";
|
||||
$this->const[$r][3] = "Mettre à 1 pour voir la description d'un produit dans une facture";
|
||||
$this->const[$r][4] = 1;
|
||||
$r++;
|
||||
|
||||
// Boites
|
||||
$this->boxes = array();
|
||||
$r=0;
|
||||
|
||||
@ -83,12 +83,6 @@ class modPropale extends DolibarrModules
|
||||
$this->const[1][2] = "mod_propale_marbre";
|
||||
$this->const[1][3] = 'Nom du gestionnaire de numérotation des propales';
|
||||
$this->const[1][4] = 0;
|
||||
|
||||
$this->const[2][0] = "PROPALE_ADD_PROD_DESC";
|
||||
$this->const[2][1] = "chaine";
|
||||
$this->const[2][2] = "0";
|
||||
$this->const[2][3] = "Mettre à 1 pour voir la description d\'un produit dans une propale";
|
||||
$this->const[2][4] = 1;
|
||||
|
||||
// Boxes
|
||||
$this->boxes = array();
|
||||
|
||||
@ -238,7 +238,7 @@ class pdf_propale_azur extends ModelePDFPropales
|
||||
}
|
||||
|
||||
// Ajoute description complète du produit
|
||||
if ($conf->global->PROPALE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
if ($propale->lignes[$i]->product_desc && $propale->lignes[$i]->product_desc!=$propale->lignes[$i]->libelle && $propale->lignes[$i]->product_desc!=$propale->lignes[$i]->desc)
|
||||
{
|
||||
|
||||
@ -499,10 +499,8 @@ LDAPFieldMobileExample=Default attribute : mobile
|
||||
ProductSetup=Products module setup
|
||||
NumberOfProductShowInSelect=Max number of products in combos select lists (0=no limit)
|
||||
ConfirmDeleteProductLineAbility=Confirmation of removal of a line produces in the forms
|
||||
ModifyProductDescAbility=
|
||||
ViewProductDescInPropalAbility=
|
||||
ViewProductDescInOrderAbility=
|
||||
ViewProductDescInInvoiceAbility=
|
||||
ModifyProductDescAbility=Personalization of descriptions produced in the forms
|
||||
ViewProductDescInFormAbility=Visualization of descriptions produced in the forms
|
||||
##### Syslog #####
|
||||
SyslogSetup=Syslog module setup
|
||||
SyslogOutput=Log output
|
||||
|
||||
@ -500,9 +500,7 @@ ProductSetup=Configuration du module Produits
|
||||
NumberOfProductShowInSelect=Nombre de produits max dans les listes déroulantes (0=aucune limite)
|
||||
ConfirmDeleteProductLineAbility=Confirmation de suppression d'une ligne produit dans les formulaires
|
||||
ModifyProductDescAbility=Personnalisation des descriptions produits dans les formulaires
|
||||
ViewProductDescInPropalAbility=Visualisation des descriptions produits dans les propales
|
||||
ViewProductDescInOrderAbility=Visualisation des descriptions produits dans les commandes
|
||||
ViewProductDescInInvoiceAbility=Visualisation des descriptions produits dans les factures
|
||||
ViewProductDescInFormAbility=Visualisation des descriptions produits dans les formulaires
|
||||
##### Syslog #####
|
||||
SyslogSetup=Configuration du module Syslog
|
||||
SyslogOutput=Sortie des log
|
||||
|
||||
@ -219,7 +219,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
}
|
||||
|
||||
// Ajoute description du produit
|
||||
if ($conf->global->COMMANDE_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
if ($conf->global->FORM_ADD_PROD_DESC && !$conf->global->PRODUIT_CHANGE_PROD_DESC)
|
||||
{
|
||||
if ($lignesdelivery[$i]->product_desc&&$lignesdelivery[$i]->product_desc!=$lignesdelivery[$i]->libelle&&$lignesdelivery[$i]->product_desc!=$lignesdelivery[$i]->desc)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user