mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Debug v23 - PDF generation error if additional PDF name not set
This commit is contained in:
@@ -641,8 +641,8 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
}
|
||||
|
||||
// Add terms to sale
|
||||
if (getDolGlobalString("MAIN_INFO_ORDER_TERMSOFSALE") && getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER')) {
|
||||
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
|
||||
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
|
||||
if (getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER') && $termsofsalefilename) {
|
||||
$termsofsale = $conf->order->dir_output.'/'.$termsofsalefilename;
|
||||
if (!empty($conf->order->multidir_output[$conf->entity])) {
|
||||
$termsofsale = $conf->order->multidir_output[$conf->entity].'/'.$termsofsalefilename;
|
||||
|
||||
@@ -912,8 +912,8 @@ class pdf_eratosthene extends ModelePDFCommandes
|
||||
}
|
||||
|
||||
// Add terms to sale
|
||||
if (getDolGlobalString("MAIN_INFO_ORDER_TERMSOFSALE") && getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER')) {
|
||||
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
|
||||
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
|
||||
if (getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER') && $termsofsalefilename) {
|
||||
$termsofsale = $conf->order->dir_output.'/'.$termsofsalefilename;
|
||||
if (!empty($conf->order->multidir_output[$conf->entity])) {
|
||||
$termsofsale = $conf->order->multidir_output[$conf->entity].'/'.$termsofsalefilename;
|
||||
|
||||
Reference in New Issue
Block a user