Merge pull request #6391 from ParisLiakos/develop

Wrong trigger when setting supplier invoice back to draft
This commit is contained in:
Laurent Destailleur
2017-02-08 10:55:42 +01:00
committed by GitHub

View File

@@ -1260,7 +1260,7 @@ class FactureFournisseur extends CommonInvoice
if (! $error && empty($notrigger))
{
// Call trigger
$result=$this->call_trigger('BILL_SUPPLIER_VALIDATE',$user);
$result=$this->call_trigger('BILL_SUPPLIER_UNVALIDATE',$user);
if ($result < 0) $error++;
// End call triggers
}