Gestion d'evennements supplémentaires dans les triggers:
COMPANY_CREATE, COMPANY_DELETE, COMPANY_MODIFY CONTRACT_VALIDATE, CONTRACT_CANCEL, CONTRACT_CLOSE BILL_VALIDATE,BILL_PAYED,BILL_CANCEL
This commit is contained in:
parent
0ab0f8f119
commit
3ffe31e170
@ -117,8 +117,9 @@ class InterfaceWebCal
|
|||||||
if ($action == 'ACTION_CREATE')
|
if ($action == 'ACTION_CREATE')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
// Initialisation donnees (date,duree,nom_societe,libelle)
|
// Initialisation donnees (date,duree,texte,desc)
|
||||||
if ($object->type_id == 5 && $object->contact->fullname)
|
if ($object->type_id == 5 && $object->contact->fullname)
|
||||||
{
|
{
|
||||||
$libellecal =$langs->trans("TaskRDVWith",$object->contact->fullname)."\n";
|
$libellecal =$langs->trans("TaskRDVWith",$object->contact->fullname)."\n";
|
||||||
@ -144,8 +145,9 @@ class InterfaceWebCal
|
|||||||
if ($action == 'COMPANY_CREATE')
|
if ($action == 'COMPANY_CREATE')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
// Initialisation donnees (date,duree,nom_societe,libelle)
|
|
||||||
|
// Initialisation donnees (date,duree,texte,desc)
|
||||||
$this->date=time();
|
$this->date=time();
|
||||||
$this->duree=0;
|
$this->duree=0;
|
||||||
$this->texte=$langs->trans("NewCompanyToDolibarr",$object->nom);
|
$this->texte=$langs->trans("NewCompanyToDolibarr",$object->nom);
|
||||||
@ -159,27 +161,70 @@ class InterfaceWebCal
|
|||||||
if ($action == 'CONTRACT_VALIDATE')
|
if ($action == 'CONTRACT_VALIDATE')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
// Initialisation donnees (date,duree,texte,desc)
|
||||||
|
$this->date=time();
|
||||||
|
$this->duree=0;
|
||||||
|
$this->texte=$langs->trans("ContractValidatedInDolibarr",$object->ref);
|
||||||
|
$this->desc=$langs->trans("ContractValidatedInDolibarr",$object->ref);
|
||||||
|
$this->desc.="\n".$langs->trans("ValidatedBy").': '.$user->code;
|
||||||
}
|
}
|
||||||
if ($action == 'CONTRACT_CANCEL')
|
if ($action == 'CONTRACT_CANCEL')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$this->date=time();
|
||||||
|
$this->duree=0;
|
||||||
|
$this->texte=$langs->trans("ContractCanceledInDolibarr",$object->ref);
|
||||||
|
$this->desc=$langs->trans("ContractCanceledInDolibarr",$object->ref);
|
||||||
|
$this->desc.="\n".$langs->trans("CanceledBy").': '.$user->code;
|
||||||
}
|
}
|
||||||
if ($action == 'CONTRACT_CLOSE')
|
if ($action == 'CONTRACT_CLOSE')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$this->date=time();
|
||||||
|
$this->duree=0;
|
||||||
|
$this->texte=$langs->trans("ContractClosedInDolibarr",$object->ref);
|
||||||
|
$this->desc=$langs->trans("ContractClosedInDolibarr",$object->ref);
|
||||||
|
$this->desc.="\n".$langs->trans("ClosedBy").': '.$user->code;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'BILL_VALIDATE')
|
if ($action == 'BILL_VALIDATE')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$this->date=time();
|
||||||
|
$this->duree=0;
|
||||||
|
$this->texte=$langs->trans("InvoiceValidatedInDolibarr",$object->number);
|
||||||
|
$this->desc=$langs->trans("InvoiceValidatedInDolibarr",$object->number);
|
||||||
|
$this->desc.="\n".$langs->trans("ValidatedBy").': '.$user->code;
|
||||||
}
|
}
|
||||||
if ($action == 'BILL_PAYED')
|
if ($action == 'BILL_PAYED')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$this->date=time();
|
||||||
|
$this->duree=0;
|
||||||
|
$this->texte=$langs->trans("InvoicePayedInDolibarr",$object->number);
|
||||||
|
$this->desc=$langs->trans("InvoicePayedInDolibarr",$object->number);
|
||||||
|
$this->desc.="\n".$langs->trans("EditedBy").': '.$user->code;
|
||||||
}
|
}
|
||||||
if ($action == 'BILL_CANCELED')
|
if ($action == 'BILL_CANCELED')
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
dolibarr_syslog("Trigger '".$this->name."' for action '$action' launched. id=".$object->id);
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$this->date=time();
|
||||||
|
$this->duree=0;
|
||||||
|
$this->texte=$langs->trans("InvoiceCanceledInDolibarr",$object->number);
|
||||||
|
$this->desc=$langs->trans("InvoiceCanceledInDolibarr",$object->number);
|
||||||
|
$this->desc.="\n".$langs->trans("CanceledBy").': '.$user->code;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ajoute entrée dans webcal
|
// Ajoute entrée dans webcal
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
# Dolibarr language file - en_US - other
|
# Dolibarr language file - en_US - other
|
||||||
Calendar=Calendar
|
Calendar=Calendar
|
||||||
LoginWebcal=Login for Webcalendar
|
|
||||||
AddCalendarEntry=Add entry in calendar
|
|
||||||
ErrorWebcalLoginNotDefined=The Webcalendar login associated to your Dolibarr login <b>%s</b> is not defined.
|
|
||||||
ErrorPasswordDiffers=Passwords differs, please type them again.
|
ErrorPasswordDiffers=Passwords differs, please type them again.
|
||||||
ErrorForbidden=Access forbidden.<br>You try to access to a page, area or feature without being in an authenticated session or that is not allowed to your user.
|
ErrorForbidden=Access forbidden.<br>You try to access to a page, area or feature without being in an authenticated session or that is not allowed to your user.
|
||||||
ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s.
|
ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s.
|
||||||
@ -37,4 +34,14 @@ CreateBookmark=Create bookmark
|
|||||||
SetHereATitleForLink=Set here a title for bookmark
|
SetHereATitleForLink=Set here a title for bookmark
|
||||||
UseAnExternalHttpLinkOrRelativeDolibarrLink=Use an external http URL or a relative Dolibarr URL
|
UseAnExternalHttpLinkOrRelativeDolibarrLink=Use an external http URL or a relative Dolibarr URL
|
||||||
ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choose if page opened by link must appear on current or new window
|
ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choose if page opened by link must appear on current or new window
|
||||||
NewCompanyToDolibarr=Company %s added into Dolibarr
|
##### Webcal #####
|
||||||
|
LoginWebcal=Login for Webcalendar
|
||||||
|
AddCalendarEntry=Add entry in calendar
|
||||||
|
ErrorWebcalLoginNotDefined=The Webcalendar login associated to your Dolibarr login <b>%s</b> is not defined.
|
||||||
|
NewCompanyToDolibarr=Company %s added into Dolibarr
|
||||||
|
ContractValidatedInDolibarr=Contract %s validated in Dolibarr
|
||||||
|
ContractCanceledInDolibarr=Contract %s canceled in Dolibarr
|
||||||
|
ContractClosedInDolibarr=Contract %s closed in Dolibarr
|
||||||
|
InvoiceValidatedInDolibarr=Invoice %s validated in Dolibarr
|
||||||
|
InvoicePayedInDolibarr=Invoice %s changed to payed in Dolibarr
|
||||||
|
InvoiceCanceledInDolibarr=Invoice %s canceled in Dolibarr
|
||||||
@ -1,8 +1,5 @@
|
|||||||
# Dolibarr language file - fr_FR - other
|
# Dolibarr language file - fr_FR - other
|
||||||
Calendar=Calendrier
|
Calendar=Calendrier
|
||||||
LoginWebcal=Login Webcalendar
|
|
||||||
AddCalendarEntry=Ajouter entrée dans le calendrier
|
|
||||||
ErrorWebcalLoginNotDefined=Le login Webcalendar associé à votre login Dolibarr <b>%s</b> n'est pas défini.
|
|
||||||
ErrorPasswordDiffers=Les mots de passe ne sont pas identiques, veuillez les saisir à nouveau
|
ErrorPasswordDiffers=Les mots de passe ne sont pas identiques, veuillez les saisir à nouveau
|
||||||
ErrorForbidden=Accès non autorisé.<br>Vous essayez d'accéder à une page, zone ou fonction sans être au sein d'une session authentifiée ou qui n'est pas autorisée pour votre compte utilisateur.
|
ErrorForbidden=Accès non autorisé.<br>Vous essayez d'accéder à une page, zone ou fonction sans être au sein d'une session authentifiée ou qui n'est pas autorisée pour votre compte utilisateur.
|
||||||
ErrorForbidden2=Les permissions pour ce login peuvent être attribuées par l'administrateur Dolibarr via le menu %s -> %s.
|
ErrorForbidden2=Les permissions pour ce login peuvent être attribuées par l'administrateur Dolibarr via le menu %s -> %s.
|
||||||
@ -37,4 +34,14 @@ CreateBookmark=Cr
|
|||||||
SetHereATitleForLink=Saisir ici un titre pour le marque page
|
SetHereATitleForLink=Saisir ici un titre pour le marque page
|
||||||
UseAnExternalHttpLinkOrRelativeDolibarrLink=Saisir une URL http externe ou une URL Dolibarr relative
|
UseAnExternalHttpLinkOrRelativeDolibarrLink=Saisir une URL http externe ou une URL Dolibarr relative
|
||||||
ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choisir si le raccourci doit ouvrir la page dans une nouvelle fenêtre ou fenêtre courante
|
ChooseIfANewWindowMustBeOpenedOnClickOnBookmark=Choisir si le raccourci doit ouvrir la page dans une nouvelle fenêtre ou fenêtre courante
|
||||||
NewCompanyToDolibarr=Société %s ajoutée dans Dolibarr
|
##### Webcal #####
|
||||||
|
LoginWebcal=Login Webcalendar
|
||||||
|
AddCalendarEntry=Ajouter entrée dans le calendrier
|
||||||
|
ErrorWebcalLoginNotDefined=Le login Webcalendar associé à votre login Dolibarr <b>%s</b> n'est pas défini.
|
||||||
|
NewCompanyToDolibarr=Société %s ajoutée dans Dolibarr
|
||||||
|
ContractValidatedInDolibarr=Contrat %s validé dans Dolibarr
|
||||||
|
ContractCanceledInDolibarr=Contrat %s annulé dans Dolibarr
|
||||||
|
ContractClosedInDolibarr=Contrat %s fermé dans Dolibarr
|
||||||
|
InvoiceValidatedInDolibarr=Facture %s validé dans Dolibarr
|
||||||
|
InvoicePayedInDolibarr=Facture %s passé à payé dans Dolibarr
|
||||||
|
InvoiceCanceledInDolibarr=Facture %s annulée dans Dolibarr
|
||||||
Loading…
Reference in New Issue
Block a user