Skip to content
Snippets Groups Projects
Commit 142a2e34 authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #5791 from atm-quentin/NEW_Trigger_Delete_Stock

NEW Trigger on warehouse delete
parents 29634304 4d828499
Branches
Tags
No related merge requests found
...@@ -221,6 +221,14 @@ class Entrepot extends CommonObject ...@@ -221,6 +221,14 @@ class Entrepot extends CommonObject
{ {
$this->db->begin(); $this->db->begin();
if (! $error && empty($notrigger))
{
// Call trigger
$result=$this->call_trigger('WAREHOUSE_DELETE',$user);
if ($result < 0) { $error++; }
// End call triggers
}
$elements = array('stock_mouvement','product_stock','product_warehouse_properties'); $elements = array('stock_mouvement','product_stock','product_warehouse_properties');
foreach($elements as $table) foreach($elements as $table)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment