forked from Wavyzz/dolibarr
Fix #12044 : with replenish function, use product supplier desc in order
This commit is contained in:
@@ -147,7 +147,13 @@ if ($action == 'order' && isset($_POST['valid']))
|
||||
{
|
||||
$productsupplier->getMultiLangs();
|
||||
}
|
||||
$line->desc = $productsupplier->description;
|
||||
|
||||
// if we use supplier description of the products
|
||||
if(!empty($productsupplier->desc_supplier) && !empty($conf->global->PRODUIT_FOURN_TEXTS)) {
|
||||
$desc = $productsupplier->desc_supplier;
|
||||
} else $desc = $productsupplier->description;
|
||||
|
||||
$line->desc = $desc;
|
||||
if (! empty($conf->global->MAIN_MULTILANGS))
|
||||
{
|
||||
// TODO Get desc in language of thirdparty
|
||||
|
||||
Reference in New Issue
Block a user