Merge pull request #16800 from FHenry/13.0
fix: PRODUIT_PDF_MERGE_PROPAL options do not work with new product feature
This commit is contained in:
commit
b1cf252989
@ -285,6 +285,7 @@ if (empty($reshook))
|
|||||||
} elseif ($action == 'setecheance' && $usercancreate)
|
} elseif ($action == 'setecheance' && $usercancreate)
|
||||||
{
|
{
|
||||||
$result = $object->set_echeance($user, dol_mktime(12, 0, 0, $_POST['echmonth'], $_POST['echday'], $_POST['echyear']));
|
$result = $object->set_echeance($user, dol_mktime(12, 0, 0, $_POST['echmonth'], $_POST['echday'], $_POST['echyear']));
|
||||||
|
$result = $object->generateDocument($model, $outputlangs, $hidedetails, $hidedesc, $hideref);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
dol_print_error($db, $object->error);
|
dol_print_error($db, $object->error);
|
||||||
} elseif ($action == 'setdate_livraison' && $usercancreate)
|
} elseif ($action == 'setdate_livraison' && $usercancreate)
|
||||||
|
|||||||
@ -762,9 +762,9 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!empty($conf->product->enabled)) {
|
if (!empty($conf->product->enabled)) {
|
||||||
$filetomerge_dir = $conf->product->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product').dol_sanitizeFileName($product->ref);
|
$filetomerge_dir = $conf->product->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product');
|
||||||
} elseif (!empty($conf->service->enabled)) {
|
} elseif (!empty($conf->service->enabled)) {
|
||||||
$filetomerge_dir = $conf->service->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product').dol_sanitizeFileName($product->ref);
|
$filetomerge_dir = $conf->service->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -907,9 +907,9 @@ class pdf_cyan extends ModelePDFPropales
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!empty($conf->product->enabled)) {
|
if (!empty($conf->product->enabled)) {
|
||||||
$filetomerge_dir = $conf->product->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product').dol_sanitizeFileName($product->ref);
|
$filetomerge_dir = $conf->product->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product');
|
||||||
} elseif (!empty($conf->service->enabled)) {
|
} elseif (!empty($conf->service->enabled)) {
|
||||||
$filetomerge_dir = $conf->service->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product').dol_sanitizeFileName($product->ref);
|
$filetomerge_dir = $conf->service->multidir_output[$entity_product_file].'/'.get_exdir(0, 0, 0, 0, $product, 'product');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user