|
@@ -2563,8 +2563,13 @@ class Propal extends CommonObject
|
|
|
$outputlangs->setDefaultLang($newlang);
|
|
|
}
|
|
|
|
|
|
+ // PDF
|
|
|
+ $hidedetails = (!empty($conf->global->MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS) ? 1 : 0);
|
|
|
+ $hidedesc = (!empty($conf->global->MAIN_GENERATE_DOCUMENTS_HIDE_DESC) ? 1 : 0);
|
|
|
+ $hideref = (!empty($conf->global->MAIN_GENERATE_DOCUMENTS_HIDE_REF) ? 1 : 0);
|
|
|
+
|
|
|
//$ret=$object->fetch($id); // Reload to get new records
|
|
|
- $this->generateDocument($modelpdf, $outputlangs);
|
|
|
+ $this->generateDocument($modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
|
|
|
}
|
|
|
|
|
|
if (!$error) {
|
|
@@ -2651,8 +2656,13 @@ class Propal extends CommonObject
|
|
|
$outputlangs->setDefaultLang($newlang);
|
|
|
}
|
|
|
|
|
|
+ // PDF
|
|
|
+ $hidedetails = (!empty($conf->global->MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS) ? 1 : 0);
|
|
|
+ $hidedesc = (!empty($conf->global->MAIN_GENERATE_DOCUMENTS_HIDE_DESC) ? 1 : 0);
|
|
|
+ $hideref = (!empty($conf->global->MAIN_GENERATE_DOCUMENTS_HIDE_REF) ? 1 : 0);
|
|
|
+
|
|
|
//$ret=$object->fetch($id); // Reload to get new records
|
|
|
- $this->generateDocument($modelpdf, $outputlangs);
|
|
|
+ $this->generateDocument($modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
|
|
|
}
|
|
|
|
|
|
$this->oldcopy = clone $this;
|