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

notification.
This commit is contained in:
Laurent Destailleur 2016-02-22 12:52:01 +01:00
parent 2c31b9bcf5
commit 945eb9f094
2 changed files with 15 additions and 1 deletions

View File

@ -234,6 +234,7 @@ class Notify
$notifcode,
array(
'BILL_VALIDATE',
'BILL_PAYED',
'ORDER_VALIDATE',
'PROPAL_VALIDATE',
'FICHINTER_VALIDATE',
@ -296,6 +297,12 @@ class Notify
$object_type = 'facture';
$mesg = $langs->transnoentitiesnoconv("EMailTextInvoiceValidated",$newref);
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':
$link='/commande/card.php?id='.$object->id;
$dir_output = $conf->commande->dir_output;
@ -443,6 +450,12 @@ class Notify
$object_type = 'facture';
$mesg = $langs->transnoentitiesnoconv("EMailTextInvoiceValidated",$newref);
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':
$link='/commande/card.php?id='.$object->id;
$dir_output = $conf->commande->dir_output;

View File

@ -36,7 +36,8 @@ class InterfaceNotification extends DolibarrTriggers
public $picto = 'email';
var $listofmanagedevents=array(
'BILL_VALIDATE',
'BILL_VALIDATE',
'BILL_PAYED',
'ORDER_VALIDATE',
'PROPAL_VALIDATE',
'FICHINTER_VALIDATE',