diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index 5beeb013dbf..264089ac48a 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -1044,15 +1044,7 @@ if ($action == 'create')
$i++;
}
print '});
- jQuery("#autoreset").click(function() { console.log("Reset values to 0"); ';
- $i = 0;
- while ($i < $numAsked)
- {
- print 'jQuery("#qtyl'.$i.'").val(0);'."\n";
- if (!empty($conf->productbatch->enabled)) print 'jQuery("#qtyl'.$i.'_'.$i.'").val(0);'."\n";
- $i++;
- }
- print '});
+ jQuery("#autoreset").click(function() { console.log("Reset values to 0"); jQuery(".qtyl").val(0); });
});
';
@@ -1294,7 +1286,7 @@ if ($action == 'create')
$deliverableQty = min($quantityToBeDelivered, $batchStock);
print '
';
print '';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -1327,7 +1319,7 @@ if ($action == 'create')
} else {
print '';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -1451,7 +1443,7 @@ if ($action == 'create')
$deliverableQty = min($quantityToBeDelivered, $batchStock);
if ($deliverableQty < 0) $deliverableQty = 0;
print ' ';
- print ' ';
+ print ' ';
print ' ';
print '';
@@ -1496,7 +1488,7 @@ if ($action == 'create')
if ($warehouse_selected_id <= 0) { // We did not force a given warehouse, so we won't have no warehouse to change qty.
$disabled = 'disabled="disabled"';
}
- print ' ';
+ print ' ';
} else {
print $langs->trans("NA");
}
@@ -2212,7 +2204,7 @@ if ($action == 'create')
{
print ' ';
// Qty to ship or shipped
- print ' ';
+ print ' ';
// Batch number managment
if ($lines[$i]->entrepot_id == 0)
{
@@ -2225,7 +2217,7 @@ if ($action == 'create')
// add a 0 qty lot row to be able to add a lot
print ' ';
// Qty to ship or shipped
- print ' ';
+ print ' ';
// Batch number managment
print ''.$formproduct->selectLotStock('', 'batchl'.$line_id.'_0', '', 1, 0, $lines[$i]->fk_product).' ';
print ' ';
@@ -2238,7 +2230,7 @@ if ($action == 'create')
print '';
print '';
// Qty to ship or shipped
- print ' ';
+ print ' ';
// Warehouse source
print ''.$formproduct->selectWarehouses($lines[$i]->entrepot_id, 'entl'.$line_id, '', 1, 0, $lines[$i]->fk_product, '', 1).' ';
// Batch number managment
@@ -2251,7 +2243,7 @@ if ($action == 'create')
{
print ' ';
// Qty to ship or shipped
- print ' ';
+ print ' ';
// Warehouse source
print ''.$formproduct->selectWarehouses($detail_entrepot->entrepot_id, 'entl'.$detail_entrepot->line_id, '', 1, 0, $lines[$i]->fk_product, '', 1).' ';
// Batch number managment
@@ -2266,7 +2258,7 @@ if ($action == 'create')
print '';
print ' ';
// Qty to ship or shipped
- print ' ';
+ print ' ';
// Warehouse source
print ' ';
// Batch number managment