FIX shipment closing date not saved (#30853)

* Bug: shipment closing date not saved

* Update expedition.class.php

* Update expedition.class.php
This commit is contained in:
Zephyriony 2024-09-05 15:24:33 +02:00 committed by GitHub
parent bee59df23c
commit 313fb9dd6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2252,7 +2252,7 @@ class Expedition extends CommonObject
$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.", date_expedition = '".$this->db->escape($this->db->idate(dol_now()))."'";
$sql .= " WHERE rowid = ".((int) $this->id)." AND fk_statut > 0";
$resql = $this->db->query($sql);