Fix : linked object not deleted when deleting a supplier invoice
This commit is contained in:
parent
7b5386692c
commit
029394aa3f
@ -617,6 +617,13 @@ class FactureFournisseur extends CommonInvoice
|
||||
else {
|
||||
$error++;
|
||||
}
|
||||
|
||||
if (! $error)
|
||||
{
|
||||
// Delete linked object
|
||||
$res = $this->deleteObjectLinked();
|
||||
if ($res < 0) $error++;
|
||||
}
|
||||
|
||||
if (! $error)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user