Fix wrong variable used to fetch replaced invoice
This commit is contained in:
parent
56f0efa2fc
commit
01e90a4854
@ -2940,7 +2940,7 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
if (isset($objectidnext) && $objectidnext > 0) {
|
if (isset($objectidnext) && $objectidnext > 0) {
|
||||||
$facthatreplace = new FactureFournisseur($db);
|
$facthatreplace = new FactureFournisseur($db);
|
||||||
$facthatreplace->fetch($facidnext);
|
$facthatreplace->fetch($objectidnext);
|
||||||
print ' ('.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1)).')';
|
print ' ('.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1)).')';
|
||||||
}
|
}
|
||||||
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE || $object->type == FactureFournisseur::TYPE_DEPOSIT) {
|
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE || $object->type == FactureFournisseur::TYPE_DEPOSIT) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user