Wrong trigger when setting supplier invoice back to draft

This commit is contained in:
Paris Liakos 2017-02-07 20:55:40 +02:00 committed by Laurent Destailleur
parent 4c3255857c
commit eb452397bd

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
}