Fix: Delete linked element to supplier invoice when deleted (as done for
all other object into dolibarr)
This commit is contained in:
parent
83042459a5
commit
cb86cd403c
@ -21,6 +21,7 @@ Fix: Mailing module : if an email is already in destinaires list all other email
|
||||
Fix: Localtaxes balance not showing
|
||||
Fix: Intervention box links to contracts id
|
||||
Fix: Compatiblity with multicompany module
|
||||
Fix: Delete linked element to supplier invoice when deleted
|
||||
|
||||
***** ChangeLog for 3.4 compared to 3.3.* *****
|
||||
For users:
|
||||
|
||||
@ -629,6 +629,13 @@ class FactureFournisseur extends CommonInvoice
|
||||
// Fin appel triggers
|
||||
}
|
||||
|
||||
if (! $error)
|
||||
{
|
||||
// Delete linked object
|
||||
$res = $this->deleteObjectLinked();
|
||||
if ($res < 0) $error++;
|
||||
}
|
||||
|
||||
if (! $error)
|
||||
{
|
||||
// We remove directory
|
||||
|
||||
Loading…
Reference in New Issue
Block a user