syntax
This commit is contained in:
parent
7c2b5b614f
commit
925dfd36b5
@ -1294,11 +1294,6 @@ if (empty($reshook))
|
|||||||
$desc = $productsupplier->desc_supplier;
|
$desc = $productsupplier->desc_supplier;
|
||||||
} else $desc = $productsupplier->description;
|
} 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));
|
if (trim($product_desc) != trim($desc)) $desc = dol_concatdesc($desc, $product_desc, '', !empty($conf->global->MAIN_CHANGE_ORDER_CONCAT_DESCRIPTION));
|
||||||
|
|
||||||
$type = $productsupplier->type;
|
$type = $productsupplier->type;
|
||||||
|
|||||||
@ -85,6 +85,11 @@ if (!empty($action) && $action == 'fetch' && !empty($id))
|
|||||||
if ($socid > 0) {
|
if ($socid > 0) {
|
||||||
$thirdpartytemp = new Societe($db);
|
$thirdpartytemp = new Societe($db);
|
||||||
$thirdpartytemp->fetch($socid);
|
$thirdpartytemp->fetch($socid);
|
||||||
|
|
||||||
|
if (!empty($conf->global->PRODUIT_MULTIPRICES)) {
|
||||||
|
$price_level = $thirdpartytemp->price_level;
|
||||||
|
}
|
||||||
|
|
||||||
//Load translation description and label
|
//Load translation description and label
|
||||||
if (!empty($conf->global->MAIN_MULTILANGS) && !empty($conf->global->PRODUIT_TEXTS_IN_THIRDPARTY_LANGUAGE)) {
|
if (!empty($conf->global->MAIN_MULTILANGS) && !empty($conf->global->PRODUIT_TEXTS_IN_THIRDPARTY_LANGUAGE)) {
|
||||||
$newlang = $thirdpartytemp->default_lang;
|
$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;
|
$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
|
// Price by qty
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user