Merge pull request #12619 from grandoc/new_branch_03_12_2019
Fix : Fatal error: Uncaught Error: Class Facture not found
This commit is contained in:
commit
7a2d5de239
@ -1282,9 +1282,11 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
|
|||||||
if (!empty($prodser->multilangs[$outputlangs->defaultlang]["note"]) && ($textwasmodified || $translatealsoifmodified)) $note = $prodser->multilangs[$outputlangs->defaultlang]["note"];
|
if (!empty($prodser->multilangs[$outputlangs->defaultlang]["note"]) && ($textwasmodified || $translatealsoifmodified)) $note = $prodser->multilangs[$outputlangs->defaultlang]["note"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($object->type == Facture::TYPE_DEPOSIT && $object->element == 'facture') {
|
elseif ($object->element == 'facture' || $object->element == 'facturefourn') {
|
||||||
|
if ($object->type == $object::TYPE_DEPOSIT) {
|
||||||
$desc = str_replace('(DEPOSIT)', $outputlangs->trans('Deposit'), $desc);
|
$desc = str_replace('(DEPOSIT)', $outputlangs->trans('Deposit'), $desc);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Description short of product line
|
// Description short of product line
|
||||||
$libelleproduitservice = $label;
|
$libelleproduitservice = $label;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user