NEW Add the event BILL_PAYED to list of supported events for module
notification.
This commit is contained in:
parent
2c31b9bcf5
commit
945eb9f094
@ -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
|
|||||||
$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
|
|||||||
$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;
|
||||||
|
|||||||
@ -36,7 +36,8 @@ class InterfaceNotification extends DolibarrTriggers
|
|||||||
public $picto = 'email';
|
public $picto = 'email';
|
||||||
|
|
||||||
var $listofmanagedevents=array(
|
var $listofmanagedevents=array(
|
||||||
'BILL_VALIDATE',
|
'BILL_VALIDATE',
|
||||||
|
'BILL_PAYED',
|
||||||
'ORDER_VALIDATE',
|
'ORDER_VALIDATE',
|
||||||
'PROPAL_VALIDATE',
|
'PROPAL_VALIDATE',
|
||||||
'FICHINTER_VALIDATE',
|
'FICHINTER_VALIDATE',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user