Merge pull request #12730 from atm-maxime/fix_shipment_close
Fix prevent double action on shipment close
This commit is contained in:
commit
cc8a291f28
@ -1902,6 +1902,12 @@ class Expedition extends CommonObject
|
|||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
|
// Protection. This avoid to move stock later when we should not
|
||||||
|
if ($this->statut == self::STATUS_CLOSED)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.'expedition SET fk_statut='.self::STATUS_CLOSED;
|
$sql = 'UPDATE '.MAIN_DB_PREFIX.'expedition SET fk_statut='.self::STATUS_CLOSED;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user