Fix: Delete linked element to supplier invoice when deleted (as done for

all other object into dolibarr)
This commit is contained in:
Florian Henry 2013-09-03 20:01:10 +02:00
parent 83042459a5
commit cb86cd403c
2 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -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