Merge pull request #5791 from atm-quentin/NEW_Trigger_Delete_Stock

NEW Trigger on warehouse delete
This commit is contained in:
Laurent Destailleur 2016-09-28 18:00:28 +02:00 committed by GitHub
commit 142a2e34db

View File

@ -221,6 +221,14 @@ class Entrepot extends CommonObject
{
$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');
foreach($elements as $table)
{