diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index d132a87233f..5e285f20457 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -928,7 +928,7 @@ if ($id > 0 || !empty($ref)) { '; // List of lines already dispatched - $sql = "SELECT p.ref, p.label,"; + $sql = "SELECT p.rowid as pid, p.ref, p.label,"; $sql .= " e.rowid as warehouse_id, e.ref as entrepot,"; $sql .= " cfd.rowid as dispatchlineid, cfd.fk_product, cfd.qty, cfd.eatby, cfd.sellby, cfd.batch, cfd.comment, cfd.status, cfd.datec"; if ($conf->reception->enabled)$sql .= " ,cfd.fk_reception, r.date_delivery"; @@ -1005,9 +1005,18 @@ if ($id > 0 || !empty($ref)) { print '