mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
syntax
This commit is contained in:
@@ -1294,11 +1294,6 @@ if (empty($reshook))
|
||||
$desc = $productsupplier->desc_supplier;
|
||||
} else $desc = $productsupplier->description;
|
||||
|
||||
//If text set in desc is the same as product descpription (as now it's preloaded) whe add it only one time
|
||||
if ($product_desc==$desc) {
|
||||
$product_desc='';
|
||||
}
|
||||
|
||||
if (trim($product_desc) != trim($desc)) $desc = dol_concatdesc($desc, $product_desc, '', !empty($conf->global->MAIN_CHANGE_ORDER_CONCAT_DESCRIPTION));
|
||||
|
||||
$type = $productsupplier->type;
|
||||
|
||||
@@ -85,6 +85,11 @@ if (!empty($action) && $action == 'fetch' && !empty($id))
|
||||
if ($socid > 0) {
|
||||
$thirdpartytemp = new Societe($db);
|
||||
$thirdpartytemp->fetch($socid);
|
||||
|
||||
if (!empty($conf->global->PRODUIT_MULTIPRICES)) {
|
||||
$price_level = $thirdpartytemp->price_level;
|
||||
}
|
||||
|
||||
//Load translation description and label
|
||||
if (!empty($conf->global->MAIN_MULTILANGS) && !empty($conf->global->PRODUIT_TEXTS_IN_THIRDPARTY_LANGUAGE)) {
|
||||
$newlang = $thirdpartytemp->default_lang;
|
||||
@@ -96,10 +101,6 @@ if (!empty($action) && $action == 'fetch' && !empty($id))
|
||||
$outlabel_trans = (!empty($object->multilangs[$outputlangs->defaultlang]["label"])) ? $object->multilangs[$outputlangs->defaultlang]["label"] : $object->label;
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($conf->global->PRODUIT_MULTIPRICES)) {
|
||||
$price_level = $thirdpartytemp->price_level;
|
||||
}
|
||||
}
|
||||
|
||||
// Price by qty
|
||||
|
||||
Reference in New Issue
Block a user