mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
bee59df23c
commit
313fb9dd6d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user