mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Close Remove trigger ORDER_SUPPLIER_DISPATCH #18486
This commit is contained in:
parent
49f869352c
commit
aca6609f21
|
|
@ -20,6 +20,7 @@ WARNING:
|
|||
|
||||
Following changes may create regressions for some external modules, but were necessary to make Dolibarr better:
|
||||
* The signature of method getNomUrl() of class ProductFournisseur has been modified to match the signature of method Product
|
||||
* Trigger ORDER_SUPPLIER_DISPATCH is removed, use ORDER_SUPPLIER_RECEIVE and/or LINEORDER_SUPPLIER_DISPATCH instead.
|
||||
|
||||
|
||||
***** ChangeLog for 16.0.0 compared to 15.0.0 *****
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ class InterfaceZapierTriggers extends DolibarrTriggers
|
|||
// case 'ORDER_SUPPLIER_REFUSE':
|
||||
// case 'ORDER_SUPPLIER_CANCEL':
|
||||
// case 'ORDER_SUPPLIER_SENTBYMAIL':
|
||||
// case 'ORDER_SUPPLIER_DISPATCH':
|
||||
// case 'ORDER_SUPPLIER_RECEIVE':
|
||||
// case 'LINEORDER_SUPPLIER_DISPATCH':
|
||||
// case 'LINEORDER_SUPPLIER_CREATE':
|
||||
// case 'LINEORDER_SUPPLIER_UPDATE':
|
||||
|
|
|
|||
|
|
@ -373,19 +373,6 @@ if ($action == 'dispatch' && $permissiontoreceive) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
global $conf, $langs, $user;
|
||||
// Call trigger
|
||||
|
||||
$result = $object->call_trigger('ORDER_SUPPLIER_DISPATCH', $user);
|
||||
// End call triggers
|
||||
|
||||
if ($result < 0) {
|
||||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
|
||||
if ($result >= 0 && !$error) {
|
||||
$db->commit();
|
||||
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ class InterfaceMyModuleTriggers extends DolibarrTriggers
|
|||
//case 'ORDER_SUPPLIER_REFUSE':
|
||||
//case 'ORDER_SUPPLIER_CANCEL':
|
||||
//case 'ORDER_SUPPLIER_SENTBYMAIL':
|
||||
//case 'ORDER_SUPPLIER_DISPATCH':
|
||||
//case 'ORDER_SUPPLIER_RECEIVE':
|
||||
//case 'LINEORDER_SUPPLIER_DISPATCH':
|
||||
//case 'LINEORDER_SUPPLIER_CREATE':
|
||||
//case 'LINEORDER_SUPPLIER_UPDATE':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user