diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index e6fa2937e0b..966be778773 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -556,7 +556,7 @@ if ($id > 0 || ! empty($ref)) {
print '' . "\n";
// hidden fields for js function
print '';
- print '';
+ print '';
print '
';
$linktoprod = '' . img_object($langs->trans("ShowProduct"), 'product') . ' ' . $objp->ref . '';
@@ -598,7 +598,7 @@ if ($id > 0 || ! empty($ref)) {
print '| ' . $objp->qty . ' | ';
// Already dispatched
- print '' . $products_dispatched[$objp->rowid] . ' | ';
+ print '' . (float) $products_dispatched[$objp->fk_product] . ' | ';
if (! empty($conf->productbatch->enabled) && $objp->tobatch == 1) {
$type = 'batch';