dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] Triggers


From: [Kreiz IT] Cédric GROSS
Subject: Re: [Dolibarr-dev] Triggers
Date: Tue, 24 Jun 2014 08:22:53 +0200

Ok thanks Laurent.

 

I will do that.

 

Cedric

 

De : address@hidden [mailto:address@hidden De la part de Destailleur Laurent
Envoyé : lundi 23 juin 2014 23:37
À : Posts about Dolibarr ERP & CRM development and coding
Objet : Re: [Dolibarr-dev] Triggers

 

Dolibarr should cancel action if return code of triggers are < 0.

If at least one trigger return < 0, then actions are canceled. So we must test if return of $interface->run_trigger is < 0 to know if we rollback or not. This logic may not be implemented everywhere but this is how it should.

 

2014-06-23 17:22 GMT+02:00 [Kreiz IT]Cédric GROSS <address@hidden>:

Hello there,

 

I have a look on ton of bugtrack opened by Marcos about trigger.

 

I started by supplier and mainly trigger doesn’t cancel action attached to it. So my question is: is it by design or Dolibarr should cancel action if trigger failed ?

 

I had a quick look on wiki but I didn’t find anything about what could be the “official” way of managing trigger failure. Logically, if trigger fail action should be canceled but I prefer asking you before doing all correction.

 

Thanks for your advice.

Cedric

 

K.I.T.x100v8.png

Kreiz I.T.

Cédric GROSS

Tél : 06 19 40 67 92

Fax : 02 57 52 00 19

http://www.kreiz-it.fr

 

 


_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev



 

--

Laurent Destailleur (alias Eldy)

------------------------------------------------------------------------------------

Social networks of my OpenSource projects:

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]