Skip to content
Snippets Groups Projects
Commit 945eb9f0 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

NEW Add the event BILL_PAYED to list of supported events for module

notification.
parent 2c31b9bc
No related branches found
No related tags found
No related merge requests found
...@@ -234,6 +234,7 @@ class Notify ...@@ -234,6 +234,7 @@ class Notify
$notifcode, $notifcode,
array( array(
'BILL_VALIDATE', 'BILL_VALIDATE',
'BILL_PAYED',
'ORDER_VALIDATE', 'ORDER_VALIDATE',
'PROPAL_VALIDATE', 'PROPAL_VALIDATE',
'FICHINTER_VALIDATE', 'FICHINTER_VALIDATE',
...@@ -296,6 +297,12 @@ class Notify ...@@ -296,6 +297,12 @@ class Notify
$object_type = 'facture'; $object_type = 'facture';
$mesg = $langs->transnoentitiesnoconv("EMailTextInvoiceValidated",$newref); $mesg = $langs->transnoentitiesnoconv("EMailTextInvoiceValidated",$newref);
break; break;
case 'BILL_PAYED':
$link='/compta/facture.php?facid='.$object->id;
$dir_output = $conf->facture->dir_output;
$object_type = 'facture';
$mesg = $langs->transnoentitiesnoconv("EMailTextInvoicePayed",$newref);
break;
case 'ORDER_VALIDATE': case 'ORDER_VALIDATE':
$link='/commande/card.php?id='.$object->id; $link='/commande/card.php?id='.$object->id;
$dir_output = $conf->commande->dir_output; $dir_output = $conf->commande->dir_output;
...@@ -443,6 +450,12 @@ class Notify ...@@ -443,6 +450,12 @@ class Notify
$object_type = 'facture'; $object_type = 'facture';
$mesg = $langs->transnoentitiesnoconv("EMailTextInvoiceValidated",$newref); $mesg = $langs->transnoentitiesnoconv("EMailTextInvoiceValidated",$newref);
break; break;
case 'BILL_PAYED':
$link='/compta/facture.php?facid='.$object->id;
$dir_output = $conf->facture->dir_output;
$object_type = 'facture';
$mesg = $langs->transnoentitiesnoconv("EMailTextInvoicePayed",$newref);
break;
case 'ORDER_VALIDATE': case 'ORDER_VALIDATE':
$link='/commande/card.php?id='.$object->id; $link='/commande/card.php?id='.$object->id;
$dir_output = $conf->commande->dir_output; $dir_output = $conf->commande->dir_output;
......
...@@ -37,6 +37,7 @@ class InterfaceNotification extends DolibarrTriggers ...@@ -37,6 +37,7 @@ class InterfaceNotification extends DolibarrTriggers
var $listofmanagedevents=array( var $listofmanagedevents=array(
'BILL_VALIDATE', 'BILL_VALIDATE',
'BILL_PAYED',
'ORDER_VALIDATE', 'ORDER_VALIDATE',
'PROPAL_VALIDATE', 'PROPAL_VALIDATE',
'FICHINTER_VALIDATE', 'FICHINTER_VALIDATE',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment