Debug v23

This commit is contained in:
Laurent Destailleur
2025-09-28 22:20:44 +02:00
parent 0564b44678
commit 131d1390bc
14 changed files with 54 additions and 23 deletions

View File

@@ -1115,12 +1115,14 @@ class Orders extends DolibarrApi
$result = $this->db->query($sql);
if ($result) {
$i = 0;
$num = $this->db->num_rows($result);
if ($num <= 0) {
throw new RestException(404, 'Shipments not found ');
}
$i = 0;
while ($i < $num) {
//$min = min($num, ($limit <= 0 ? $num : $limit));
$min = $num;
while ($i < $min) {
$obj = $this->db->fetch_object($result);
$shipment_static = new Expedition($this->db);
if ($shipment_static->fetch($obj->rowid)) {