Update list.php

This commit is contained in:
Anthony Berton 2020-05-09 00:28:23 +02:00
parent c2dff7dfed
commit 52b47fd598

View File

@ -216,7 +216,16 @@ $arrayfields = array(
if ($conf->global->PRODUIT_MULTIPRICES){
for ($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++)
{
$arrayfields['p.sellprice'.$i] = array('label'=>$langs->trans("SellingPrice")." ".$i, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>40);
$keyforlabel = 'PRODUIT_MULTIPRICES_LABEL'.$i;
if (!empty($conf->global->$keyforlabel))
{
$labelp = $i.' - '.$langs->trans($conf->global->$keyforlabel);
}
else
{
$labelp = $langs->trans("SellingPrice")." ".$i;
}
$arrayfields['p.sellprice'.$i] = array('label'=>$labelp, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>40);
$arraypricelevel[$i] = array($i);
}
}