Merge pull request #18158 from ATM-Consulting/FIX_13.0_inconsistent_triggers_in_reception_line_class

FIX 13.0: class CommandeFournisseurDispatch triggers
This commit is contained in:
Laurent Destailleur 2021-07-16 12:38:03 +02:00 committed by GitHub
commit 98b2d4c16e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,8 +204,8 @@ class CommandeFournisseurDispatch extends CommonObject
// want this action calls a trigger.
//// Call triggers
//$result=$this->call_trigger('MYOBJECT_CREATE',$user);
//if ($result < 0) { $error++; //Do also what you must do to rollback action if trigger fail}
$result=$this->call_trigger('LINERECEPTION_CREATE', $user);
if ($result < 0) $error++;
//// End call triggers
}
}
@ -419,8 +419,8 @@ class CommandeFournisseurDispatch extends CommonObject
// want this action calls a trigger.
//// Call triggers
//$result=$this->call_trigger('MYOBJECT_DELETE',$user);
//if ($result < 0) { $error++; //Do also what you must do to rollback action if trigger fail}
$result=$this->call_trigger('LINERECEPTION_DELETE', $user);
if ($result < 0) $error++;
//// End call triggers
}
}