2
0
forked from Wavyzz/dolibarr

Fix wrong variable used to fetch replaced invoice

This commit is contained in:
David Pareja Rodriguez
2023-01-24 11:04:26 +01:00
parent 56f0efa2fc
commit 01e90a4854

View File

@@ -2940,7 +2940,7 @@ if ($action == 'create') {
}
if (isset($objectidnext) && $objectidnext > 0) {
$facthatreplace = new FactureFournisseur($db);
$facthatreplace->fetch($facidnext);
$facthatreplace->fetch($objectidnext);
print ' ('.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1)).')';
}
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE || $object->type == FactureFournisseur::TYPE_DEPOSIT) {