Fix : linked object not deleted when deleting a supplier invoice

This commit is contained in:
Maxime Kohlhaas 2013-07-16 16:34:06 +02:00
parent 7b5386692c
commit 029394aa3f

View File

@ -617,6 +617,13 @@ class FactureFournisseur extends CommonInvoice
else {
$error++;
}
if (! $error)
{
// Delete linked object
$res = $this->deleteObjectLinked();
if ($res < 0) $error++;
}
if (! $error)
{