* Fix missing rollback when stock movement fails in Expedition::valid() When STOCK_CALCULATE_ON_SHIPMENT is enabled and manageStockMvtOnEvt() fails while validating a shipment, the method returned -2 directly without calling $this->db->rollback(), unlike every other error branch in this method. Changed to increment $error instead, so execution falls through to the existing commit/rollback block at the end of valid(). Fixes #39425 * Update expedition.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr> |
||
|---|---|---|
| .. | ||
| api_shipments.class.php | ||
| expedition.class.php | ||
| expeditionligne.class.php | ||
| expeditionlinebatch.class.php | ||
| expeditionstats.class.php | ||