Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
kkhelifa-opendsi committed Aug 20, 2024
1 parent 79d5eb8 commit f47f30e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/reception/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@
// avec info diverses + qte a livrer

if ($object->origin == "supplierorder") {
$object->origin = "order_supplier";
$classname = 'CommandeFournisseur';
} else {
$classname = ucfirst($object->origin);
Expand Down Expand Up @@ -439,6 +440,7 @@
} else {
// Define output language
if (!getDolGlobalString('MAIN_DISABLE_PDF_AUTOUPDATE')) {
$object->fetch_thirdparty();
$outputlangs = $langs;
$newlang = '';
if (getDolGlobalInt('MAIN_MULTILANGS') && empty($newlang) && GETPOST('lang_id', 'aZ09')) {
Expand All @@ -452,7 +454,7 @@
$outputlangs->setDefaultLang($newlang);
}
$model = $object->model_pdf;
$ret = $object->fetch($id); // Reload to get new records
$ret = $object->fetch($object->id); // Reload to get new records

$result = $object->generateDocument($model, $outputlangs, $hidedetails, $hidedesc, $hideref);
if ($result < 0) {
Expand Down

0 comments on commit f47f30e

Please sign in to comment.