Skip to content

Commit

Permalink
Revert "FIX: wrong display (and hidden input) for already dispatched …
Browse files Browse the repository at this point in the history
…quantity"

This reverts commit b155fdc.
  • Loading branch information
atm-florianm committed Jul 18, 2019
1 parent b155fdc commit 770b419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/fourn/commande/dispatch.php
Expand Up @@ -556,7 +556,7 @@
print '<!-- Line to dispatch ' . $suffix . ' -->' . "\n";
// hidden fields for js function
print '<input id="qty_ordered' . $suffix . '" type="hidden" value="' . $objp->qty . '">';
print '<input id="qty_dispatched' . $suffix . '" type="hidden" value="' . ( float ) $products_dispatched[$objp->fk_product] . '">';
print '<input id="qty_dispatched' . $suffix . '" type="hidden" value="' . ( float ) $products_dispatched[$objp->rowid] . '">';
print '<tr class="oddeven">';

$linktoprod = '<a href="' . DOL_URL_ROOT . '/product/fournisseurs.php?id=' . $objp->fk_product . '">' . img_object($langs->trans("ShowProduct"), 'product') . ' ' . $objp->ref . '</a>';
Expand Down Expand Up @@ -598,7 +598,7 @@
print '<td align="right">' . $objp->qty . '</td>';

// Already dispatched
print '<td align="right">' . (float) $products_dispatched[$objp->fk_product] . '</td>';
print '<td align="right">' . $products_dispatched[$objp->rowid] . '</td>';

if (! empty($conf->productbatch->enabled) && $objp->tobatch == 1) {
$type = 'batch';
Expand Down

0 comments on commit 770b419

Please sign in to comment.