diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php
index a4771df772b..d49388d26c9 100644
--- a/htdocs/core/class/notify.class.php
+++ b/htdocs/core/class/notify.class.php
@@ -66,8 +66,10 @@ class Notify
// This codes actions are defined into table llx_notify_def
public static $arrayofnotifsupported = array(
+ 'BILL_CANCEL',
'BILL_VALIDATE',
'BILL_PAYED',
+ 'ORDER_CANCEL',
'ORDER_CREATE',
'ORDER_VALIDATE',
'ORDER_CLOSE',
@@ -485,6 +487,12 @@ class Notify
$subject = '['.$appli.'] '.$outputlangs->transnoentitiesnoconv("DolibarrNotification").($projtitle ? ' '.$projtitle : '');
switch ($notifcode) {
+ case 'BILL_CANCEL':
+ $link = ''.$newref.'';
+ $dir_output = $conf->facture->dir_output."/".get_exdir(0, 0, 0, 1, $object, 'invoice');
+ $object_type = 'facture';
+ $mesg = $outputlangs->transnoentitiesnoconv("EMailTextInvoiceCancelled", $link);
+ break;
case 'BILL_VALIDATE':
$link = ''.$newref.'';
$dir_output = $conf->facture->dir_output."/".get_exdir(0, 0, 0, 1, $object, 'invoice');
@@ -497,6 +505,12 @@ class Notify
$object_type = 'facture';
$mesg = $outputlangs->transnoentitiesnoconv("EMailTextInvoicePayed", $link);
break;
+ case 'ORDER_CANCEL':
+ $link = ''.$newref.'';
+ $dir_output = $conf->commande->dir_output."/".get_exdir(0, 0, 0, 1, $object, 'commande');
+ $object_type = 'order';
+ $mesg = $outputlangs->transnoentitiesnoconv("EMailTextOrderCancelled", $link);
+ break;
case 'ORDER_VALIDATE':
$link = ''.$newref.'';
$dir_output = $conf->commande->dir_output."/".get_exdir(0, 0, 0, 1, $object, 'commande');